Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/subcommand/call_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ int main_call(int argc, char** argv) {
// Apply overlays as necessary
bool need_path_positions = vcf_filename.empty();
bool need_vectorizable = !pack_filename.empty();
// When not using GBWT/GBZ, embedded HAPLOTYPE paths are the sample alleles
bool all_paths = gbwt_filename.empty() && !gbz_graph;
bdsg::ReferencePathOverlayHelper pp_overlay_helper;
bdsg::ReferencePathVectorizableOverlayHelper ppv_overlay_helper;
bdsg::PathVectorizableOverlayHelper pv_overlay_helper;
Expand All @@ -444,7 +446,7 @@ int main_call(int argc, char** argv) {
if (need_path_positions && need_vectorizable) {
graph = dynamic_cast<PathHandleGraph*>(ppv_overlay_helper.apply(graph));
} else if (need_path_positions && !need_vectorizable) {
graph = dynamic_cast<PathHandleGraph*>(pp_overlay_helper.apply(graph));
graph = dynamic_cast<PathHandleGraph*>(pp_overlay_helper.apply(graph, all_paths));
} else if (!need_path_positions && need_vectorizable) {
graph = dynamic_cast<PathHandleGraph*>(pv_overlay_helper.apply(graph));
}
Expand Down
4 changes: 3 additions & 1 deletion src/subcommand/deconstruct_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ int main_deconstruct(int argc, char** argv) {
std::chrono::time_point<std::chrono::system_clock> overlay_start_time = std::chrono::system_clock::now();

// Make the overlay
PathPositionHandleGraph* graph = overlay_helper.apply(path_handle_graph);
// When not using GBWT/GBZ, embedded HAPLOTYPE paths are the sample alleles
bool all_paths = gbwt_file_name.empty() && !gbz_graph;
PathPositionHandleGraph* graph = overlay_helper.apply(path_handle_graph, all_paths);

// See how long that took
clock_t overlay_stop_clock = clock();
Expand Down
Loading