diff --git a/bin/ntjoin_assemble.py b/bin/ntjoin_assemble.py index 922e91d..c5144ef 100755 --- a/bin/ntjoin_assemble.py +++ b/bin/ntjoin_assemble.py @@ -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,