Mercurial > repos > estrain > seqsero2_v1_0_1
comparison SeqSero2_package.py @ 21:95764a93ed88
Uploaded
author | estrain |
---|---|
date | Sat, 07 Sep 2019 13:42:22 -0400 |
parents | e33565b4610c |
children | c0c8cc9a3ddb |
comparison
equal
deleted
inserted
replaced
20:b2b1d018b90d | 21:95764a93ed88 |
---|---|
1212 xmlfile="NA" | 1212 xmlfile="NA" |
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(dirpath+"/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 out, err = salmID_output.communicate() | 1218 out, err = salmID_output.communicate() |
1219 out=out.decode("utf-8") | 1219 out=out.decode("utf-8") |
1220 err=err.decode("utf-8") | 1220 err=err.decode("utf-8") |
1221 file=open("data_log.txt","a") | 1221 file=open("data_log.txt","a") |
1222 file.write(out) | 1222 file.write(out) |