[−][src]Struct biofile::plink_bim::PlinkBim
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]
filepath: &str,
partitions: HashMap<PartitionKeyType, OrderedIntegerSet<usize>>
) -> Result<PlinkBim, Error>
pub fn new_with_partition_file(
bim_filepath: &str,
partition_filepath: &str
) -> Result<PlinkBim, Error>
[src]
bim_filepath: &str,
partition_filepath: &str
) -> Result<PlinkBim, Error>
pub fn get_fileline_partitions(
&self
) -> Option<HashMap<String, OrderedIntegerSet<usize>>>
[src]
&self
) -> Option<HashMap<String, OrderedIntegerSet<usize>>>
pub fn get_fileline_partitions_by_ref(
&self
) -> Option<&HashMap<String, OrderedIntegerSet<usize>>>
[src]
&self
) -> Option<&HashMap<String, OrderedIntegerSet<usize>>>
pub fn get_fileline_partitions_from_partition_file(
&mut self,
partition_file_path: &str
) -> Result<HashMap<PartitionKeyType, OrderedIntegerSet<usize>>, Error>
[src]
&mut self,
partition_file_path: &str
) -> Result<HashMap<PartitionKeyType, OrderedIntegerSet<usize>>, Error>
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]
&mut self,
chrom: &str
) -> Result<OrderedIntegerSet<usize>, Error>
pub fn get_chrom_to_fileline_positions(
&mut self
) -> Result<HashMap<String, OrderedIntegerSet<usize>>, Error>
[src]
&mut self
) -> Result<HashMap<String, OrderedIntegerSet<usize>>, Error>
pub fn set_fileline_partitions(
&mut self,
partitions: Option<HashMap<PartitionKeyType, OrderedIntegerSet<usize>>>
)
[src]
&mut self,
partitions: Option<HashMap<PartitionKeyType, OrderedIntegerSet<usize>>>
)
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]
self,
partition_file: &str
) -> Result<PlinkBim, Error>
Auto Trait Implementations
impl Unpin for PlinkBim
impl Sync for PlinkBim
impl Send for PlinkBim
impl UnwindSafe for PlinkBim
impl RefUnwindSafe for PlinkBim
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,