[][src]Enum d4::Dictionary

pub enum Dictionary {
    SimpleRange {
        low: i32,
        high: i32,
    },
    Dictionary {
        _v2i_map: Box<HashMap<i32, u32>>,
        i2v_map: Box<Vec<i32>>,
    },
}

The dictionary (a.k.a encoding table)

Variants

SimpleRange

The dictionary for a consequtive range

Fields of SimpleRange

low: i32high: i32
Dictionary

The dctionary described as a key-value map

Fields of Dictionary

_v2i_map: Box<HashMap<i32, u32>>i2v_map: Box<Vec<i32>>

Implementations

impl Dictionary[src]

pub fn pretty_print(&self) -> Result<String>[src]

Pretty print the dictionary in JSON format

pub fn from_sample_bam<P: AsRef<Path>, F: Fn(&str, usize) -> bool>(
    path: P,
    filter: F,
    reference: Option<&str>,
    min_mq: u8
) -> Result<Self, Box<dyn Error>>
[src]

Run the random sampling algorithm on an alignment file, determining the optimal dictionary configuration

pub fn from_dict_list(mapping: Vec<i32>) -> Result<Self>[src]

Create a dictioanry from the mapping vector

pub fn new_dictionary_from_file<R: Read>(file: R) -> Result<Self>[src]

Create a dictionary from a dictionay specification file. The dictionary has 2^K lines, the N-th lines contains the actual value that code N-1 encodes.

pub fn new_simple_range_dict(left: i32, right: i32) -> Result<Self>[src]

Create a new simple range dictionary

Trait Implementations

impl Clone for Dictionary[src]

impl<'de> Deserialize<'de> for Dictionary[src]

impl Serialize for Dictionary[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,