pub struct BigBedRead<R> { /* private fields */ }
Expand description
The struct used to read a bigBed file
Implementations§
Source§impl<R> BigBedRead<R>
impl<R> BigBedRead<R>
Source§impl<R> BigBedRead<R>where
R: SeekableRead,
impl<R> BigBedRead<R>where
R: SeekableRead,
Sourcepub fn cached(self) -> BigBedRead<CachedBBIFileRead<R>>
pub fn cached(self) -> BigBedRead<CachedBBIFileRead<R>>
Converts this BigBedRead`` to where the
BBIFileRead` caches index
access and block data
Source§impl<R: BBIFileRead> BigBedRead<R>
impl<R: BBIFileRead> BigBedRead<R>
Sourcepub fn open(read: R) -> Result<Self, BigBedReadOpenError>
pub fn open(read: R) -> Result<Self, BigBedReadOpenError>
Opens a new BigBedRead
for a given type that implements both Read
and Seek
Sourcepub fn autosql(&mut self) -> Result<Option<String>, BBIReadError>
pub fn autosql(&mut self) -> Result<Option<String>, BBIReadError>
Reads the autosql from this bigBed
pub fn item_count(&mut self) -> Result<u64, BBIReadError>
Sourcepub fn inner_read(&self) -> &R
pub fn inner_read(&self) -> &R
Gets a reference to the inner R
type, in order to access any info
Sourcepub fn get_summary(&mut self) -> Result<Summary>
pub fn get_summary(&mut self) -> Result<Summary>
Returns the summary data from bigBed
Note: For version 1 of bigBeds, there is no total summary. In that
case, 0 is returned for all of the summary except total items. If this
matters to you, you can check the version using
info().header.version > 1
.
Sourcepub fn get_interval<'a>(
&'a mut self,
chrom_name: &str,
start: u32,
end: u32,
) -> Result<impl Iterator<Item = Result<BedEntry, BBIReadError>> + 'a, BBIReadError>
pub fn get_interval<'a>( &'a mut self, chrom_name: &str, start: u32, end: u32, ) -> Result<impl Iterator<Item = Result<BedEntry, BBIReadError>> + 'a, BBIReadError>
For a given chromosome, start, and end, returns an Iterator
of the
intersecting BedEntry
s. The resulting iterator takes a mutable reference
of this BigBedRead
.
Sourcepub fn get_interval_move(
self,
chrom_name: &str,
start: u32,
end: u32,
) -> Result<impl Iterator<Item = Result<BedEntry, BBIReadError>>, BBIReadError>
pub fn get_interval_move( self, chrom_name: &str, start: u32, end: u32, ) -> Result<impl Iterator<Item = Result<BedEntry, BBIReadError>>, BBIReadError>
For a given chromosome, start, and end, returns an Iterator
of the
intersecting BedEntry
s. The resulting iterator takes this BigBedRead
by value.
Sourcepub fn get_zoom_interval<'a>(
&'a mut self,
chrom_name: &str,
start: u32,
end: u32,
reduction_level: u32,
) -> Result<impl Iterator<Item = Result<ZoomRecord, BBIReadError>> + 'a, ZoomIntervalError>
pub fn get_zoom_interval<'a>( &'a mut self, chrom_name: &str, start: u32, end: u32, reduction_level: u32, ) -> Result<impl Iterator<Item = Result<ZoomRecord, BBIReadError>> + 'a, ZoomIntervalError>
For a given chromosome, start, and end, returns an Iterator
of the
intersecting ZoomRecord
s.
Sourcepub fn get_zoom_interval_move<'a>(
self,
chrom_name: &str,
start: u32,
end: u32,
reduction_level: u32,
) -> Result<impl Iterator<Item = Result<ZoomRecord, BBIReadError>>, ZoomIntervalError>
pub fn get_zoom_interval_move<'a>( self, chrom_name: &str, start: u32, end: u32, reduction_level: u32, ) -> Result<impl Iterator<Item = Result<ZoomRecord, BBIReadError>>, ZoomIntervalError>
For a given chromosome, start, and end, returns an Iterator
of the
intersecting ZoomRecord
s.