pub struct BbiWriterOptions {
pub kind: BbiKind,
pub chr_sizes: Option<ChrMap>,
pub fields: IndexMap<String, String>,
pub items_per_slot: Option<usize>,
pub block_size: u32,
pub compression_level: u32,
pub parallel: i64,
pub section_policy: SectionPolicy,
pub cost_model: CostModel,
}Fields§
§kind: BbiKind§chr_sizes: Option<ChrMap>Declared sizes. Every written coordinate is checked against them, and a
written id resolves against their keys the way a read one does. None
infers each chromosome’s size from what is written.
fields: IndexMap<String, String>bigBed only. The first three must be the coordinates.
items_per_slot: Option<usize>§block_size: u32§compression_level: u32§parallel: i64§section_policy: SectionPolicyHow a wig section decides between widening its encoding and closing.
Every setting writes a valid file; they differ in how big it is. See
SectionPolicy and examples/section_policy.rs.
cost_model: CostModelThe constants behind SectionPolicy::Cost. Exposed for the same
reason: so the model can be measured rather than argued about.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BbiWriterOptions
impl RefUnwindSafe for BbiWriterOptions
impl Send for BbiWriterOptions
impl Sync for BbiWriterOptions
impl Unpin for BbiWriterOptions
impl UnsafeUnpin for BbiWriterOptions
impl UnwindSafe for BbiWriterOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more