Module vcf_rider::fasta [] [src]

The module used for reading the fasta file representing the genome of interest. Right now it should contain a single chromosome to be used with vcf_rider. The id of the fasta should be the same used in the vcf file and with genomic regions represented in the used bed.

Re-exports

use std::io;
use std::io::prelude::*;
use std::io::BufReader;
use std::fs::File;
use std::iter::Iterator;

Structs

Fasta

Struct representing a fasta: its id, then the sequence (encoded by a vector of u8, with ACGTN -> 01234) and the background frequencies of nucleotides (needed to compute TBA values)

FastaReader

Struct used to read fasta files. It will be implement an Iterator of Fasta structs. The String buffer is used to get characters from the BufReader one by one and convert them to our internal Vec<u8> representation.