Skip to content

Commit d4e4deb

Browse files
authored
Bugfix for cases where there are no output paths, and overlap=True (#100)
1 parent 5c31a9a commit d4e4deb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bin/ntjoin_assemble.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,8 @@ def adjust_for_trimming(self, fasta_filename, paths):
722722
mx_info = defaultdict(dict) # path_index -> mx -> pos
723723
mxs = {} # path_index -> [mx]
724724
cur_path_index = 0
725+
if not paths:
726+
return # If list of paths is empty
725727
cur_valid_segments = {f"{node.contig}_{node.start}_{node.end}"
726728
for node in paths[cur_path_index]}
727729
with btllib.Indexlr(fasta_filename, self.args.overlap_k, self.args.overlap_w,

0 commit comments

Comments
 (0)