pub struct Alignment {
pub headers: Vec<String>,
pub sequences: Vec<String>,
pub consensus: String,
pub entropies: Vec<f64>,
pub densities: Vec<f64>,
pub id_wrt_reference: Vec<f64>,
pub relative_seq_len: Vec<f64>,
pub macromolecule_type: SeqType,
/* private fields */
}Fields§
§headers: Vec<String>§sequences: Vec<String>§consensus: String§entropies: Vec<f64>§densities: Vec<f64>§id_wrt_reference: Vec<f64>§relative_seq_len: Vec<f64>§macromolecule_type: SeqTypeImplementations§
Source§impl Alignment
impl Alignment
pub fn from_file(seq_file: SeqFile) -> Alignment
pub fn from_vecs(hdrs: Vec<String>, seqs: Vec<String>) -> Alignment
pub fn num_seq(&self) -> usize
pub fn aln_len(&self) -> usize
pub fn macromolecule_type(&self) -> SeqType
pub fn get_ref_spec(&self) -> RefSpec
pub fn set_ref_spec(&mut self, spec: RefSpec) -> Result<(), RefSpecError>
pub fn reference(&self) -> String
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnsafeUnpin for Alignment
impl UnwindSafe for Alignment
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more