Skip to content

Commit

Permalink
fix reading of focal_report
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Feb 15, 2024
1 parent a21c73e commit 0b105fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metagenomics.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ def filter_taxids_to_focal_hits(taxids_tsv, focal_report_tsv, taxdb_dir, min_rea
# load focal hits
hits = set()
with util.file.open_or_gzopen(focal_report_tsv, "rt") as inf:
for row in csv.reader(inf, delimiter='\t'):
for row in csv.DictReader(inf, delimiter='\t'):
if int(row['reads_excl_children']) >= min_read_count:
hits.add(row['taxon_id'])

Expand Down

0 comments on commit 0b105fd

Please sign in to comment.