Struct trfr::Record

source ·
pub struct Record {
Show 16 fields pub seq_id: String, pub start: usize, pub end: usize, pub period: u16, pub copy_number: f32, pub consensus_pattern_size: u16, pub perc_matches: u8, pub perc_indels: u8, pub alignment_score: u32, pub perc_a: u8, pub perc_c: u8, pub perc_g: u8, pub perc_t: u8, pub entropy: f32, pub consensus_pattern: String, pub repeat_seq: String,
}
Expand description

The record fields in a trf table

Fields§

§seq_id: String

The name of the fasta record

§start: usize

Start index of the repeat

§end: usize

End index of the repeat

§period: u16

The period of the repeat

§copy_number: f32

Number of copies aligned with the consensus pattern

§consensus_pattern_size: u16

Size of consensus pattern (may differ slightly from the period size).

§perc_matches: u8

Percent of matches between adjacent copies overall

§perc_indels: u8

Percent of indels between adjacent copies overall

§alignment_score: u32

Alignment score

§perc_a: u8

Percentages of the nucleotides

§perc_c: u8§perc_g: u8§perc_t: u8§entropy: f32

Entropy measure based on percent composition

§consensus_pattern: String

The repeat pattern itself

§repeat_seq: String

The longer repeat sequence extracted from the reads

Trait Implementations§

source§

impl Debug for Record

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Record

source§

fn default() -> Record

Returns the “default value” for a type. Read more
source§

impl PartialEq for Record

source§

fn eq(&self, other: &Record) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Record

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.