Skip to main content

Crate cyanea_align

Crate cyanea_align 

Source
Expand description

Sequence alignment algorithms for the Cyanea bioinformatics ecosystem.

Provides pairwise alignment via Smith-Waterman (local) and Needleman-Wunsch (global) with affine gap penalties, supporting both nucleotide and protein scoring schemes (BLOSUM, PAM, custom).

§Quick start

use cyanea_align::{align, AlignmentMode, ScoringMatrix, ScoringScheme};

let scoring = ScoringScheme::Simple(ScoringMatrix::dna_default());
let result = align(b"ACGT", b"ACGT", AlignmentMode::Global, &scoring).unwrap();
assert_eq!(result.score, 8);

Re-exports§

pub use batch::align_batch;
pub use lcsk::find_kmer_matches;
pub use lcsk::lcsk_plusplus;
pub use lcsk::sparse_align;
pub use lcsk::SparseAlignResult;
pub use minimizers::find_seed_matches;
pub use minimizers::minimizers;
pub use minimizers::Minimizer;
pub use needleman_wunsch::needleman_wunsch;
pub use pair_hmm::pair_hmm_forward;
pub use pair_hmm::pair_hmm_viterbi;
pub use pair_hmm::PairHmmAlignment;
pub use pair_hmm::PairHmmParams;
pub use pair_hmm::PairHmmState;
pub use poa::PoaGraph;
pub use poa::PoaScoring;
pub use profile_hmm::Alphabet;
pub use profile_hmm::GumbelParams;
pub use profile_hmm::ProfileHmm;
pub use profile_hmm::ProfileHmmConfig;
pub use profile_hmm::ProfileHmmResult;
pub use profile_hmm::ProfileHmmState;
pub use scoring::ScoringMatrix;
pub use scoring::ScoringScheme;
pub use scoring::SubstitutionMatrix;
pub use seed_extend::chain_seeds;
pub use seed_extend::seed_extend_align;
pub use seed_extend::Seed;
pub use seed_extend::SeedChain;
pub use semi_global::semi_global;
pub use simd_sw::sw_scalar_score;
pub use simd_sw::sw_simd_score;
pub use smith_waterman::smith_waterman;
pub use spliced::chain_exons;
pub use spliced::detect_splice_site;
pub use spliced::spliced_align;
pub use spliced::ExonAlignment;
pub use spliced::SpliceSiteType;
pub use spliced::SplicedAlignParams;
pub use spliced::SplicedAlignResult;
pub use types::AlignmentMode;
pub use types::AlignmentResult;
pub use types::CigarOp;
pub use wfa::wfa_align;
pub use xdrop::xdrop_extend_left;
pub use xdrop::xdrop_extend_right;
pub use xdrop::xdrop_seed_extend;
pub use xdrop::zdrop_extend_left;
pub use xdrop::zdrop_extend_right;
pub use xdrop::zdrop_seed_extend;
pub use xdrop::ExtensionResult;
pub use xdrop::XDropParams;
pub use xdrop::ZDropParams;

Modules§

batch
Batch pairwise alignment over multiple sequence pairs.
cigar
CIGAR string parsing, validation, arithmetic, and conversion utilities.
gpu
GPU-accelerated batch alignment.
lcsk
LCSk++ sparse alignment algorithm.
minimizers
Minimizer extraction for seed-and-extend alignment.
msa
Multiple sequence alignment via progressive alignment.
needleman_wunsch
Needleman-Wunsch global alignment with affine gap penalties.
pair_hmm
Pair Hidden Markov Model for probabilistic sequence alignment.
poa
Partial Order Alignment (POA) for multi-sequence consensus.
profile_hmm
Profile Hidden Markov Model for sequence-profile alignment.
scoring
Scoring schemes for pairwise sequence alignment.
seed_extend
Seed-and-extend alignment for long reads.
semi_global
Semi-global alignment with affine gap penalties.
simd
Banded alignment and SIMD-ready alignment kernels.
simd_sw
SIMD-accelerated Smith-Waterman score-only computation.
smith_waterman
Smith-Waterman local alignment with affine gap penalties.
spliced
Spliced alignment for RNA-to-genome mapping.
types
Core types for sequence alignment results.
wfa
Wavefront Alignment (WFA) for gap-affine scoring.
xdrop
X-drop and Z-drop seed extension alignment.

Functions§

align
Convenience function: align two sequences using the specified mode and scoring.