Minimac4
Loading...
Searching...
No Matches
sparse_ref_variant Struct Reference

Represents a reference variant with sparse allele information. More...

#include <variant.hpp>

Inheritance diagram for sparse_ref_variant:
[legend]
Collaboration diagram for sparse_ref_variant:
[legend]

Public Member Functions

 sparse_ref_variant (const std::string &_chrom, std::uint32_t _pos, const std::string &_id, const std::string &_ref, const std::string &_alt, float _err, float _recom, double _cm, std::size_t _ac, const std::size_t *off_it, const std::size_t *off_it_end)
 
- Public Member Functions inherited from reference_site_info
 reference_site_info ()
 
 reference_site_info (std::string _chrom, std::uint32_t _pos, std::string _id, std::string _ref, std::string _alt, float _err, float _recom, double _cm)
 

Public Attributes

std::size_t ac
 Allele count.
 
std::vector< std::uint32_t > alt_allele_offsets
 Offsets of alternate alleles.
 
- Public Attributes inherited from reference_site_info
std::string chrom
 Chromosome name.
 
std::uint32_t pos = 0
 Position on the chromosome.
 
std::string id
 Variant identifier.
 
std::string ref
 Reference allele.
 
std::string alt
 Alternate allele.
 
float err = std::numeric_limits<float>::quiet_NaN()
 Error rate.
 
float recom = std::numeric_limits<float>::quiet_NaN()
 Recombination rate.
 
double cm = std::numeric_limits<double>::quiet_NaN()
 Centimorgan position.
 

Detailed Description

Represents a reference variant with sparse allele information.

Stores allele count and offsets to alternate alleles in addition to the basic reference site info.

Constructor & Destructor Documentation

◆ sparse_ref_variant()

sparse_ref_variant::sparse_ref_variant ( const std::string & _chrom,
std::uint32_t _pos,
const std::string & _id,
const std::string & _ref,
const std::string & _alt,
float _err,
float _recom,
double _cm,
std::size_t _ac,
const std::size_t * off_it,
const std::size_t * off_it_end )
inline
Here is the call graph for this function:

Member Data Documentation

◆ ac

std::size_t sparse_ref_variant::ac

Allele count.

◆ alt_allele_offsets

std::vector<std::uint32_t> sparse_ref_variant::alt_allele_offsets

Offsets of alternate alleles.


The documentation for this struct was generated from the following file: