Mercurial > repos > jay > pdaug_peptide_ngrams
comparison PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.py @ 3:b2a7b957cd52 draft
"planemo upload for repository https://github.com/jaidevjoshi83/pdaug commit edb37634e419f75dd66292e712de51278746d883"
author | jay |
---|---|
date | Wed, 30 Dec 2020 03:06:50 +0000 |
parents | bc6aef6ec2d4 |
children | cb2b359a6600 |
comparison
equal
deleted
inserted
replaced
2:bc6aef6ec2d4 | 3:b2a7b957cd52 |
---|---|
25 | 25 |
26 for line in lines: | 26 for line in lines: |
27 | 27 |
28 if l[1] in line.split('\t')[1].strip('\n').strip('\r'): | 28 if l[1] in line.split('\t')[1].strip('\n').strip('\r'): |
29 n= n+1 | 29 n= n+1 |
30 of1.write('>peptide_'+str(n)+'_'+str(l[0])+'\n') | 30 of1.write('>peptide_'+str(n)+'_'+str(l[1])+'\n') |
31 of1.write(line.split('\t')[0]+'\n') | 31 of1.write(line.split('\t')[0]+'\n') |
32 | 32 |
33 if l[0] in line.split('\t')[1].strip('\n').strip('\r'): | 33 if l[0] in line.split('\t')[1].strip('\n').strip('\r'): |
34 m= m+1 | 34 m= m+1 |
35 of2.write('>peptide_'+str(m)+'_'+str(l[1])+'\n') | 35 of2.write('>peptide_'+str(m)+'_'+str(l[0])+'\n') |
36 of2.write(line.split('\t')[0]+'\n') | 36 of2.write(line.split('\t')[0]+'\n') |
37 | 37 |
38 elif Method == 'NoClassLabel': | 38 elif Method == 'NoClassLabel': |
39 | 39 |
40 f = open(InFile) | 40 f = open(InFile) |