Module vcf_rider::mutations
[−]
[src]
Module able to load mutations from a vcf file.
Re-exports
use rust_htslib::bcf; |
use std::io; |
use itertools::Itertools; |
use std::path::Path; |
Structs
Coordinate |
Struct to represent genomic coordinates. 0 based, end exclusive. |
Mutation |
Struct used to represent SNPs and indels loaded from vcf files. Suitable only for biallelic polymorphisms. |
VcfReader |
Struct used to load vcf, it will be used as an |
Enums
Position |
Enum used to represent the relative position of two |
Functions
decode_allele |
Function used to map 0 and 1 of vcf to a bool. Panics if something different from 0 or 1 is found. |
decode_genotype |
Function that decodes a genotype in the format "0/1" of the vcf files to our internal representation. Missing data (".") are encoded as the reference. |
get_sequence |
Returns the encoded sequence for a mutation. 666 for indels, 0-A, 1-C, 2-G, 3-T, 4-N for SNPs. |