pub struct BigBedWrite<W: Write + Seek + Send + 'static> {
pub options: BBIWriteOptions,
pub autosql: Option<String>,
/* private fields */
}
Expand description
The struct used to write a bigBed file
Fields§
§options: BBIWriteOptions
§autosql: Option<String>
Implementations§
Source§impl BigBedWrite<File>
impl BigBedWrite<File>
Source§impl<W: Write + Seek + Send + 'static> BigBedWrite<W>
impl<W: Write + Seek + Send + 'static> BigBedWrite<W>
pub fn new(out: W, chrom_sizes: HashMap<String, u32>) -> Self
Sourcepub fn write<V: BBIDataSource<Value = BedEntry>>(
self,
vals: V,
runtime: Runtime,
) -> Result<(), BBIProcessError<V::Error>>
pub fn write<V: BBIDataSource<Value = BedEntry>>( self, vals: V, runtime: Runtime, ) -> Result<(), BBIProcessError<V::Error>>
Write the values from V
as a bigWig. Will utilize the provided runtime for encoding values and for reading through the values (potentially parallelized by chromosome).
Sourcepub fn write_multipass<V: BBIDataSource<Value = BedEntry>>(
self,
make_vals: impl Fn() -> Result<V, BBIProcessError<V::Error>>,
runtime: Runtime,
) -> Result<(), BBIProcessError<V::Error>>
pub fn write_multipass<V: BBIDataSource<Value = BedEntry>>( self, make_vals: impl Fn() -> Result<V, BBIProcessError<V::Error>>, runtime: Runtime, ) -> Result<(), BBIProcessError<V::Error>>
Write the values from V
as a bigBed. Will utilize the provided runtime for encoding values and for reading through the values (potentially parallelized by chromosome).
This will take two passes on the provided values: first to write the values themselves, then the zooms. This is beneficial over write
on smaller files, where the encoding of
high resolution zooms takes up a substantial portion of total processing time.
Auto Trait Implementations§
impl<W> Freeze for BigBedWrite<W>where
W: Freeze,
impl<W> RefUnwindSafe for BigBedWrite<W>where
W: RefUnwindSafe,
impl<W> Send for BigBedWrite<W>
impl<W> Sync for BigBedWrite<W>where
W: Sync,
impl<W> Unpin for BigBedWrite<W>where
W: Unpin,
impl<W> UnwindSafe for BigBedWrite<W>where
W: UnwindSafe,
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