issues
search
arpcard
/
rgi
Resistance Gene Identifier (RGI). Software to predict resistomes from protein or nucleotide data, including metagenomics data, based on homology and SNP models.
Other
319
stars
76
forks
source link
Fix infinite loop if fasta is empty
#198
Closed
rzlim08
closed
1 year ago
rzlim08
commented
1 year ago
If the incoming bam file has no alignments to the database, the fasta file is empty
Since the fasta file is empty, list_size is 0
passing a list_size of 0 to chunk_list gets stuck in an infinite loop
This PR returns an empty list of lists; the rest of the code seems well defined enough to output appropriate empty outputs
raphenya
commented
1 year ago
@rzlim08 Thank you. good catch.