Mercurial > repos > jay > pdaug_tsvtofasta
changeset 5:f93187136dfb draft
"planemo upload for repository https://github.com/jaidevjoshi83/pdaug commit edb37634e419f75dd66292e712de51278746d883"
author | jay |
---|---|
date | Wed, 30 Dec 2020 02:42:16 +0000 |
parents | 87b77f2ddb0c |
children | 391e7e836fe9 |
files | PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.py Tue Dec 29 18:13:00 2020 +0000 +++ b/PDAUG_TSVtoFASTA/PDAUG_TSVtoFASTA.py Wed Dec 30 02:42:16 2020 +0000 @@ -27,12 +27,12 @@ if l[1] in line.split('\t')[1].strip('\n').strip('\r'): n= n+1 - of1.write('>peptide_'+str(n)+'_'+str(l[0])+'\n') + of1.write('>peptide_'+str(n)+'_'+str(l[1])+'\n') of1.write(line.split('\t')[0]+'\n') if l[0] in line.split('\t')[1].strip('\n').strip('\r'): m= m+1 - of2.write('>peptide_'+str(m)+'_'+str(l[1])+'\n') + of2.write('>peptide_'+str(m)+'_'+str(l[0])+'\n') of2.write(line.split('\t')[0]+'\n') elif Method == 'NoClassLabel':