Recent Changes - Search:

Background

Workflow

Cluster Operations

https://trails.colorado.gov/@ache.ter.trama.dol https://trails.colorado.gov/@ache.ter.xa.nax https://trails.colorado.gov/@ache.ter.zo.l.pi.dem https://trails.colorado.gov/@ache.ter.add.er.all https://trails.colorado.gov/@ache.ter.rit.a.lin https://trails.colorado.gov/@ache.ter.lyr.ic.a https://trails.colorado.gov/@ache.ter.riv.otril https://trails.colorado.gov/@alpra.zolam.fr https://trails.colorado.gov/@loraz.epam.fr https://trails.colorado.gov/@diaze.pam.fr https://trails.colorado.gov/@brom.aze.pam.fr https://trails.colorado.gov/@imo.vane.fr https://trails.colorado.gov/@ta.vor.de https://www.jetphotos.com/photographer/611716 https://www.jetphotos.com/photographer/611719 https://www.jetphotos.com/photographer/611721 https://www.jetphotos.com/photographer/611723 https://www.jetphotos.com/photographer/611726 https://www.jetphotos.com/photographer/611727 https://www.jetphotos.com/photographer/611728 https://www.jetphotos.com/photographer/611729 https://www.jetphotos.com/photographer/611730 https://www.jetphotos.com/photographer/611731 https://www.jetphotos.com/photographer/611732 https://www.jetphotos.com/photographer/611733 https://www.jetphotos.com/photographer/611737 https://www.jetphotos.com/photographer/611739 https://www.jetphotos.com/photographer/611740 https://www.jetphotos.com/photographer/611741 https://www.jetphotos.com/photographer/611749 https://www.jetphotos.com/photographer/611750 https://www.jetphotos.com/photographer/611754 https://www.jetphotos.com/photographer/611755 https://www.jetphotos.com/photographer/611759 https://www.jetphotos.com/photographer/611760 https://www.jetphotos.com/photographer/611761 https://www.jetphotos.com/photographer/611762 https://www.jetphotos.com/photographer/611764 https://www.jetphotos.com/photographer/611765 https://www.jetphotos.com/photographer/611766 https://www.jetphotos.com/photographer/611767 https://www.jetphotos.com/photographer/611768 https://www.jetphotos.com/photographer/612535 https://www.jetphotos.com/photographer/612541 https://www.jetphotos.com/photographer/612545 https://www.jetphotos.com/photographer/612551 https://www.jetphotos.com/photographer/612555 https://www.jetphotos.com/photographer/612558 https://www.jetphotos.com/photographer/612559 https://www.jetphotos.com/photographer/612561 https://www.jetphotos.com/photographer/612563 https://www.jetphotos.com/photographer/612564 https://www.jetphotos.com/photographer/612565 https://www.jetphotos.com/photographer/612568 https://www.jetphotos.com/photographer/612570 https://www.jetphotos.com/photographer/612571 https://www.jetphotos.com/photographer/612572 https://www.grepmed.com/xanaxpharmacie833 https://www.grepmed.com/valiumpharmacie833 https://www.grepmed.com/ativanpharmacie833 https://www.grepmed.com/temestapharmacie833 https://www.grepmed.com/stilnoxpharmacie833 https://www.grepmed.com/ambienpharmacie833 https://www.grepmed.com/imovanepharmacie833 https://www.grepmed.com/tramadolpharmacie833 https://www.grepmed.com/adipexpharmacie833 https://www.grepmed.com/rivotrilpharmacie833 https://www.grepmed.com/lexotanilpharmacie833 https://www.grepmed.com/lexomilpharmacie833 https://www.grepmed.com/lyricapharmacie833 https://www.grepmed.com/tapentadolpharmacie833 https://www.grepmed.com/ritalinpharmacie833 https://www.grepmed.com/concertapharmacie833 https://www.grepmed.com/adderallpharmacie833 https://www.grepmed.com/cytotecpharmacie833 https://www.grepmed.com/sonatapharmacie833 https://www.grepmed.com/lunestapharmacie833 https://www.grepmed.com/oxycontinpharmacie833 https://www.grepmed.com/hydrocodonepharmacie833 https://www.grepmed.com/modafinilpharmacie833 https://www.grepmed.com/carisoprodolpharmacie833 https://www.grepmed.com/halcionpharmacie833 https://www.grepmed.com/midazolampharmacie833 https://www.grepmed.com/etizolampharmacie833 https://www.grepmed.com/temazepampharmacie833 https://www.grepmed.com/nootropilpharmacie833

edit SideBar

#################
# JOB VARIABLES #
#################

start_expt = 1
end_expt = 27

substitution = 'C'

par_dir = '/mindstore/home33ext/kscopino/5JUP_PROTOCOL/PIGGYBACKING/COD1_' + substitution + '2_1S_50PS/'
data_dir = 'COD1_' + substitution + '2_'

#interval_starts = [0,10,20,30,40]
interval_starts = [0]
interval_size = 100

###############
# WRITE FILES #
###############

for i_start in interval_starts:

	# file to submit to scheduler
	# outfile = open('run_cpptraj_avg_' + str(i_start) + 'to' + str(i_start + interval_size) + '.sh','w')
	outfile = open('run_cpptraj_1b_avgstruct.sh','w')
	outfile.write('#!/bin/bash\n' +\
		'#BSUB -e err_avgstruct\n' +\
		'#BSUB -o out_avgstruct\n' +\
		'#BSUB -q exx96\n' +\
		#'#BSUB -J "cpptraj_' + str(i_start) + 'to' + str(i_start + interval_size) + '_CPU"\n' +\
		'#BSUB -J avgstruct_CPU"\n' +\
		'#BSUB -n 1\n\n' +\
		'# env\n' +\
		'export PATH=/home/apps/CENTOS7/amber/amber18/bin:$PATH\n' +\
		'export LD_LIBRARY_PATH=/home/apps/CENTOS7/amber/amber18/lib:/home/apps/CENTOS7/amber/amber18/lib64:$LD_LIBRARY_PATH\n' +\
		'export PATH=/share/apps/openmpi/1.4.4+intel-12/bin:$PATH\n' +\
		'export LD_LIBRARY_PATH=/share/apps/openmpi/1.4.4+intel-12/lib:$LD_LIBRARY_PATH\n\n' +\
		'# call cpptraj in Amber18\n' +\
		'for i in {' + str(start_expt) + '..' + str(end_expt) + '}; do\n' +\
			'	cd ' + par_dir + data_dir + '$i/DATA/\n' +\
			#'	cpptraj -i cpptraj_avg_' + str(i_start) + 'to' + str(i_start + interval_size) + '.in\n' +\
			'cpptraj -i cpptraj_1b_avgstruct.in\n' +\
		'done\n\n')
	outfile.close()


	# experimental files
	for i in range(start_expt,end_expt + 1):
		#outfile = open(par_dir + data_dir + str(i) + '/DATA/cpptraj_avg_' + str(i_start) + 'to' + str(i_start + interval_size) + '.in', 'w')
		outfile = open(par_dir + data_dir + str(i) + '/DATA/cpptraj_1b_avgstruct.in','w')
		outfile.write('# This script is to create an average structure for each interval of a trajectory.\n\n' +\
			'# prmtop file\n' +\
			'parm ' + par_dir + '5JUP_GC_179' + substitution + '_nowat.prmtop\n\n' +\
			'# experimental neutral dynamics trajectory\n' +\
			'trajin ' + par_dir + data_dir + str(i) + '/mdcrd_nd_' + str(i) + '_strip ' + str((i_start*100)+1) + ' ' + str((i_start*100)+interval_size*100) + '\n\n' +\
			'# make average\n' +\
			#'average avg_struct_' + str(i_start) + 'to' + str(i_start + interval_size) + '.rst restart\n\n')
			'average avg_struct.rst restart\n\n')
		outfile.close()
Edit - History - Print - Recent Changes - Search
Page last modified on July 14, 2020, at 04:24 PM