Skip to content
Merged
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
6 changes: 3 additions & 3 deletions src/subcommand/call_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,17 +436,17 @@ int main_call(int argc, char** argv) {
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;
bool embedded_haplotype_paths = gbwt_filename.empty() && !gbz_graph;
bdsg::ReferencePathOverlayHelper pp_overlay_helper;
bdsg::ReferencePathVectorizableOverlayHelper ppv_overlay_helper;
bdsg::PathVectorizableOverlayHelper pv_overlay_helper;
if (show_progress) {
logger.info() << "Applying overlays if necessary (i.e. input not in XG format)" << endl;
}
if (need_path_positions && need_vectorizable) {
graph = dynamic_cast<PathHandleGraph*>(ppv_overlay_helper.apply(graph));
graph = dynamic_cast<PathHandleGraph*>(ppv_overlay_helper.apply(graph, embedded_haplotype_paths));
} else if (need_path_positions && !need_vectorizable) {
graph = dynamic_cast<PathHandleGraph*>(pp_overlay_helper.apply(graph, all_paths));
graph = dynamic_cast<PathHandleGraph*>(pp_overlay_helper.apply(graph, embedded_haplotype_paths));
} else if (!need_path_positions && need_vectorizable) {
graph = dynamic_cast<PathHandleGraph*>(pv_overlay_helper.apply(graph));
}
Expand Down
4 changes: 2 additions & 2 deletions src/subcommand/deconstruct_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ int main_deconstruct(int argc, char** argv) {

// Make the overlay
// 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);
bool embedded_haplotype_paths = gbwt_file_name.empty() && !gbz_graph;
PathPositionHandleGraph* graph = overlay_helper.apply(path_handle_graph, embedded_haplotype_paths);

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