vg
tools for working with variation graphs
Classes | Namespaces | Functions
recombinator.cpp File Reference
#include "recombinator.hpp"
#include "gref.hpp"
#include "statistics.hpp"
#include "algorithms/component.hpp"
#include "algorithms/extract_subchain.hpp"
#include "hash_map.hpp"
#include <algorithm>
#include <cmath>

Classes

struct  vg::FragmentedHaplotypeVisit
 
struct  vg::RecombinatorHaplotype
 
struct  vg::RecombinatorFragment
 

Namespaces

 vg
 

Functions

bool vg::is_gref_path (const gbwt::FullPathName &path_name)
 
std::vector< HaplotypePartitioner::sequence_type > vg::get_sequence_visits (handle_t handle, const gbwt::FastLocate &r_index)
 
std::vector< HaplotypePartitioner::sequence_type > vg::match_visits (handle_t start, handle_t end, const std::vector< HaplotypePartitioner::sequence_type > &from_visits, const std::vector< HaplotypePartitioner::sequence_type > &to_visits, const HaplotypePartitioner &partitioner)
 
std::vector< std::string > vg::generate_haplotype (gbwt::size_type sequence_id, gbwt::edge_type pos, handle_t end, size_t start_max, size_t end_max, const HaplotypePartitioner &partitioner, gbwt::CachedGBWT &cached_gbwt)
 
std::vector< HaplotypePartitioner::kmer_type > vg::take_unique_minimizers (const std::vector< std::string > &sequences, const HaplotypePartitioner::minimizer_index_type &minimizer_index, vg::hash_map< HaplotypePartitioner::kmer_type, size_t > &kmer_cache)
 
void vg::present_kmers (const std::vector< std::vector< HaplotypePartitioner::kmer_type >> &kmers_by_sequence, const std::vector< Haplotypes::sequence_type > &sequences, Haplotypes::Subchain &subchain)
 
void vg::add_path (const gbwt::GBWT &source, gbwt::size_type path_id, gbwt::GBWTBuilder &builder, gbwtgraph::MetadataBuilder &metadata)
 
std::vector< PathPiece > vg::clip_path_to_index (const gbwt::vector_type &path, const gbwt::DynamicGBWT &index, const std::function< size_t(gbwt::node_type)> &node_length)
 
size_t vg::add_gref_fragments (const gbwtgraph::GBZ &gbz, const std::vector< gbwt::size_type > &path_ids, size_t min_length, gbwt::GBWTBuilder &builder, gbwtgraph::MetadataBuilder &metadata)
 
void vg::validate_recombinator_parameters (const Recombinator::Parameters &parameters)
 
double vg::get_or_estimate_coverage (const hash_map< Haplotypes::Subchain::kmer_type, size_t > &counts, const Recombinator::Parameters &parameters, Haplotypes::Verbosity verbosity)
 
bool vg::contains_homopolymer (const Haplotypes::Subchain::kmer_type kmer, size_t k, size_t threshold)
 
std::vector< std::pair< KmerPresenceMatrix::kmer_classification, double > > vg::classify_kmers (const Haplotypes::Subchain &subchain, const hash_map< Haplotypes::Subchain::kmer_type, size_t > &kmer_counts, double coverage, size_t k, Recombinator::Statistics *statistics, const Recombinator::Parameters &parameters)
 
std::vector< std::pair< size_t, double > > vg::select_diploid (const gbwtgraph::GBZ &gbz, const Haplotypes::Subchain &subchain, const std::vector< std::pair< size_t, double >> &candidates, const std::vector< std::pair< KmerPresenceMatrix::kmer_classification, double >> &kmer_types, const Recombinator::Parameters &parameters)
 
std::vector< std::pair< size_t, double > > vg::select_haplotypes (const gbwtgraph::GBZ &gbz, const Haplotypes::Subchain &subchain, const hash_map< Haplotypes::Subchain::kmer_type, size_t > &kmer_counts, double coverage, size_t k, Recombinator::Statistics *statistics, std::vector< Recombinator::LocalHaplotype > *local_haplotypes, const Recombinator::Parameters &parameters)