Skip to content

Commit b4bc7d6

Browse files
committed
fix parse_report.py for missing orders
1 parent 6bef1a5 commit b4bc7d6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [Unreleased]
9+
### Changed
10+
11+
- fix the parse_report.py script to account for cases where krakenuniq assigned a taxa without order
12+
813
## [v1.6.1] - 2023-07-04
914

1015
This is a minor update to the final_report created

bin/parse_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def order(self):
3838
if self.level == 'order':
3939
return self.name
4040
else:
41-
return self.parent.order
41+
return self.parent.order if self.parent else None
4242

4343
@property
4444
def best_child(self):

0 commit comments

Comments
 (0)