[−][src]Struct rust_htslib::bam::Reader
A BAM reader.
Methods
impl Reader
[src]
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self>
[src]
pub fn from_stdin() -> Result<Self>
[src]
Create a new Reader from STDIN.
pub fn from_url(url: &Url) -> Result<Self>
[src]
Create a new Reader from URL.
ⓘImportant traits for ChunkIterator<'a, R>pub fn iter_chunk(
&mut self,
start: Option<i64>,
end: Option<i64>
) -> ChunkIterator<Self>
[src]
ⓘImportant traits for ChunkIterator<'a, R>
&mut self,
start: Option<i64>,
end: Option<i64>
) -> ChunkIterator<Self>
Iterator over the records between the (optional) virtual offsets start
and end
Arguments
-
start
- Optional starting virtual offset to seek to. Throws an error if it is not a valid virtual offset. -
end
- Read until the virtual offset is less thanend
pub fn set_reference<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
[src]
Trait Implementations
impl Read for Reader
[src]
fn read(&mut self, record: &mut Record) -> Result<bool>
[src]
ⓘImportant traits for Records<'a, R>fn records(&mut self) -> Records<Self>
[src]
ⓘImportant traits for Records<'a, R>
Iterator over the records of the fetched region.
Note that, while being convenient, this is less efficient than pre-allocating a
Record
and reading into it with the read
method, since every iteration involves
the allocation of a new Record
.
ⓘImportant traits for Pileups<'a, R>fn pileup(&mut self) -> Pileups<Self>
[src]
ⓘImportant traits for Pileups<'a, R>
fn htsfile(&self) -> *mut htsFile
[src]
fn header(&self) -> &HeaderView
[src]
fn seek(&mut self, offset: i64) -> Result<()>
[src]
fn tell(&self) -> i64
[src]
fn set_threads(&mut self, n_threads: usize) -> Result<()>
[src]
impl Send for Reader
[src]
impl Drop for Reader
[src]
impl Debug for Reader
[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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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,