pub struct Genome {
    pub names: Vec<String>,
    pub starts: Vec<usize>,
    pub ends: Vec<usize>,
    pub seq: Vec<u8>,
    pub length: usize,
}

Fields

names: Vec<String>starts: Vec<usize>ends: Vec<usize>seq: Vec<u8>length: usize

Implementations

Example
use rustybam::suns::*;
let genome = Genome::from_file(".test/test.fa");

make an array of the shortest shared substring at each position in the text

Example
use rustybam::suns::*;
let text = b"GCTGCTA$";
let sus = Genome::get_shortest_subseq_size(text);
assert_eq!(
       sus,
       [Some(4),Some(3),Some(2),Some(4),Some(3),
            Some(2),Some(1),Some(1)]
   );
Example
use rustybam::suns::*;
let genome = Genome::from_file(".test/test.fa");
genome.get_longest_perfect_repeats(5);

Returns a vector of start and end coordiantes that are 100% made of SUNs Coordinates are bed style [). this is raw intervals in Genome.seq

Example
use rustybam::suns::*;
let genome = Genome::from_file(".test/test.fa");
eprintln!("{:?}", genome.seq);
let rtn = genome.convert_from_idx(20).unwrap();
assert_eq!((&"chr2".to_string(), 0), rtn);

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.