file.seq additional empty line to read exactly 80 aa
authorCezary Czaplewski <czarek@chem.univ.gda.pl>
Mon, 22 Jan 2018 23:45:47 +0000 (00:45 +0100)
committerCezary Czaplewski <czarek@chem.univ.gda.pl>
Mon, 22 Jan 2018 23:45:47 +0000 (00:45 +0100)
django_simple/todo/jobfiles.py

index e540b4c..cdb07e7 100644 (file)
@@ -316,6 +316,7 @@ CUTOFF=7.00000 WCORR4=0.00000"""
       f1 = open('file.seq', 'w')
       for i in range(0,len(seq),80):
              f1.write(seq[i:i+80]+'\n')
+      f1.write('\n')       
       f1.close()
 
       ret_code = subprocess.Popen(' /opt/torque/bin/qsub pbs.csh', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)