Struct seq_geom_xform::FragmentRegexDesc
source · pub struct FragmentRegexDesc {
pub r1_cginfo: Vec<GeomPiece>,
pub r2_cginfo: Vec<GeomPiece>,
pub r1_re: Regex,
pub r2_re: Regex,
/* private fields */
}
Fields§
§r1_cginfo: Vec<GeomPiece>
§r2_cginfo: Vec<GeomPiece>
§r1_re: Regex
The regular expression expected to match read 1
r2_re: Regex
The regular expression expected to match read 1
Implementations§
source§impl FragmentRegexDesc
impl FragmentRegexDesc
sourcepub fn parse_into(&mut self, r1: &[u8], r2: &[u8], sp: &mut SeqPair) -> bool
pub fn parse_into(&mut self, r1: &[u8], r2: &[u8], sp: &mut SeqPair) -> bool
Parses the read pair r1
and r2
in accordance with the geometry specified
in self
. The resulting parse, if successful, is placed into the output
sp
. This function returns true if the entire pair of reads was parsed succesfully,
and false otherwise. If the parse is not successful, nothing can be assumed about
the contents of sp
.