package biocaml
Install
Dune Dependency
Authors
Maintainers
Sources
md5=e292efa2f61fec33dad63ec897106f59
sha512=35519bf3b1e67a9191ef9bb74eba0dae941e0d05bad89076a36f507dc5c2d105a03c1c917d5a3f7ed9d1da4acbf3199582f78c308aa2a5a22c21f743945c852b
doc/biocaml.unix/Biocaml_unix/Seq/index.html
Module Biocaml_unix.Seq
Source
Nucleic acid sequences. A nucleic acid code is any of A, C, G, T, U, R, Y, K, M, S, W, B, D, H, V, N, or X. See IUB/IUPAC standards for further information. Gaps are not supported. Internal representation uses uppercase, but constructors are case-insensitive. By convention the first nucleic acid in a sequence is numbered 1.
Type of a sequence
Raised to indicate ill-formed sequence.
Make sequence from buffer. Raise Bad
if unsuccessful.
nth t i
returns the i
th nucleic acid in sequence t
. Raise Failure
if i
is out of range.
Return string representation of sequence. Answer can be successfully converted back using of_string
.
True if given character represents one of the allowed nucleic acid codes, case-insensitive.
slice first last t
returns the sub-sequence, or slice, of t
starting from index first
to last
(inclusive). Raise Failure
if indices out of range or if first
> last
.
Unsafe Sequences
Make a sequence from given buffer or string. Every character in input should satisfy is_nucleic_acid
, else returned sequence is ill-formed and behavior of operations on it are undefined.