Module utils

Source

Modules§

env
Inspection and manipulation of the process’s environment.

Macros§

env
Inspects an environment variable at compile time.

Structs§

Align
BufReader
The BufReader<R> struct adds buffering to any reader.
BufWriter
Wraps a writer and buffers its output.
FastaRecord
File
An object providing access to an open file on the filesystem.
FoldScoreSets
HAIRPIN_SCORES_SPECIAL
HashMap
A hash map implemented with quadratic probing and SIMD lookup.
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_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
CU
C_LOWER
C_UPPER
DANGLING_SCORES_3PRIME
DANGLING_SCORES_5PRIME
DANGLING_SCORES_LEFT
DANGLING_SCORES_RIGHT
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_MULTIBRANCH_BASE
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
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_SPECIAL_HAIRPINS
NUM_TRANSITS
PROB_BOUND_LOWER
PROB_BOUND_UPPER
PSEUDO_BASE
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
UU
U_LOWER
U_UPPER

Traits§

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.
Display
Format trait for an empty format, {}.
FromPrimitive
A generic trait for converting a number to a value.
Hash
A hashable type.
HashIndex
Integer
One
Defines a multiplicative identity element for Self.
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.
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§

align_char2base
bytes2seq
char2base
create_dir
Creates a new, empty directory at the provided path
expf
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_abs_diff
get_accessible_score
get_bulge_score_contra
get_hairpin_score
get_hairpin_score_contra
get_helix_close_score
get_interior_score_contra
get_junction_score
get_junction_score_single
get_multibranch_close_score
get_special_hairpin_score
get_stack_score_contra
get_terminal_mismatch_score
has_canonical_basepair
invert_basepair
ln_exp_1p
logsumexp
matches_augu
max
Compares and returns the maximum of two values.
min
Compares and returns the minimum of two values.
multizip
An iterator that generalizes .zip() and allows running multiple iterators in lockstep.
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

Type Aliases§

Args
Base
Basepair
BasepairScores
BulgeScores0x1
BulgeScoresInit
BulgeScoresLen
Char
Col
Cols
DanglingScores
FastaId
FastaRecords
FoldChar
FoldStr
HairpinScoresInit
HairpinScoresLen
HairpinScoresSpecial
HelixCloseScores
InsertScores
Interior1x2
Interior2x2
InteriorScores1x1
InteriorScores1x2
InteriorScores1x1Contra
InteriorScores2x2
InteriorScoresAsymmetric
InteriorScoresBonus
InteriorScoresExplicit
InteriorScoresInit
InteriorScoresLen
InteriorScoresSymmetric
MatchScores
NumThreads
Pos
PosMapSets
PosMaps
PosPair
PosPairs
PosQuad
Prob
ProbMat
ProbMatsHashedIds
Probs
RnaId
RnaIdPair
Score
Seq
SeqId
SeqIds
SeqPair
SeqSlice
SparseProbMat
SparseSumMat
StackScores
Sum
Sum4dMat
SumMat
Sums
TerminalMismatchScores

Derive Macros§

Hash
Derive macro generating an impl of the trait Hash.