Skip to main content

Crate use_alignment

Crate use_alignment 

Source
Expand description

§use-alignment

Primitive alignment metadata vocabulary.

use-alignment models alignment data and metadata only. It can store aligned text with gaps and numeric scores, but it does not implement Needleman-Wunsch, Smith-Waterman, BLAST, scoring matrices, or actual alignment.

use use_alignment::{AlignedSequence, AlignmentKind, AlignmentScore, AlignmentSummary};

let aligned = AlignedSequence::new("ACG-T").unwrap();
let summary = AlignmentSummary::new(AlignmentKind::Pairwise).with_score(AlignmentScore::new(12.5));

assert_eq!(aligned.aligned_len(), 5);
assert_eq!(summary.kind(), &AlignmentKind::Pairwise);

Structs§

AlignedSequence
A non-empty aligned sequence string that may contain gaps.
AlignmentId
A non-empty alignment identifier.
AlignmentScore
A numeric alignment score.
AlignmentSummary
Summary metadata for an alignment.

Enums§

AlignmentKind
A descriptive alignment kind.
AlignmentValueError
Error returned by alignment vocabulary constructors.