Skip to content

Commit

Permalink
Create editable copy of subgraph
Browse files Browse the repository at this point in the history
In networkx v2 subgraphs are frozen and must be copied to be edited
  • Loading branch information
creisle committed Jan 4, 2022
1 parent c3363cc commit 86b046f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mavis/assemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def assemble(
# pull the path scores
path_scores.update(
pull_contigs_from_component(
assembly.subgraph(component),
assembly.subgraph(component).copy(),
component,
min_edge_trim_weight=min_edge_trim_weight,
assembly_max_paths=assembly_max_paths,
Expand Down

0 comments on commit 86b046f

Please sign in to comment.