Crate consprob

Crate consprob 

Source

Modules§

env
Inspection and manipulation of the process’s environment.

Macros§

array
Create an Array with one, two or three dimensions.
azip
Array zip macro: lock step function application across several arrays and producers.
env
Inspects an environment variable at compile time.
s
Slice argument constructor.

Structs§

Align
AlignScores
AlignSums
AlignfoldProbMats
AlignfoldProbMatsAvg
AlignfoldScores
AlignfoldSums
ArrayBase
An n-dimensional array.
Axis
An axis index.
BufReader
The BufReader<R> struct adds buffering to any reader.
BufWriter
Wraps a writer and buffers its output.
Dim
Dimension description.
FastaRecord
File
An object providing access to an open file on the filesystem.
FoldScoreSets
FoldScores
FoldSums
HAIRPIN_SCORES_SPECIAL
HashMap
A hash map implemented with quadratic probing and SIMD lookup.
HashSet
A hash set implemented as a HashMap where the value is ().
LoopSums
MatchProbMats
NewAxis
Token to represent a new axis in a slice description.
Options
A description of the options that a program can handle.
Path
A slice of a path (akin to str).
Pool
A threadpool that acts as a handle to a number of threads spawned at construction.
Reader
A FASTA reader.

Constants§

A
AA
AC
AG
AU
A_LOWER
A_UPPER
BASEPAIR_LEFT
BASEPAIR_PROBS_FILE
BASEPAIR_PROBS_FILE2
BASEPAIR_RIGHT
BASEPAIR_SCORES
BULGE_SCORES_0X1
BULGE_SCORES_INIT
BULGE_SCORES_LEN
BULGE_SCORES_LEN_ATLEAST
C
CA
CC
CG
COEFF_HAIRPIN_LEN_EXTRAPOLATION
COEFF_NUM_BRANCHES
CONTEXT_INDEX_BASEPAIR
CONTEXT_INDEX_BULGE
CONTEXT_INDEX_EXTERNAL
CONTEXT_INDEX_HAIRPIN
CONTEXT_INDEX_INTERIOR
CONTEXT_INDEX_MULTIBRANCH
CU
C_LOWER
C_UPPER
DANGLING_SCORES_3PRIME
DANGLING_SCORES_5PRIME
DANGLING_SCORES_LEFT
DANGLING_SCORES_RIGHT
DEFAULT_MIN_BASEPAIR_PROB
DEFAULT_MIN_MATCH_PROB
EPSILON
EXAMPLE_FASTA_FILE_PATH
EXTERNAL_SCORE_BASEPAIR
EXTERNAL_SCORE_UNPAIR
G
GA
GAS_CONST
GC
GG
GU
G_LOWER
G_UPPER
HAIRPIN_SCORES_INIT
HAIRPIN_SCORES_LEN
HAIRPIN_SCORES_LEN_ATLEAST
HELIX_AUGU_END_PENALTY
HELIX_CLOSE_SCORES
INIT_INSERT_SCORE
INIT_MATCH_SCORE
INIT_MULTIBRANCH_BASE
INSERT2MATCH_SCORE
INSERT_EXTEND_SCORE
INSERT_SCORES
INSERT_SWITCH_SCORE
INTERIOR_SCORES_1X1
INTERIOR_SCORES_1X2
INTERIOR_SCORES_1X1_CONTRA
INTERIOR_SCORES_2X2
INTERIOR_SCORES_ASYMMETRIC
INTERIOR_SCORES_ASYMMETRIC_ATLEAST
INTERIOR_SCORES_EXPLICIT
INTERIOR_SCORES_INIT
INTERIOR_SCORES_LEN
INTERIOR_SCORES_LEN_ATLEAST
INTERIOR_SCORES_SYMMETRIC
INTERIOR_SCORES_SYMMETRIC_ATLEAST
INVERSE_TEMPERATURE
K0
KILO
LOGSUMEXP_THRESHOLD_UPPER
LOOPMATCH_PROBS_FILE
MATCH2INSERT_SCORE
MATCH2MATCH_SCORE
MATCH_PROBS_FILE
MATCH_SCORES
MAX_2LOOP_LEN
MAX_HAIRPIN_LEN_EXTRAPOLATION
MAX_INTERIOR_ASYMMETRIC
MAX_INTERIOR_EXPLICIT
MAX_INTERIOR_SYMMETRIC
MAX_LOOP_LEN
MIN_HAIRPIN_LEN
MIN_HAIRPIN_LEN_EXTRAPOLATION
MIN_SPAN_HAIRPIN_CLOSE
MULTIBRANCH_SCORE_BASE
MULTIBRANCH_SCORE_BASEPAIR
MULTIBRANCH_SCORE_UNPAIR
NEG_INF
NEG_INFINITYDeprecation planned
Negative infinity (−∞). Use f32::NEG_INFINITY instead.
NINIO_COEFF
NINIO_MAX
NUM_BASES
NUM_CONTEXTS
NUM_SPECIAL_HAIRPINS
NUM_TRANSITS
PAIRMATCH_PROBS_FILE
PROB_BOUND_LOWER
PROB_BOUND_UPPER
PSEUDO_BASE
README_CONTENTS
README_FILE
STACK_SCORES
STACK_SCORES_CONTRA
TEMPERATURE
TERMINAL_MISMATCH_SCORES_1XMANY
TERMINAL_MISMATCH_SCORES_2X3
TERMINAL_MISMATCH_SCORES_CONTRA
TERMINAL_MISMATCH_SCORES_HAIRPIN
TERMINAL_MISMATCH_SCORES_INTERIOR
TERMINAL_MISMATCH_SCORES_MULTIBRANCH
U
UA
UC
UG
UNPAIR
UNPAIR_PROBS_FILE_BULGE
UNPAIR_PROBS_FILE_EXTERNAL
UNPAIR_PROBS_FILE_HAIRPIN
UNPAIR_PROBS_FILE_INTERIOR
UNPAIR_PROBS_FILE_MULTIBRANCH
UU
U_LOWER
U_UPPER

Traits§

AsArray
Argument conversion into an array view
Bounded
Numbers which have upper and lower bounds
BufRead
A BufRead is a type of Reader which has an internal buffer, allowing it to perform extra ways of reading.
Dimension
Array shape and index trait.
Display
Format trait for an empty format, {}.
FromPrimitive
A generic trait for converting a number to a value.
Hash
A hashable type.
HashIndex
Integer
NdFloat
Floating-point element types f32 and f64.
One
Defines a multiplicative identity element for Self.
Ord
Trait for types that form a total order.
PrimInt
Generic trait for primitive integers.
Read
The Read trait allows for reading bytes from a source.
Seek
The Seek trait provides a cursor which can be moved within a stream of bytes.
Send
Types that can be transferred across thread boundaries.
ShapeBuilder
A trait for Shape and D where D: Dimension that allows customizing the memory layout (strides) of an array shape.
Sync
Types for which it is safe to share references between threads.
ToPrimitive
A generic trait for converting a value to a number.
Unsigned
A trait for values which cannot be negative
Write
A trait for objects which are byte-oriented sinks.
Zero
Defines an additive identity element for Self.

Functions§

Dim
Create a new dimension value.
Ix0
Create a zero-dimensional index
Ix1
Create a one-dimensional index
Ix2
Create a two-dimensional index
Ix3
Create a three-dimensional index
Ix4
Create a four-dimensional index
Ix5
Create a five-dimensional index
Ix6
Create a six-dimensional index
IxDyn
Create a dynamic-dimensional index
align_char2base
arr0
Create a zero-dimensional array with the element x.
arr1
Create a one-dimensional array with elements from xs.
arr2
Create a two-dimensional array with elements from xs.
aview0
Create a zero-dimensional array view borrowing x.
aview1
Create a one-dimensional array view with elements borrowing xs.
aview2
Create a two-dimensional array view with elements borrowing xs.
aview_mut1
Create a one-dimensional read-write array view with elements borrowing xs.
bytes2seq
char2base
consprob
consprob_core
create_dir
Creates a new, empty directory at the provided path
durbin_algo
expf
filter_basepair_probs
filter_fold_scores
filter_match_probs
from_utf8_unchecked
Converts a slice of bytes to a string slice without checking that the string contains valid UTF-8.
get_2loop_score
get_2loop_score_contra
get_2loop_sums
get_abs_diff
get_accessible_score
get_align_sums
get_alignfold_probs
get_alignfold_sums
get_basepair_probs
get_basepair_probs_contra
get_bulge_score_contra
get_fold_sums
get_fold_sums_contra
get_hairpin_score
get_hairpin_score_contra
get_helix_close_score
get_interior_score_contra
get_junction_score
get_junction_score_single
get_loop_sums
get_max_basepair_span
get_multibranch_close_score
get_sparse_poss
get_special_hairpin_score
get_stack_score_contra
get_terminal_mismatch_score
has_canonical_basepair
has_valid_sums
invert_basepair
ln_exp_1p
logsumexp
matches_augu
max
Compares and returns the maximum of two values.
mccaskill_algo
min
Compares and returns the minimum of two values.
multizip
An iterator that generalizes .zip() and allows running multiple iterators in lockstep.
pair_probs2avg_probs
print_program_usage
range
Returns an iterator over the given range [start, stop) (that is, starting at start (inclusive), and ending at stop (exclusive)).
range_inclusive
Return an iterator over the range [start, stop]
read_align_clustal
read_align_fasta
read_align_stockholm
scale
write_alignfold_prob_mats
write_readme

Type Aliases§

AlignfoldProbsHashedIds
ArcArray
An array where the data has shared ownership and is copy on write.
Arg
Args
Array
An array that owns its data uniquely.
Array0
zero-dimensional array
Array1
one-dimensional array
Array2
two-dimensional array
Array3
three-dimensional array
Array4
four-dimensional array
Array5
five-dimensional array
Array6
six-dimensional array
ArrayD
dynamic-dimensional array
ArrayView
A read-only array view.
ArrayView0
zero-dimensional array view
ArrayView1
one-dimensional array view
ArrayView2
two-dimensional array view
ArrayView3
three-dimensional array view
ArrayView4
four-dimensional array view
ArrayView5
five-dimensional array view
ArrayView6
six-dimensional array view
ArrayViewD
dynamic-dimensional array view
ArrayViewMut
A read-write array view.
ArrayViewMut0
zero-dimensional read-write array view
ArrayViewMut1
one-dimensional read-write array view
ArrayViewMut2
two-dimensional read-write array view
ArrayViewMut3
three-dimensional read-write array view
ArrayViewMut4
four-dimensional read-write array view
ArrayViewMut5
five-dimensional read-write array view
ArrayViewMut6
six-dimensional read-write array view
ArrayViewMutD
dynamic-dimensional read-write array view
Base
Basepair
BasepairScores
BoolsHashedPoss
BulgeScores0x1
BulgeScoresInit
BulgeScoresLen
Char
Col
Cols
ContextProf
ContextProfSetPair
ContextProfs
CowArray
An array with copy-on-write behavior.
DanglingScores
FastaId
FastaRecords
FoldChar
FoldScoreSetPair
FoldStr
HairpinScoresInit
HairpinScoresLen
HairpinScoresSpecial
HelixCloseScores
Inputs2loopSumsGetter
InputsAlignfoldProbsGetter
InputsConsprobCore
InputsInsideSumsGetter
InputsLoopSumsGetter
InsertScores
Interior1x2
Interior2x2
InteriorScores1x1
InteriorScores1x2
InteriorScores1x1Contra
InteriorScores2x2
InteriorScoresAsymmetric
InteriorScoresBonus
InteriorScoresExplicit
InteriorScoresInit
InteriorScoresLen
InteriorScoresSymmetric
Ix0
zero-dimensionial
Ix1
one-dimensional
Ix2
two-dimensional
Ix3
three-dimensional
Ix4
four-dimensional
Ix5
five-dimensional
Ix6
six-dimensional
IxDyn
dynamic-dimensional
LoopSumsHashedPoss
LoopSumsMat
MatchProbsHashedIds
MatchScores
NumThreads
OutputsSparsePossGetter
ParamSetsHashedIds
Pos
PosMapSets
PosMaps
PosPair
PosPairMat
PosPairMatSet
PosPairs
PosPairsHashedPoss
PosQuad
PosQuadMat
PosQuadsHashedLens
Poss
Prob
Prob1dMats
ProbMat
ProbMat4d
ProbMatPair
ProbMatSetsAvg
ProbMats
ProbMatsHashedIds
Probs
Probs4dHashedIds
RawArrayView
A read-only array view without a lifetime.
RawArrayViewMut
A mutable array view without a lifetime.
RnaId
RnaIdPair
Score
ScoreMat
ScoreMat4d
ScorePair
Seq
SeqId
SeqIds
SeqPair
SeqSlice
SeqSlices
SparsePosSets
SparsePoss
SparseProbMat
SparseProbMatPair
SparseProbsHashedIds
SparseScoreMat
SparseSumMat
StackScores
Sum
Sum4dMat
SumMat
SumMat4d
Sums
TerminalMismatchScores

Derive Macros§

Hash
Derive macro generating an impl of the trait Hash.
Ord
Derive macro generating an impl of the trait Ord. The behavior of this macro is described in detail here.