Mercurial > repos > artbio > cherry_pick_fasta
comparison cherry_pick_fasta.py @ 2:321cad0eb507 draft
"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/cherry_pick_fasta commit b5ef783237b244d684e26b1ed1cc333a8305ce3e"
author | artbio |
---|---|
date | Tue, 16 Mar 2021 23:25:57 +0000 |
parents | ea8fde9c6f82 |
children | c282a8a47dd9 |
comparison
equal
deleted
inserted
replaced
1:ea8fde9c6f82 | 2:321cad0eb507 |
---|---|
43 continue | 43 continue |
44 return accumulator | 44 return accumulator |
45 | 45 |
46 | 46 |
47 def complement_fasta(fullfasta, subfasta): | 47 def complement_fasta(fullfasta, subfasta): |
48 return list(set(fullfasta) - set(subfasta)) | 48 return sorted(list(set(fullfasta) - set(subfasta))) |
49 | 49 |
50 | 50 |
51 def getquerylist(file): | 51 def getquerylist(file): |
52 querylist = [] | 52 querylist = [] |
53 for line in open(file, 'r'): | 53 for line in open(file, 'r'): |