Mercurial > repos > bornea > filter_fasta
changeset 14:d66c62c6c56f draft
Uploaded
author | bornea |
---|---|
date | Wed, 24 Aug 2016 13:00:03 -0400 |
parents | 55990dea42fb |
children | 3833aebf8d3a |
files | filter_fasta.py |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/filter_fasta.py Tue Aug 16 20:48:46 2016 -0400 +++ b/filter_fasta.py Wed Aug 24 13:00:03 2016 -0400 @@ -34,10 +34,13 @@ break cnt += 1 header = data[header_start] - if "Accession Number" in header: - prot_start = header.index("Accession Number") - elif "Accession" in header: - prot_start = header.index("Accession") + for i in header: + if i == "Accession": + prot_start = header.index("Accession") + if i == "Accession Number": + prot_start = header.index("Accession Number") + if i == "Main Accession": + prot_start = header.index("Main Accession") proteins = [] for protein in data[header_start:]: if len(protein) > prot_start: