[−][src]Struct rust_htslib::bam::IndexedReader
Methods
impl IndexedReader
[src]
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self>
[src]
pub fn from_path_and_index<P: AsRef<Path>>(
path: P,
index_path: P
) -> Result<Self>
[src]
path: P,
index_path: P
) -> Result<Self>
pub fn from_url(url: &Url) -> Result<Self>
[src]
pub fn fetch(&mut self, tid: u32, beg: u32, end: u32) -> Result<()>
[src]
pub fn fetch_str(&mut self, region: &[u8]) -> Result<()>
[src]
Fetch reads from a region using a samtools region string. Region strings are of the format b"chr1:1-1000".
Arguments
region
- A binary string
pub fn set_reference<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
[src]
Trait Implementations
impl Debug for IndexedReader
[src]
impl Drop for IndexedReader
[src]
impl Read for IndexedReader
[src]
fn read(&mut self, record: &mut Record) -> Result<bool>
[src]
fn records(&mut self) -> Records<Self>
[src]
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
.
fn pileup(&mut self) -> Pileups<Self>
[src]
fn htsfile(&self) -> *mut htsFile
[src]
fn header(&self) -> &HeaderView
[src]
fn header_mut(&mut self) -> &mut 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 IndexedReader
[src]
Auto Trait Implementations
impl RefUnwindSafe for IndexedReader
impl !Sync for IndexedReader
impl Unpin for IndexedReader
impl UnwindSafe for IndexedReader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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>,