biocore / microprot

structural annotation pipeline for microbial genomes and metagenomes
BSD 3-Clause "New" or "Revised" License
1 stars 6 forks source link

BUG: process_fasta.extract_sequences cannot handle lists of int #39

Closed tkosciol closed 7 years ago

tkosciol commented 7 years ago

process_fasta.extract_sequences cannot handle lists of identifiers which are integers, e.g.

process_fasta.extract_sequences('input.faa', identifiers=[1, 2])

gives an error

AttributeError: 'int' object has no attribute 'isdigit'

line 58 does a check if the identifier has attribute isdigit which is specific to str, not int.

I also have a feature request for this function, but I will submit it as a separate issue.