|
vg
tools for working with variation graphs
|
#include <gref.hpp>
Classes | |
| struct | TopLevelSnarlStats |
Public Member Functions | |
| void | clear (MutablePathMutableHandleGraph *graph) |
| void | compute (const PathHandleGraph *graph, const bdsg::SnarlDistanceIndex *distance_index, const unordered_set< path_handle_t > &reference_paths, int64_t minimum_length) |
| void | apply (MutablePathMutableHandleGraph *mutable_graph) |
| void | set_verbose (bool verbose) |
| void | enforce_top_level_anchoring (const bdsg::SnarlDistanceIndex &distance_index) |
| void | assign_top_level_snarls (const bdsg::SnarlDistanceIndex &distance_index) |
| void | assign_nesting (const bdsg::SnarlDistanceIndex &distance_index) |
| void | write_gref_segments (ostream &os) |
Static Public Member Functions | |
| static string | make_gref_copy_name (const string &path_name) |
| static string | make_gref_base_name (const string &base_path_name) |
| static bool | is_gref_derived (const string &name) |
| static string | make_gref_name (const string &base_path_name, int64_t gref_index) |
| static bool | is_gref_name (const string &path_name) |
| static string | parse_base_path (const string &gref_name) |
| static int64_t | parse_gref_index (const string &gref_name) |
Static Public Attributes | |
| static const string | gref_prefix = "gref_" |
| static const string | gref_suffix = "_alt" |
Protected Member Functions | |
| void | add_interval (vector< pair< step_handle_t, step_handle_t > > &thread_gref_intervals, unordered_map< nid_t, int64_t > &thread_node_to_interval, const pair< step_handle_t, step_handle_t > &new_interval, vector< pair< nid_t, nid_t > > *snarl_bounds_vec=nullptr, pair< nid_t, nid_t > snarl_bounds={0, 0}) |
| void | filter_short_intervals (int64_t minimum_length) |
| void | fill_uncovered_nodes (int64_t minimum_length) |
| vector< pair< int64_t, nid_t > > | get_reference_nodes (nid_t node_id, bool first) const |
| string | resolve_base_path_name (int64_t interval_index, path_handle_t *out_ref_path=nullptr, nid_t *out_ref_node=nullptr) const |
| void | verify_cover (int64_t minimum_length) const |
| void | verify_disjoint () const |
| void | copy_base_paths_to_gref (MutablePathMutableHandleGraph *mutable_graph, const unordered_set< path_handle_t > &reference_paths) |
Protected Attributes | |
| const PathHandleGraph * | graph = nullptr |
| vector< pair< step_handle_t, step_handle_t > > | gref_intervals |
| vector< pair< nid_t, nid_t > > | interval_snarl_bounds |
| TopLevelSnarlStats | top_level_snarl_stats |
| vector< int64_t > | interval_parent |
| vector< int64_t > | interval_level |
| unordered_set< nid_t > | excluded_nodes |
| int64_t | excluded_units = 0 |
| int64_t | excluded_bp = 0 |
| int64_t | num_ref_intervals = 0 |
| unordered_map< nid_t, int64_t > | node_to_interval |
| unordered_map< string, int64_t > | base_path_gref_counter |
| bool | verbose = false |
|
protected |
| void vg::GrefCover::apply | ( | MutablePathMutableHandleGraph * | mutable_graph | ) |
| void vg::GrefCover::assign_nesting | ( | const bdsg::SnarlDistanceIndex & | distance_index | ) |
| void vg::GrefCover::assign_top_level_snarls | ( | const bdsg::SnarlDistanceIndex & | distance_index | ) |
| void vg::GrefCover::clear | ( | MutablePathMutableHandleGraph * | graph | ) |
| void vg::GrefCover::compute | ( | const PathHandleGraph * | graph, |
| const bdsg::SnarlDistanceIndex * | distance_index, | ||
| const unordered_set< path_handle_t > & | reference_paths, | ||
| int64_t | minimum_length ) |
|
protected |
| void vg::GrefCover::enforce_top_level_anchoring | ( | const bdsg::SnarlDistanceIndex & | distance_index | ) |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
| void vg::GrefCover::set_verbose | ( | bool | verbose | ) |
|
protected |
|
protected |
| void vg::GrefCover::write_gref_segments | ( | ostream & | os | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.17.0