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§
Provided Methods§
sourcefn estimate_fastq_size(&self) -> usize
fn estimate_fastq_size(&self) -> usize
Estimate the size of the resulting FASTQ output to avoid reallocations.
sourcefn to_fastq_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Box<dyn StdError>>
fn to_fastq_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Box<dyn StdError>>
Export model to FASTQ output file.