pub enum Commands {
    Extract {
        bam: String,
        reference: bool,
        min_ml_score: u8,
        m6a: Option<String>,
        cpg: Option<String>,
        msp: Option<String>,
        nuc: Option<String>,
        all: Option<String>,
        quality: bool,
        full_float: bool,
        simplify: bool,
    },
    Center {
        bam: String,
        bed: String,
        min_ml_score: u8,
        dist: Option<i64>,
        wide: bool,
    },
    PredictM6A {
        bam: String,
        out: String,
        keep: bool,
        min_ml_score: Option<u8>,
        all_calls: bool,
        xgb: bool,
        cnn: bool,
        semi: bool,
        full_float: bool,
        batch_size: usize,
    },
    ClearKinetics {
        bam: String,
        out: String,
    },
    Completions {
        shell: Shell,
    },
    Man {},
}
Expand description

This structure contains all the subcommands for fiberseq-rs and their help descriptions.

Variants§

§

Extract

Fields

§bam: String

Fiberseq bam file

§reference: bool

Report in reference sequence coordinates

§min_ml_score: u8

Minium score in the ML tag to include in the output

§m6a: Option<String>

Output path for m6a bed12

§cpg: Option<String>

Output path for 5mC (CpG, primrose) bed12

§msp: Option<String>

Output path for methylation sensitive patch (msp) bed12

§nuc: Option<String>

Output path for nucleosome bed12

§all: Option<String>

Output path for a tabular format including “all” fiberseq information in the bam

§quality: bool

Include per base quality scores in “fiber_qual”

§full_float: bool

Add the full floating point predictions of the ML model

§simplify: bool

Simplify output by remove fiber sequence

Extract fiberseq data into plain text files

§

Center

Fields

§bam: String

Fiberseq bam file, must be aligned and have an index

§bed: String

Bed file on which to center fiberseq reads. Data is adjusted to the start position of the bed file and corrected for strand if the strand is indicated in the 6th column of the bed file. The 4th column will also be checked for the strand but only after the 6th is.

If you include strand information in the 4th column it will orient data accordingly and use the end position of bed record instead of the start if on the minus strand. This means that profiles of motifs in both the forward and minus orientation will align to the same central position.

§min_ml_score: u8

Minium score in the ML tag to include in the output

§dist: Option<i64>

Set a maximum distance from the start of the motif to keep a feature

§wide: bool

Provide data in wide format, one row per read

This command centers fiberseq data around given reference positions. This is useful for making aggregate m6A and CpG observations, as well as visualization of SVs

§

PredictM6A

Fields

§bam: String

Bam HiFi file with kinetics

§out: String

Output bam file with m6A calls in new/extended MM and ML bam tags

§keep: bool

Keep hifi kinetics data

§min_ml_score: Option<u8>

Set a minimum ML score to keep on instead of using the model specific minimum ML score.

§all_calls: bool

Keep all m6A calls regardless of how low the ML value is

§xgb: bool

Use the XGBoost model for prediction

§cnn: bool

Use the CNN model for prediction

§semi: bool

Use the semi-supervised CNN model for prediction [default: true]

§full_float: bool

Add a bam tag (mp) with the full floating point predictions of the ML model

For debugging only.

§batch_size: usize

Number of reads to include in batch prediction

Increasing improves GPU performance at the cost of memory.

Predict m6A positions using HiFi kinetics data and encode the results in the MM and ML bam tags

§

ClearKinetics

Fields

§bam: String

Bam HiFi file with kinetics

§out: String

Output bam file without hifi kinetics

Remove HiFi kinetics tags from the input bam file

§

Completions

Fields

§shell: Shell

If provided, outputs the completion file for given shell

Make command line completions

§

Man

Fields

Make a man page for fibertools-rs

Writes file for man to stdout.

Trait Implementations§

source§

impl Debug for Commands

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Commands

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut(
    __clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
source§

fn update_from_arg_matches(
    &mut self,
    __clap_arg_matches: &ArgMatches
) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>(
    &mut self,
    __clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl PartialEq<Commands> for Commands

source§

fn eq(&self, other: &Commands) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Subcommand for Commands

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self. Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can update self. Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand
source§

impl Eq for Commands

source§

impl StructuralEq for Commands

source§

impl StructuralPartialEq for Commands

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SPwhere
    SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere
    V: MultiLane<T>,

§

fn vzip(self) -> V