/// Check validity of FastQ record.
Check validity of FastQ record.
Check validity of FastQ record .
pub fn check(&self) -> Result<(), &str> {
        if self.id().is_empty() {
            return Err("Expecting id for FastQ record.");
        }
        if !self.seq.is_ascii() {
            return Err("Non-ascii character found in sequence.");
        }
        if !self.qual.is_ascii() {
            return Err("Non-ascii character found in qualities.");
        }
        if self.seq().len() != self.qual().len() {
            return Err("Unequal length of sequence an qualities.");
        }
        Ok(())
    }
pub fn check ( & self ) -> Result < ( ) , & str > { if self . id ( ) . is_empty ( ) { return Err ( " " ) ; } if ! self . seq . is_ascii ( ) { return Err ( " " ) ; } if ! self . qual . is_ascii ( ) { return Err ( " " ) ; } if self . seq ( ) . len ( ) != self . qual ( ) . len ( ) { return Err ( " " ) ; } Ok ( ( ) ) }
Check validity of FastQ record.
Check validity of FastQ record .
&self