This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cask_args appdir: "/Applications" | |
### TAPS | |
tap "getantibody/tap" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-fonts" | |
tap "homebrew/core" | |
tap "mas-cli/tap" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess, os, glob | |
cwd = os.getcwd() | |
nc_files = glob.glob('nc_traj/*.nc') | |
for nc in nc_files: | |
l = nc.split('/') | |
fn = l[1].strip('pEH_l').split('-') | |
molid = fn[0] | |
suffix = fn[1].strip('.nc') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setfacl -m u:username:rwx myfolder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for fn in *.local/*.log; do | |
file=$( basename $fn ) | |
pjobid=${fn%.tscc-mgr.local/*} | |
molid=${file%*-blues00*} | |
outfname="$molid-$pjobid-blues00.log" | |
cp $fn centered/$outfname | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for fn in *-centered.dcd; do | |
molid=${fn%*-107*-blues00*} | |
echo $molid | |
mkdir "$molid" && cp $fn $molid | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mdtraj as md | |
def centerTrajectory(traj,outfname): | |
nosolv = traj.remove_solvent() | |
anchor = nosolv.top.guess_anchor_molecules()[0] | |
imgd = nosolv.image_molecules(anchor_molecules=[anchor]) | |
prt_idx = imgd.top.select('protein') | |
superposed = imgd.superpose(reference=imgd,frame=0,atom_indices=prt_idx) | |
superposed.save_dcd(outfname+'-centered.dcd') | |
superposed[0].save_pdb(outfname+'-centered.pdb') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *-prod01-truncated.oeb.gz; do | |
suffix=${i%-prod01-truncated.oeb.gz} | |
qsub -N ${suffix} gpu_floe-blues.pbs | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -maxdepth 1 -type d -exec bash -c "echo -ne '{}\t'; ls '{}' | wc -l" \; | awk -F"\t" '$NF<=2{print $1}' >> cleanup.txt | |
while read p; do echo $p; rm -rf $p ; done <cleanup.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
input="prep" | |
for fname in *-${input}.oeb.gz; do | |
molid="${fname%%-${input}.oeb.gz}" | |
echo Submitting molecule $molid | |
sbatch -J "$molid" gpu_floe.slurm | |
sleep 2 | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################ | |
# DESCRIPTION: | |
# | |
# VMD startup script. The commands here are executed as soon as VMD starts up | |
############################################################################ | |
# turn on lights 0 and 1 | |
light 0 on | |
light 1 on | |
light 2 off |
NewerOlder