Commit d30ef32b by Mustafa Tekpinar

Increased number of sequences that are perceived by GEMME. Added SC1, SC2,

SC3 calculation options to JET2 calls.

Changed N=20000 to N=40000. Increased CPU load to 2000000 in default.config
file. Finally, modified jetcmd in gemmeAnal.py file so that we can calculate
SC1, SC2 and SC3.
parent 9874e7e7
...@@ -20,7 +20,7 @@ url http://www.rcsb.org/pdb/downloadFile.do URL of PDB server ...@@ -20,7 +20,7 @@ url http://www.rcsb.org/pdb/downloadFile.do URL of PDB server
>Filter >Filter
min_identity 0.20 min sequence identity min_identity 0.20 min sequence identity
max_identity 0.98 max sequence identity max_identity 0.98 max sequence identity
max_load 2000000 max CPU load
***************************************** *****************************************
>Sample >Sample
length_cutoff 0.8 minimum sequence length expressed in number of residues length_cutoff 0.8 minimum sequence length expressed in number of residues
......
...@@ -417,7 +417,7 @@ def parse_command_line(): ...@@ -417,7 +417,7 @@ def parse_command_line():
retMet_args.add_argument( retMet_args.add_argument(
'-N', '--NSeqs', '-N', '--NSeqs',
help='maximum number of sequences to compute the conservation levels', help='maximum number of sequences to compute the conservation levels',
default='20000' default='40000'
) )
retMet_args.add_argument( retMet_args.add_argument(
......
...@@ -126,18 +126,22 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl): ...@@ -126,18 +126,22 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl):
subprocess.call("cp $GEMME_PATH/default.conf .",shell=True) subprocess.call("cp $GEMME_PATH/default.conf .",shell=True)
if retMet=="input": if retMet=="input":
if bFile!='': if bFile!='':
#TODO: I think these two lines must be here as well but I am not sure.
# print(N)
# editConfJET(N)
if(bFile == prot+"_"+chainID+".psiblast"): if(bFile == prot+"_"+chainID+".psiblast"):
shutil.copy2(bFile, bFile+".orig") shutil.copy2(bFile, bFile+".orig")
shutil.copy2(bFile+".orig ", prot+"_"+chainID+".psiblast") shutil.copy2(bFile+".orig ", prot+"_"+chainID+".psiblast")
else: else:
shutil.copy2(bFile+" ", prot+"_"+chainID+".psiblast") shutil.copy2(bFile+" ", prot+"_"+chainID+".psiblast")
if(pdbfile == None): if(pdbfile == None):
jetcmd = "java -Xmx1000m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\ jetcmd = "java -Xmx2048m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\
prot+".pdb -o `pwd` -p J -r input -b "+prot+"_"+chainID+".psiblast -d chain -n "+n+" > "+prot+".out" prot+".pdb -o `pwd` -p J -r input -b "+prot+"_"+chainID+".psiblast -d chain -n "+n+" > "+prot+".out"
else: else:
# jetcmd = "java -Xmx1000m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\ # jetcmd = "java -Xmx2048m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\
# prot+".pdb -o `pwd` -p AVJ -r input -b "+prot+"_"+chainID+".psiblast -d chain -n "+n+" > "+prot+".out" # prot+".pdb -o `pwd` -p AVJ -r input -b "+prot+"_"+chainID+".psiblast -d chain -n "+n+" > "+prot+".out"
jetcmd = "java -Xmx1000m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\ jetcmd = "java -Xmx2048m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\
prot+".pdb -o `pwd` -p AVJCG -r input -f "+prot+"_"+chainID+".psiblast -d chain -n "+n+" -a 5"+" > "+prot+".out" prot+".pdb -o `pwd` -p AVJCG -r input -f "+prot+"_"+chainID+".psiblast -d chain -n "+n+" -a 5"+" > "+prot+".out"
#One can also add: -g 'trace,pc,cv,clusters,axs' #One can also add: -g 'trace,pc,cv,clusters,axs'
...@@ -157,22 +161,22 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl): ...@@ -157,22 +161,22 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl):
print("\nRunning:\n"+grpcmd) print("\nRunning:\n"+grpcmd)
subprocess.call(grpcmd,shell=True) subprocess.call(grpcmd,shell=True)
if(pdbfile == None): if(pdbfile == None):
jetcmd = "java -Xmx1000m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\ jetcmd = "java -Xmx2048m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\
prot+".pdb -o `pwd` -p J -r input -f "+prot+"_"+chainID+".fasta -d chain -n "+n+" > "+prot+".out" prot+".pdb -o `pwd` -p J -r input -f "+prot+"_"+chainID+".fasta -d chain -n "+n+" > "+prot+".out"
else: else:
# jetcmd = "java -Xmx1000m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\ # jetcmd = "java -Xmx2048m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\
# prot+".pdb -o `pwd` -p AVJ -r input -f "+prot+"_"+chainID+".fasta -d chain -n "+n+" > "+prot+".out" # prot+".pdb -o `pwd` -p AVJ -r input -f "+prot+"_"+chainID+".fasta -d chain -n "+n+" > "+prot+".out"
jetcmd = "java -Xmx1000m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\ jetcmd = "java -Xmx2048m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\
prot+".pdb -o `pwd` -p AVJCG -r input -f "+prot+"_"+chainID+".fasta -d chain -n "+n+" -a 5"+" > "+prot+".out" prot+".pdb -o `pwd` -p AVJCG -r input -f "+prot+"_"+chainID+".fasta -d chain -n "+n+" -a 5"+" > "+prot+".out"
#One can also add: -g 'trace,pc,cv,clusters,axs' #One can also add: -g 'trace,pc,cv,clusters,axs'
else: else:
if(pdbfile == None): if(pdbfile == None):
jetcmd = "java -Xmx1000m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\ jetcmd = "java -Xmx2048m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\
prot+".pdb -o `pwd` -p J -r "+retMet+" -d chain -n "+n+" > "+prot+".out" prot+".pdb -o `pwd` -p J -r "+retMet+" -d chain -n "+n+" > "+prot+".out"
else: else:
# jetcmd = "java -Xmx1000m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\ # jetcmd = "java -Xmx2048m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\
# prot+".pdb -o `pwd` -p AVJ -r "+retMet+" -d chain -n "+n+" > "+prot+".out" # prot+".pdb -o `pwd` -p AVJ -r "+retMet+" -d chain -n "+n+" > "+prot+".out"
jetcmd = "java -Xmx1000m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\ jetcmd = "java -Xmx2048m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "+\
prot+".pdb -o `pwd` -p AVJCG -r "+retMet+" -d chain -n "+n+" -a 5"+" > "+prot+".out" prot+".pdb -o `pwd` -p AVJCG -r "+retMet+" -d chain -n "+n+" -a 5"+" > "+prot+".out"
print("\nRunning:\n"+jetcmd) print("\nRunning:\n"+jetcmd)
reCode=subprocess.call(jetcmd,shell=True) reCode=subprocess.call(jetcmd,shell=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment