Skip to content

Commit

Permalink
update blast summary function
Browse files Browse the repository at this point in the history
  • Loading branch information
Naomi Wilson committed Dec 11, 2023
1 parent 56eee14 commit 85e463b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/aggregate_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ def blast_summary(blast_files):
try:
with open(infile) as f:
for result in parse_blast6(f):
if len(result.hits) > 0:
if len(result) > 0:
yield {
"sample": sample,
"query": result.id,
"hit": result.hits[0].id,
"query": result["qseqid"],
"hit": result["sseqid"],
}
except ParseError:
print("Skipping empty/malformed %s" % infile)
Expand Down

0 comments on commit 85e463b

Please sign in to comment.