[−][src]Struct rust_genomics::Sequence
A genomic sequence is represented here.
Fields
seq: String
Implementations
impl Sequence
[src]
pub fn new(seq: String) -> Sequence
[src]
Returns a Sequence with the seq given to them
Arguments
seq
- A String that holds the sequence itself. Must have no white space or special characters.
Examples
use rust_genomics::Sequence; let epic_seq = Sequence::new("ATGATGATG".to_string());
pub fn find_at_index(&self, index: usize) -> Result<&str, Error>
[src]
Returns a Result type containing the nucleotide at a given index
Arguments
index
- should be within the length of the Sequence, or an Error is returned
pub fn return_reading_frames(&self) -> Vec<Vec<&str>>
[src]
Takes the current sequence and returns a vector of codons at 3 reading frames.
Examples
For sequence ATCAGGCAT, there are 3 frames. By calling this function on that sequence, it returns
[["ATC", "AGG", "CAT"], ["A", "TCA", "GGC", "AT"], ["AT", "CAG", "GCA", "T"]]
pub fn find_lorf(&self) -> LORF
[src]
Given a sequence, return the longest open reading frame (section of sequence beginning with start codon and ending with stop codon)
pub fn concurrent_find_lorf(&self) -> LORF
[src]
Given a sequence, return the longest open reading frame (section of sequence beginning with start codon and ending with stop codon). Uses threads and concurrency.
pub fn gen_random_seq(len: i64) -> Sequence
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnwindSafe for Sequence
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,