Skip to content

Commit 8768f1e

Browse files
committed
Corrected some errors in vizualize_assembly_graph_by_bin.py
1 parent 1067acc commit 8768f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipeline/vizualize_assembly_graph_by_bin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def bfs(graph, start_set):
283283
exit(1)
284284

285285
graph_filename = graph_file_path.split('/')[-1]
286-
if (graph_filename != 'assembly_graph.gfa' or graph_filename != 'assembly_graph.gfa.gz') and (graph_filename != 'assembly_graph_with_scaffolds.gfa' or graph_filename != 'assembly_graph_with_scaffolds.gfa.gz'):
286+
if !(graph_filename == 'assembly_graph.gfa' or graph_filename == 'assembly_graph.gfa.gz') and !(graph_filename == 'assembly_graph_with_scaffolds.gfa' or graph_filename == 'assembly_graph_with_scaffolds.gfa.gz'):
287287
print('Error! You must provide either the file assembly_graph.gfa or assembly_graph_with_scaffolds.gfa as the graph file')
288288
exit(1)
289289

0 commit comments

Comments
 (0)