Trait bdb::traits::Fastq

source ·
pub trait Fastq: Sized {
    fn to_fastq<T: Write>(&self, writer: &mut T) -> Result<(), Box<dyn StdError>>;
    fn from_fastq<T: BufRead>(reader: &mut T) -> Result<Self, Box<dyn StdError>>;

    fn estimate_fastq_size(&self) -> usize { ... }
    fn to_fastq_string(&self) -> Result<String, Box<dyn StdError>> { ... }
    fn to_fastq_file<P: AsRef<Path>>(
        &self,
        path: P
    ) -> Result<(), Box<dyn StdError>> { ... } fn from_fastq_string(text: &str) -> Result<Self, Box<dyn StdError>> { ... } fn from_fastq_file<P: AsRef<Path>>(
        path: P
    ) -> Result<Self, Box<dyn StdError>> { ... } }
Expand description

Serialize to and from FASTQ.

Serialized Format

@SRR390728.1 1 length=72
CATTCTTCACGTAGTTCTCGAGCCTTGGTTTTCAGCGATGGAGAATGACTTTGACAAGCTGAGAGAAGNTNC
+SRR390728.1 1 length=72
;;;;;;;;;;;;;;;;;;;;;;;;;;;9;;665142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;96&&&&(

Required Methods§

Export model to FASTQ.

Note that many small writers are made to the writer, so the writer should be buffered.

Import model from FASTQ.

Provided Methods§

Estimate the size of the resulting FASTQ output to avoid reallocations.

Export model to FASTQ string.

Export model to FASTQ output file.

Import model from FASTQ string.

Import model from FASTQ file.

Implementors§