core/index

Types

pub type SequenceIndex {
  SequenceIndex(Int)
}

Constructors

  • SequenceIndex(Int)
pub type SequenceRange {
  SequenceRange(start: Int, end: Int)
}

Constructors

  • SequenceRange(start: Int, end: Int)
pub type TranslationIndex {
  TranslationIndex(Int)
}

Constructors

  • TranslationIndex(Int)
pub type TranslationRange {
  TranslationRange(start: Int, end: Int)
}

Constructors

  • TranslationRange(start: Int, end: Int)

Functions

pub fn into_seq(index: TranslationIndex) -> SequenceIndex

This is lossy. It will not return the exact range, but the range of the first base of the codon.

pub fn into_seq_range(range: TranslationRange) -> SequenceRange

This is lossy. It will not return the exact range, but the range of the first base of each codon.

pub fn into_trans(index: SequenceIndex) -> TranslationIndex

Translate a sequence index into a translation index.

pub fn into_trans_range(range: SequenceRange) -> TranslationRange

Translate a sequence range into a translation range.

Search Document