Splitter part 2#1568
Open
Itolstoganov wants to merge 17 commits into
Open
Conversation
Contributor
Itolstoganov
commented
Apr 13, 2026
- Adds helper classes in path extend for barcode index-based scaffold graph construction
- Adds splitter tool for repeat resolution of third-party GFA
- Moves mate-pair unrelated functionality from scaffolder2015 to auxiliary_graphs
- Moves IdStorage from GraphCore to enable conjugate GFA links
asl
reviewed
Apr 27, 2026
|
|
||
| auto vertex_colorer = std::make_shared<ScaffoldVertexSetColorer>(main_edge_set); | ||
| using namespace scaffolder; | ||
| std::set<scaffold_graph::ScaffoldVertex> scaff_vertex_set; |
Member
There was a problem hiding this comment.
can probably be auto scaff_vertex_set = main_edge_set :)
asl
reviewed
Apr 27, 2026
| void BaseScaffoldGraphConstructor::ConstructFromSet(const EdgeSet &edge_set, | ||
| ConnectionConditions &connection_conditions, | ||
| bool use_terminal_vertices_only) { | ||
| graph_->AddVertices(edge_set); |
Member
There was a problem hiding this comment.
what's the problem with AddVertices?
asl
reviewed
Apr 27, 2026
| #pragma omp critical | ||
| { | ||
| if (check_predicate) { | ||
| graph_->AddEdge(edge); |
Member
There was a problem hiding this comment.
Is it ok that edges could be added in arbitrary non-deterministic order?
asl
reviewed
Apr 27, 2026
| ScaffoldGraph::ScaffoldEdge edge = scaffold_edges[i]; | ||
| double score = score_function->GetScore(edge); | ||
| #pragma omp critical | ||
| { |
asl
reviewed
Apr 27, 2026
| { | ||
| TRACE("Success"); | ||
| ScaffoldGraph::ScaffoldEdge new_edge(first, *it, 0, score, 0); | ||
| graph_->AddEdgeSimple(new_edge); |
asl
reviewed
Apr 27, 2026
| if (!is_tellseq) { | ||
| barcode_index_builder.ConstructBarcodeIndex(io::paired_easy_readers(lib, false, 0), barcode_index, lib, is_tellseq); | ||
| } | ||
| if (is_tellseq) { |
Member
There was a problem hiding this comment.
the conditions could probably be combined with previous condition:)
asl
reviewed
Apr 27, 2026
| gfa::GFAReader ReadGraph(const gcfg &cfg, | ||
| debruijn_graph::Graph &graph, | ||
| io::IdMapper<std::string> *id_mapper) { | ||
| gfa::GFAReader gfa(cfg.graph); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.