12 #include <htslib/hts.h>
13 #include <htslib/vcf.h>
19 #include "external-file.h"
20 #include "external-data.h"
23 #include "datatypes.h"
25 #include "stream_tools.h"
71 void set_header(
const File_index &,
const std::vector <std::string> &);
74 void get (
Data *, ...)
const;
80 id1_t
get (
State &)
const;
82 std::vector<std::string> get_sample_names (
void)
const;
88 std::vector <std::string> alt;
91 std::vector <std::string> info;
97 std::vector <count_t>
AC;
101 std::vector <float_t>
AF;
152 void open(
const std::ios_base::openmode &);
153 void open(
const char *,
const std::ios_base::openmode &);
157 void write_header (
const Vcf_data &);
A class converts human readable bases to bit flags.
Definition: base.h:16
Definition: vcf_file.h:144
bool VALIDATED
Validated by follow-up experiment.
Definition: vcf_file.h:140
Population genotypes.
Definition: population.h:13
Vcf_data()
number of individuals sapmled
Definition: vcf_file.cc:49
float_t BQ
RMS base quality at this position.
Definition: vcf_file.h:107
bool SOMATIC
Indicates that the record is a somatic mutation, for cancer genomics.
Definition: vcf_file.h:137
void open_no_extention(const char *, const std::ios::openmode &)
The function that opens a indexed_file (if file).
Definition: map_file.cc:59
An interface that transforms pairs of name and position keys into record numbers. ...
Definition: file_index.h:23
count_t AN
Total number of alleles in called genotypes.
Definition: vcf_file.h:104
An interface for reading and writing data specified outside of mapgd.
Definition: external-file.h:36
count_t NS
Number of samples with data.
Definition: vcf_file.h:131
float_t MQ
RMS mapping quality, e.g. MQ=52.
Definition: vcf_file.h:125
std::istream * in_
All data is read from in.
Definition: map_file.h:85
count_t MQ0
Number of MAPQ == 0 reads covering this record.
Definition: vcf_file.h:128
An interface used to read/write data from outside of mapgd.
Definition: external-data.h:17
std::vector< float_t > AF
Allele frequency for each ALT allele in the same order as listed:
Definition: vcf_file.h:101
std::ostream * out_
All data is written is written to out.
Definition: map_file.h:86
id1_t END
End position of the variant described in this record (esp. for CNVs)
Definition: vcf_file.h:119
count_t DP
Combined depth across samples, e.g. DP=154.
Definition: vcf_file.h:116
std::vector< count_t > AC
Allele count in genotypes, for each ALT allele, in the same order as listed.
Definition: vcf_file.h:97
bool DB
Cigar string describing how to align an alternate allele to the reference allele. ...
Definition: vcf_file.h:113
bool H2
Membership in hapmap2.
Definition: vcf_file.h:122
A key is (i.e. what the user called it).
Definition: key.h:17
Definition: vcf_file.h:53
float_t SB
Strand bias at this position.
Definition: vcf_file.h:134
bool open_
indicates whether the iostream opened succesfully
Definition: map_file.h:60
A class which can be written as flat text file or into an SQL database.
Definition: data.h:34
void put(const Data *,...)
The write function must be defined in the child class.
Definition: vcf_file.cc:150
Summary statistics from the allele command.
Definition: allele.h:19
Base AA
Ancestral allele.
Definition: vcf_file.h:94
Because of the god awful mess that are vcf header lines.
Definition: vcf_file.h:31