[][src]Struct biofile::plink_bim::PlinkBim

pub struct PlinkBim { /* fields omitted */ }

Methods

impl PlinkBim[src]

pub fn new(filepath: &str) -> Result<PlinkBim, Error>[src]

pub fn new_with_partitions(
    filepath: &str,
    partitions: HashMap<PartitionKeyType, OrderedIntegerSet<usize>>
) -> Result<PlinkBim, Error>
[src]

pub fn new_with_partition_file(
    bim_filepath: &str,
    partition_filepath: &str
) -> Result<PlinkBim, Error>
[src]

pub fn get_fileline_partitions(
    &self
) -> Option<HashMap<String, OrderedIntegerSet<usize>>>
[src]

pub fn get_fileline_partitions_by_ref(
    &self
) -> Option<&HashMap<String, OrderedIntegerSet<usize>>>
[src]

pub fn get_fileline_partitions_from_partition_file(
    &mut self,
    partition_file_path: &str
) -> Result<HashMap<PartitionKeyType, OrderedIntegerSet<usize>>, Error>
[src]

each line in the partition file has two fields separated by space: variant_id assigned_partition

pub fn get_filepath(&self) -> &str[src]

pub fn reset_buf(&mut self) -> Result<(), Error>[src]

pub fn lines(&mut self) -> Lines<&mut BufReader<File>>[src]

pub fn get_all_chroms(&mut self) -> Result<HashSet<String>, Error>[src]

pub fn get_chrom_fileline_positions(
    &mut self,
    chrom: &str
) -> Result<OrderedIntegerSet<usize>, Error>
[src]

pub fn get_chrom_to_fileline_positions(
    &mut self
) -> Result<HashMap<String, OrderedIntegerSet<usize>>, Error>
[src]

pub fn set_fileline_partitions(
    &mut self,
    partitions: Option<HashMap<PartitionKeyType, OrderedIntegerSet<usize>>>
)
[src]

pub fn into_partitioned_by_chrom(self) -> Result<PlinkBim, Error>[src]

pub fn into_partitioned_by_file(
    self,
    partition_file: &str
) -> Result<PlinkBim, Error>
[src]

Auto Trait Implementations

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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