pub enum Commands {
    Extract {
        bam: String,
        reference: bool,
        simplify: bool,
        quality: bool,
        min_ml_score: u8,
        m6a: Option<String>,
        cpg: Option<String>,
        msp: Option<String>,
        nuc: Option<String>,
        all: Option<String>,
        full_float: bool,
    },
    Center {
        bam: String,
        bed: String,
        min_ml_score: u8,
        wide: bool,
    },
    PredictM6A {
        bam: String,
        out: String,
        keep: bool,
        cnn: bool,
        full_float: bool,
    },
}
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.

simplify: bool

simplify output by remove fiber sequence

quality: bool

include per base quality scores in “fiber_qual”

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 .

full_float: bool

Add the full floating point predictions of the ML model

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 a 4th strand column is included.

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.

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

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

cnn: bool

use CNN model for prediction instead of XGB.

full_float: bool

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

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

Trait Implementations

Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Test whether Self can parse a specific subcommand

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.