Mercurial > repos > estrain > seqsero2_v1_0_1
comparison SeqSero2_package.py @ 29:ea009bd561cd
Uploaded
author | estrain |
---|---|
date | Sat, 07 Sep 2019 14:23:35 -0400 |
parents | 8d7b59db3aa1 |
children | 564ca9d91226 |
comparison
equal
deleted
inserted
replaced
28:8d7b59db3aa1 | 29:ea009bd561cd |
---|---|
1213 return xmlfile,new_fasta | 1213 return xmlfile,new_fasta |
1214 | 1214 |
1215 def judge_subspecies(fnameA,dirpath): | 1215 def judge_subspecies(fnameA,dirpath): |
1216 #seqsero2 -a; judge subspecies on just forward raw reads fastq | 1216 #seqsero2 -a; judge subspecies on just forward raw reads fastq |
1217 salmID_output=subprocess.Popen("SalmID.py -i "+fnameA,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE) | 1217 salmID_output=subprocess.Popen("SalmID.py -i "+fnameA,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE) |
1218 salmID_output2=subprocess.Popen("ls ..",shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE) | 1218 salmID_output2=subprocess.Popen("ls",shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE) |
1219 out, err = salmID_output.communicate() | 1219 out, err = salmID_output.communicate() |
1220 out2, err2 = salmID_output2.communicate() | 1220 out2, err2 = salmID_output2.communicate() |
1221 out=out.decode("utf-8") | 1221 out=out.decode("utf-8") |
1222 out2=out2.decode("utf-8") | 1222 out2=out2.decode("utf-8") |
1223 err=err.decode("utf-8") | 1223 err=err.decode("utf-8") |