pub struct PansnParameters {
pub prefix: Option<String>,
pub strip: bool,
pub delimiter: char,
pub hap1_tag: Option<String>,
pub hap2_tag: Option<String>,
pub min_mapq: u8,
pub copy_header: Option<String>,
}Fields§
§prefix: Option<String>panSN-spec prefix to add to contig names (e.g., “HG002#1#”) If provided, adds the prefix. Mutually exclusive with –strip
strip: boolStrip panSN-spec information from contig names Mutually exclusive with –prefix
delimiter: charDelimiter character to use when stripping panSN-spec (default: ‘#’)
hap1_tag: Option<String>Tag to identify haplotype 1 contigs (e.g., “haplotype1”) If both hap1-tag and hap2-tag are provided, reads will be tagged with HP based on contig names
hap2_tag: Option<String>Tag to identify haplotype 2 contigs (e.g., “haplotype2”) If both hap1-tag and hap2-tag are provided, reads will be tagged with HP based on contig names
min_mapq: u8The mapping quality must be greater than or equal to this value for haplotag assignment
copy_header: Option<String>BAM file to copy header from (excluding SQ and HD tags)
Implementations§
Source§impl PansnParameters
impl PansnParameters
Sourcepub fn has_operations(&self) -> bool
pub fn has_operations(&self) -> bool
Check if any panSN operation is specified in the parameters
Trait Implementations§
Source§impl Args for PansnParameters
impl Args for PansnParameters
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 Clone for PansnParameters
impl Clone for PansnParameters
Source§fn clone(&self) -> PansnParameters
fn clone(&self) -> PansnParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PansnParameters
impl Debug for PansnParameters
Source§impl Default for PansnParameters
impl Default for PansnParameters
Source§impl FromArgMatches for PansnParameters
impl FromArgMatches for PansnParameters
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 PansnParameters
impl RefUnwindSafe for PansnParameters
impl Send for PansnParameters
impl Sync for PansnParameters
impl Unpin for PansnParameters
impl UnwindSafe for PansnParameters
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.