pub struct SequenceAttributeBuilder {
pub seq_attributes: BTreeMap<String, HashSet<SequenceAttributes>>,
pub locus_tag: Option<String>,
}Expand description
builder for the sequence information on a per coding sequence (CDS) basis
Fields§
§seq_attributes: BTreeMap<String, HashSet<SequenceAttributes>>§locus_tag: Option<String>Implementations§
Source§impl SequenceAttributeBuilder
impl SequenceAttributeBuilder
pub fn get_start(&self, key: &str) -> Option<&RangeValue>
pub fn get_stop(&self, key: &str) -> Option<&RangeValue>
pub fn get_sequence_ffn(&self, key: &str) -> Option<&String>
pub fn get_sequence_faa(&self, key: &str) -> Option<&String>
pub fn get_codon_start(&self, key: &str) -> Option<&u8>
pub fn get_strand(&self, key: &str) -> Option<&i8>
Source§impl SequenceAttributeBuilder
impl SequenceAttributeBuilder
pub fn new() -> Self
pub fn set_counter(&mut self, counter: String) -> &mut Self
pub fn insert_to(&mut self, value: SequenceAttributes)
pub fn set_start(&mut self, value: RangeValue) -> &mut Self
pub fn set_stop(&mut self, value: RangeValue) -> &mut Self
pub fn set_sequence_ffn(&mut self, value: String) -> &mut Self
pub fn set_sequence_faa(&mut self, value: String) -> &mut Self
pub fn set_codon_start(&mut self, value: u8) -> &mut Self
pub fn set_strand(&mut self, value: i8) -> &mut Self
pub fn build(self) -> BTreeMap<String, HashSet<SequenceAttributes>>
pub fn iter_sorted(&self) -> Iter<'_, String, HashSet<SequenceAttributes>>
pub fn default() -> Self
Trait Implementations§
Source§impl Clone for SequenceAttributeBuilder
impl Clone for SequenceAttributeBuilder
Source§fn clone(&self) -> SequenceAttributeBuilder
fn clone(&self) -> SequenceAttributeBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 SequenceAttributeBuilder
impl Debug for SequenceAttributeBuilder
Source§impl Default for SequenceAttributeBuilder
impl Default for SequenceAttributeBuilder
Source§fn default() -> SequenceAttributeBuilder
fn default() -> SequenceAttributeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SequenceAttributeBuilder
impl RefUnwindSafe for SequenceAttributeBuilder
impl Send for SequenceAttributeBuilder
impl Sync for SequenceAttributeBuilder
impl Unpin for SequenceAttributeBuilder
impl UnwindSafe for SequenceAttributeBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.