Skip to main content

Crate salmon_model

Crate salmon_model 

Source
Expand description

salmon-model: statistical models used during quantification.

Currently provides the fragment-length distribution (fld) and automatic library-type detection (libdetect). Bias models (sequence-specific, GC, positional) and the alignment error model are added in later phases.

Re-exports§

pub use bias::build_expected_pos;
pub use bias::corrected_effective_length_full;
pub use bias::positional_factor;
pub use bias::BiasInputs;
pub use fld::smoothed_effective_length;
pub use fld::FragmentLengthDistribution;
pub use gcbias::build_expected_gc;
pub use gcbias::gc_corrected_effective_length;
pub use gcbias::gc_desc;
pub use gcbias::gc_prefix;
pub use gcbias::gc_ratio;
pub use gcbias::GcFragModel;
pub use gcbias::GcRank;
pub use gcbias::GcStore;
pub use gcbias::GcView;
pub use gcbias::GC_SAMP_STRIDE;
pub use libdetect::LibraryTypeDetector;
pub use posbias::compute_length_quantiles;
pub use posbias::length_class_index;
pub use posbias::SimplePosBias;
pub use posbias::NUM_LENGTH_CLASSES;
pub use posbias::NUM_POS_BINS;
pub use seqbias::build_expected;
pub use seqbias::corrected_effective_length;
pub use seqbias::SBModel;

Modules§

bias
Unified bias-corrected effective length: composes sequence-specific, GC, and positional bias exactly as salmon’s updateEffectiveLengths does — a single conditional-FLD convolution whose per-fragment factor is the product of the enabled bias terms.
dumps
Aux-output dump helpers shared by reads-mode and alignment-mode quant.
fld
Fragment-length distribution.
gcbias
Fragment-GC bias model (GCFragModel).
libdetect
Automatic library-type detection.
posbias
Positional fragment bias (SimplePosBias) — a port of salmon’s src/model/SimplePosBias.cpp.
seqbias
Sequence-specific bias model (SBModel).
spline
Cubic spline interpolation — a faithful port of the vendored tk::spline (Tino Kluge) used by salmon’s SimplePosBias.