Closed nick-youngblut closed 1 year ago
The bug seems to be:
#return empty dataframe if no blast results generated
if os.path.getsize(blast_results) == 0:
return {}
os.path.getsize()
assumes that the file exists. Changing the code to the following fixes the issue:
#return empty dataframe if no blast results generated
if not os.path.isfile(blast_results):
open(blast_results, 'w').close()
if os.path.getsize(blast_results) == 0:
return {}
I agree, this is a bug to correct for all BLAST results queries. Could you provide us with the input file that you are using or accession number of the assembly so we could include it in our unit tests?
The "problem" genome is GCA_000434155.1 (Bacteroides_pectinophilus)
Thank you for pointing this out, I will make an update for this issue
It appears that mob_recon expects blast results for the mge report generation, but such blast results are not necessarily generated:
My conda env: