Skip to content

Instantly share code, notes, and snippets.

View JonasR's full-sized avatar
⛰️

JonasR

⛰️
  • AbbVie
  • Germany, Rosenheim area (remote)
  • 03:01 (UTC +02:00)
View GitHub Profile
@JonasR
JonasR / gist:3557814
Created August 31, 2012 19:24
create trajectory animations
#!/bin/bash
pymol -c createTrajectories.pml
rm mov0001.png
convert -delay 25 -dispose Background -loop 0 *.png TSD_178H_traj.gif
d <- read.table("1207270221251193.7.rmsmod_onlyca")
x1 <- seq(from=1,to=131)
x2 <- seq(from=132, to=492)
y1 <- d$V1[1:131]
y2 <- d$V1[132:492]
col1 <- rep("red", 131)
col2 <- rep("blue",361)
#!/bin/bash
for dir in 7 8 9 10 11
do
echo "Currently doing $dir"
cd $dir
grep -P --only-matching "CA\s+0\.\d+" 1207270221251193.$dir.rmsmod | grep -P --only-matching "0\.\d+" > 1207270221251193.$dir.rmsmod_onlyca
R CMD BATCH plotRMS.R
convert plot.eps plot.png
cd ../
@JonasR
JonasR / createAnimations.sh
Created July 29, 2012 21:17
Creates the final animations from the PNGs
#!/bin/bash
for dir in 7 8 9 10 11
do
echo "Currently doing $dir"
cd $dir
pymol -c createPNGs.pml
rm mov0001.png
convert -delay 10 -dispose Background -resize 50% -loop 0 *.png animation.gif
cd ../
@JonasR
JonasR / createPNGs.pml
Created July 29, 2012 21:06
Sample script to prepare PNGs for animated gif of an elnemo mode
##Thanks to Hemochromatosis journal for help
load ../../../2GK1A_NGTdeleted_referenceorientation.pse, reference
load ./1207270221251193.7.pdb, modes
align modes, 2GK1A_NGTdeleted
zoom 2GK1A_NGTdeleted, buffer=-8.5
delete 2GK1A_NGTdeleted
#Create secondary structure annotation for elnemo output
dss modes
@JonasR
JonasR / run_production.sh
Created June 29, 2012 17:48
Scripts for the final production runs
#!/bin/bash
#SBATCH -o /home/hpc/pr58ni/di34fod/mapra/agrosRuns/WT/FINAL/WT.out
#SBATCH -D /home/hpc/pr58ni/di34fod/mapra/agrosRuns/WT/FINAL/
#SBATCH -J 2gjxWT_MD_FIN
#SBATCH --clusters=mpp1
#SBATCH --get-user-env
#SBATCH --ntasks=32
#SBATCH --mail-type=end
#SBATCH --mail-user=reeb@in.tum.de
#SBATCH --export=NONE
@JonasR
JonasR / run_test.sh
Created June 29, 2012 17:47
A sample script for testing LRZ environment and correct AGroS functionality
#!/bin/bash
#SBATCH -o /home/hpc/pr58ni/di34fod/mapra/agrosRuns/P182L/P182L.out
#SBATCH -D /home/hpc/pr58ni/di34fod/mapra/agrosRuns/P182L/
#SBATCH -J 2gjxP182L_MD
#SBATCH --partition=mpp1_inter
#SBATCH --get-user-env
#SBATCH --ntasks=16
#SBATCH --mail-type=end
#SBATCH --mail-user=reeb@in.tum.de
#SBATCH --export=NONE
@JonasR
JonasR / getStructures.sh
Created June 29, 2012 17:44
Get all the necessary PDB files from the biolab computers
#!/bin/bash
scp reeb@i12k-biolab05.informatik.tu-muenchen.de:/mnt/home/student/reeb/git/masterprak/Tasks/7_StructBasedMutAna/SCWRL/SCWRL_R178H.pdb ./R178H/2gjx178H.pdb
scp reeb@i12k-biolab05.informatik.tu-muenchen.de:/mnt/home/student/reeb/git/masterprak/Tasks/7_StructBasedMutAna/SCWRL/SCWRL_P182L.pdb ./P182L/2gjx182L.pdb
scp reeb@i12k-biolab05.informatik.tu-muenchen.de:/mnt/home/student/reeb/git/masterprak/Tasks/7_StructBasedMutAna/preparation/2gjxA_secondD.pdb ./WT/2gjxWT.pdb
@JonasR
JonasR / callMinimise.sh
Created June 22, 2012 12:25
Call minimise on the wildtype as well as SCWRL and FOLDX mutant structures. Also iterate another five rounds for each structure
#!/bin/bash
function iterate()
{
BASEI=$1
/opt/SS12-Practical/minimise/minimise $BASEI.pdb ${BASEI}_it1.pdb &>> ${BASEI}_it.log
/opt/SS12-Practical/minimise/minimise ${BASEI}_it1.pdb ${BASEI}_it2.pdb &>> ${BASEI}_it.log
/opt/SS12-Practical/minimise/minimise ${BASEI}_it2.pdb ${BASEI}_it3.pdb &>> ${BASEI}_it.log
/opt/SS12-Practical/minimise/minimise ${BASEI}_it3.pdb ${BASEI}_it4.pdb &>> ${BASEI}_it.log
/opt/SS12-Practical/minimise/minimise ${BASEI}_it4.pdb ${BASEI}_it5.pdb &>> ${BASEI}_it.log
}
@JonasR
JonasR / individual_list.txt
Created June 22, 2012 00:57
FoldX Mutation file
RA178H;
RA178C;
PA182L;
DA207E;
SA293I;
FA434L;
LA451V;
EA482K;
LA484Q;
EA506D;