NVBIO
|
#include "htslib/vcfutils.h"
Go to the source code of this file.
Macros | |
#define | BRANCH_INT(type_t) |
#define | BRANCH_INT(type_t, missing, vector_end) |
#define | BRANCH_INT(type_t, missing, vector_end) |
#define | BRANCH(type_t, missing, vector_end) |
#define | BRANCH(type_t, is_vector_end) |
#define | BRANCH(type_t, is_vector_end) |
#define | BRANCH(type_t, is_vector_end) |
#define | BRANCH(type_t, is_vector_end) |
Functions | |
int | bcf_calc_ac (const bcf_hdr_t *header, bcf1_t *line, int *ac, int which) |
int | bcf_gt_type (bcf_fmt_t *fmt_ptr, int isample, int *_ial, int *_jal) |
int | bcf_trim_alleles (const bcf_hdr_t *header, bcf1_t *line) |
void | bcf_remove_alleles (const bcf_hdr_t *header, bcf1_t *line, int rm_mask) |
#define BRANCH | ( | type_t, | |
missing, | |||
vector_end | |||
) |
#define BRANCH | ( | type_t, | |
is_vector_end | |||
) |
#define BRANCH | ( | type_t, | |
is_vector_end | |||
) |
#define BRANCH | ( | type_t, | |
is_vector_end | |||
) |
#define BRANCH | ( | type_t, | |
is_vector_end | |||
) |
#define BRANCH_INT | ( | type_t) |
#define BRANCH_INT | ( | type_t, | |
missing, | |||
vector_end | |||
) |
#define BRANCH_INT | ( | type_t, | |
missing, | |||
vector_end | |||
) |
bcf_calc_ac() - calculate the number of REF and ALT alleles : for access to BCF_DT_ID dictionary VCF line obtained from vcf_parse1 : array of length line->n_allele : determine if INFO/AN,AC and indv fields be used
Returns 1 if the call succeeded, or 0 if the value could not be determined.
The value of determines if existing INFO/AC,AN can be used (BCF_UN_INFO) and and if indv fields can be splitted (BCF_UN_FMT).
Definition at line 3 of file vcfutils.c.
int bcf_gt_type | ( | bcf_fmt_t * | fmt_ptr, |
int | isample, | ||
int * | _ial, | ||
int * | _jal | ||
) |
Definition at line 84 of file vcfutils.c.
bcf_remove_alleles() - remove ALT alleles according to bitmask : for access to BCF_DT_ID dictionary VCF line obtained from vcf_parse1 : alleles to remove
Definition at line 177 of file vcfutils.c.
bcf_trim_alleles() - remove ALT alleles unused in genotype fields : for access to BCF_DT_ID dictionary VCF line obtain from vcf_parse1
Returns the number of removed alleles on success or negative on error: -1 .. some allele index is out of bounds
Definition at line 135 of file vcfutils.c.