Skip to content

Commit 85e463b

Browse files
author
Naomi Wilson
committed
update blast summary function
1 parent 56eee14 commit 85e463b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/aggregate_results.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def blast_summary(blast_files):
3333
try:
3434
with open(infile) as f:
3535
for result in parse_blast6(f):
36-
if len(result.hits) > 0:
36+
if len(result) > 0:
3737
yield {
3838
"sample": sample,
39-
"query": result.id,
40-
"hit": result.hits[0].id,
39+
"query": result["qseqid"],
40+
"hit": result["sseqid"],
4141
}
4242
except ParseError:
4343
print("Skipping empty/malformed %s" % infile)

0 commit comments

Comments
 (0)