Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some issues with update with library #108

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dkhofer
Copy link
Collaborator

@dkhofer dkhofer commented Dec 9, 2024

No description provided.

@dkhofer dkhofer force-pushed the update-with-library-fixes branch from d3c9ff0 to 55ddf29 Compare December 9, 2024 20:06

BlockGroup::prune_graph(&mut graph);
let (graph, _edges_by_node_pair) = Edge::build_graph(&edges, &blocks);
// BlockGroup::prune_graph(&mut graph);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was causing problems because all the edges are currently getting a chromosome index of 0 when we update with a library, so most edges were getting pruned. I'm going to work on the real solution next

conn,
part_hash,
calculate_hash(&format!(
"{path_id}:{ref_start}-{ref_end}->{sequence_hash}-column-{index}",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I needed to append column-{index} to the end of the hashed string in order to ensure a new node is created for a redundant part that's in a different column

@dkhofer dkhofer force-pushed the update-with-library-fixes branch from 9c9ee9c to 1d152ce Compare December 11, 2024 22:06
@dkhofer dkhofer force-pushed the update-with-library-fixes branch from 1d152ce to 57fdc04 Compare December 12, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant