comparison libs/BWA_analysis_O_new_dependent.py @ 11:b4484db557ab draft

planemo upload commit a4fb57231f274270afbfebd47f67df05babffa4a-dirty
author charles_s_test
date Wed, 29 Nov 2017 12:46:19 -0500
parents 53efef402c51
children
comparison
equal deleted inserted replaced
10:53efef402c51 11:b4484db557ab
1 #!/usr/bin/env python 1 #!/usr/bin/env python2.7
2 #tyr_of_O2_O9.fasta should be in the same directory, in it, O9 should be first then O2 2 #tyr_of_O2_O9.fasta should be in the same directory, in it, O9 should be first then O2
3 3
4 import os 4 import os
5 from Bio import SeqIO 5 from Bio import SeqIO
6 import sys 6 import sys
63 re_core_id=reverse_seq.split(".fastq")[0] 63 re_core_id=reverse_seq.split(".fastq")[0]
64 for_fq=for_core_id+".fastq" 64 for_fq=for_core_id+".fastq"
65 rev_fq=re_core_id+".fastq" 65 rev_fq=re_core_id+".fastq"
66 dirpath = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))#######03152016 66 dirpath = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))#######03152016
67 print "check fastq id and make them in accordance with each other...please wait..." 67 print "check fastq id and make them in accordance with each other...please wait..."
68 os.system("python "+dirpath+"/compare_and_change_two_fastq_id.py "+for_fq+" "+rev_fq)#######03152016 68 os.system("python2.7 "+dirpath+"/compare_and_change_two_fastq_id.py "+for_fq+" "+rev_fq)#######03152016
69 for_sai=for_core_id+".sai" 69 for_sai=for_core_id+".sai"
70 rev_sai=re_core_id+".sai" 70 rev_sai=re_core_id+".sai"
71 sam=for_core_id+".sam" 71 sam=for_core_id+".sam"
72 bam=sam.replace(".sam",".bam") 72 bam=sam.replace(".sam",".bam")
73 elif file_mode=="3":#single-end 73 elif file_mode=="3":#single-end