|
vg
tools for working with variation graphs
|
#include <snarl_caller.hpp>
Public Member Functions | |
| SupportBasedSnarlCaller (const PathHandleGraph &graph, SnarlManager &snarl_manager, TraversalSupportFinder &support_finder) | |
| virtual | ~SupportBasedSnarlCaller () |
| virtual void | update_vcf_info (const Snarl &snarl, const vector< SnarlTraversal > &traversals, const vector< int > &genotype, const unique_ptr< CallInfo > &call_info, const string &sample_name, vcflib::Variant &variant) |
| Update INFO and FORMAT fields of the called variant. | |
| void | set_min_supports (double min_mad_for_call, double min_support_for_call, double min_site_support) |
| Set some of the parameters. | |
| TraversalSupportFinder & | get_support_finder () const |
| Get the traversal support finder. | |
| virtual int | get_min_total_support_for_call () const |
| Get the minimum total support for call. | |
| virtual function< bool(const SnarlTraversal &, int iteration)> | get_skip_allele_fn () const |
| Use min_alt_path_support threshold as cutoff. | |
| Public Member Functions inherited from vg::SnarlCaller | |
| virtual | ~SnarlCaller () |
| virtual pair< vector< int >, unique_ptr< CallInfo > > | genotype (const Snarl &snarl, const vector< SnarlTraversal > &traversals, int ref_trav_idx, int ploidy, const string &ref_path_name, pair< size_t, size_t > ref_range)=0 |
| virtual void | update_vcf_header (string &header) const =0 |
| Define any header fields needed by the above. | |
Static Protected Member Functions | |
| static int | get_best_support (const vector< Support > &supports, const vector< int > &skips) |
| Get the best support out of a list of supports, ignoring skips. | |
| static double | support_val (const Support &support) |
| Relic from old code. | |
Protected Attributes | |
| const PathHandleGraph & | graph |
| SnarlManager & | snarl_manager |
| TraversalSupportFinder & | support_finder |
| Get support from traversals. | |
| int | min_total_support_for_call = 2 |
| size_t | min_mad_for_filter = 1 |
| size_t | min_site_depth = 4 |
| double | min_alt_path_support = 0.5 |
Interface for a caller that relies on a TraversalSupportFinder and has a few very basic support-based cutoffs Not every exciting but is currently required for the LegacySupportCaller which needs this to interface with the RepresentativeTraversalFinder
| vg::SupportBasedSnarlCaller::SupportBasedSnarlCaller | ( | const PathHandleGraph & | graph, |
| SnarlManager & | snarl_manager, | ||
| TraversalSupportFinder & | support_finder ) |
|
virtual |
|
staticprotected |
Get the best support out of a list of supports, ignoring skips.
|
virtual |
Get the minimum total support for call.
|
virtual |
Use min_alt_path_support threshold as cutoff.
Reimplemented from vg::SnarlCaller.
| TraversalSupportFinder & vg::SupportBasedSnarlCaller::get_support_finder | ( | ) | const |
Get the traversal support finder.
| void vg::SupportBasedSnarlCaller::set_min_supports | ( | double | min_mad_for_call, |
| double | min_support_for_call, | ||
| double | min_site_support ) |
Set some of the parameters.
|
inlinestaticprotected |
Relic from old code.
|
virtual |
Update INFO and FORMAT fields of the called variant.
Implements vg::SnarlCaller.
Reimplemented in vg::PoissonSupportSnarlCaller, and vg::RatioSupportSnarlCaller.
|
protected |
|
protected |
used only for pruning alleles in the VCFTraversalFinder: minimum support of an allele's alt-path for it to be considered in the brute-force enumeration
|
protected |
what's the minimum ref or alt allele depth to give a PASS in the filter column? Also used as a min actual support for a second-best allele call
|
protected |
what's the minimum total support (over all alleles) of the site to make a call
|
protected |
What's the minimum integer number of reads that must support a call? We don't necessarily want to call a SNP as het because we have a single
|
protected |
|
protected |
Get support from traversals.
1.17.0