pub struct InputBam {
pub bam: String,
pub filters: FiberFilters,
pub global: GlobalOpts,
pub header: Option<Header>,
}Expand description
This struct is used to parse the input bam file and the filters that should be applied to the bam file. This struct is parsed to create command line arguments and then passed to many functions.
Fields§
§bam: StringInput BAM file. If no path is provided stdin is used. For m6A prediction, this should be a HiFi bam file with kinetics data. For other commands, this should be a bam file with m6A calls.
filters: FiberFilters§global: GlobalOpts§header: Option<Header>by skipping this field it is not parsed as a command line argument
Implementations§
Source§impl InputBam
impl InputBam
pub fn bam_reader(&mut self) -> Reader
pub fn indexed_bam_reader(&mut self) -> IndexedReader
pub fn fibers<'a>(&self, bam: &'a mut Reader) -> FiberseqRecords<'a> ⓘ
pub fn header_view(&self) -> HeaderView
pub fn header(&self) -> Header
pub fn bam_writer(&self, out: &str) -> Writer
Sourcepub fn add_pansn_prefix(&mut self, pansn_prefix: &str)
pub fn add_pansn_prefix(&mut self, pansn_prefix: &str)
Add panSN-spec prefix to all contig names in the stored header This must be called after opening the BAM reader to have an effect
Sourcepub fn strip_pansn_spec(&mut self, delimiter: char)
pub fn strip_pansn_spec(&mut self, delimiter: char)
Strip panSN-spec information from all contig names in the stored header using the provided delimiter character (e.g., ‘#’ for panSN format) This must be called after opening the BAM reader to have an effect
Trait Implementations§
Source§impl Args for InputBam
impl Args for InputBam
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for InputBam
impl FromArgMatches for InputBam
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for InputBam
impl RefUnwindSafe for InputBam
impl Send for InputBam
impl Sync for InputBam
impl Unpin for InputBam
impl UnwindSafe for InputBam
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.