pub struct Translation {
pub table: u8,
pub table_name: &'static str,
pub strand: CodingStrand,
pub codon_start: u8,
pub protein: String,
pub codons: Vec<Codon>,
pub internal_stops: Vec<usize>,
pub terminal_stop: bool,
pub trailing_bases: usize,
pub ambiguous_codons: usize,
pub starts_with_atg: bool,
pub initiator_as_methionine: bool,
}Expand description
Translation of an explicit coding sequence.
Fields§
§table: u8§table_name: &'static str§strand: CodingStrand§codon_start: u81-based offset into the coding sequence of the first translated base.
protein: StringOne letter per codon; stops are * wherever they occur.
codons: Vec<Codon>§internal_stops: Vec<usize>Codon indices of stops before the final codon.
terminal_stop: bool§trailing_bases: usizeCoding bases left over after the last complete codon (0–2).
ambiguous_codons: usizeCodons translated as X because their ambiguity codes disagree.
starts_with_atg: bool§initiator_as_methionine: boolA complete feature CDS (codon_start 1, table start codon, terminal stop) whose
first codon is an alternative start is translated with an initiator M
(NCBI/Biopython cds=True convention). Never applied to ranges.
Trait Implementations§
Source§impl Clone for Translation
impl Clone for Translation
Source§fn clone(&self) -> Translation
fn clone(&self) -> Translation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Translation
impl Debug for Translation
impl Eq for Translation
Source§impl PartialEq for Translation
impl PartialEq for Translation
Source§impl Serialize for Translation
impl Serialize for Translation
impl StructuralPartialEq for Translation
Auto Trait Implementations§
impl Freeze for Translation
impl RefUnwindSafe for Translation
impl Send for Translation
impl Sync for Translation
impl Unpin for Translation
impl UnsafeUnpin for Translation
impl UnwindSafe for Translation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more