Skip to content

Commit

Permalink
Bugfix for cases where there are no output paths, and overlap=True (#100
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lcoombe authored Sep 12, 2023
1 parent 5c31a9a commit d4e4deb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/ntjoin_assemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,8 @@ def adjust_for_trimming(self, fasta_filename, paths):
mx_info = defaultdict(dict) # path_index -> mx -> pos
mxs = {} # path_index -> [mx]
cur_path_index = 0
if not paths:
return # If list of paths is empty
cur_valid_segments = {f"{node.contig}_{node.start}_{node.end}"
for node in paths[cur_path_index]}
with btllib.Indexlr(fasta_filename, self.args.overlap_k, self.args.overlap_w,
Expand Down

0 comments on commit d4e4deb

Please sign in to comment.