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

Represents a variant in the target dataset. More...

#include <variant.hpp>

Public Attributes

std::string chrom
 Chromosome name.
 
std::uint32_t pos
 1-based position on the chromosome
 
std::string id
 Variant identifier.
 
std::string ref
 Reference allele.
 
std::string alt
 Alternate allele.
 
bool in_tar
 True if site exists in the target file.
 
bool in_ref
 True if site exists in the reference file.
 
float af
 Allele frequency.
 
float err
 Error rate.
 
float recom
 Recombination rate.
 
std::vector< std::int8_t > gt
 Genotype data for each sample.
 

Detailed Description

Represents a variant in the target dataset.

Contains information about the variant's chromosome, position, alleles, genotype data, and flags indicating whether the site exists in the target or reference file.

Member Data Documentation

◆ af

float target_variant::af

Allele frequency.

◆ alt

std::string target_variant::alt

Alternate allele.

◆ chrom

std::string target_variant::chrom

Chromosome name.

◆ err

float target_variant::err

Error rate.

◆ gt

std::vector<std::int8_t> target_variant::gt

Genotype data for each sample.

◆ id

std::string target_variant::id

Variant identifier.

◆ in_ref

bool target_variant::in_ref

True if site exists in the reference file.

◆ in_tar

bool target_variant::in_tar

True if site exists in the target file.

◆ pos

std::uint32_t target_variant::pos

1-based position on the chromosome

◆ recom

float target_variant::recom

Recombination rate.

◆ ref

std::string target_variant::ref

Reference allele.


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