Expand description
§seq_geom_xform
seq_geom_xform is a crate for transforming complex fragment library geometries
from single-cell sequencing data into simple fragment library geometries.
Structs§
- FifoX
Form Data - The information we get back from an xform function that tells us the relevant information about the transformation taking place
- Fragment
Regex Desc - SeqPair
- Xform
Stats - This struct holds some basic statistics about the transformation of a stream of reads.
Traits§
- Fragment
Geom Desc Ext - Extension methods for FragmentGeomDesc
Functions§
- xform_
read_ pairs_ to_ fifo - Given input file paths (possibly multiple sets of files) in
r1andr2, andFragmentRegexDescgeo_re, this function returns aResult<FifoXFormData>. If succesful theOk(FifoXFormData)will contain the paths to 2 fifos (1 for each list of input read files) as well as athread::JoinHandle. Thethread::JoinHandlewill be for a spawned thread that will read sequence records from the files inr1andr2and transform these reads in accordance with theFragmentRegexDescprovided asgeo_re.
The transformed records are then written out to the fifos given in theFifoXFormDatastruct. Currently, all output is written inFASTAformat, so any quality lines or comment lines (if the input isFASTQ) will be dropped. If an error occurs up to the creation of the spawned thread, then this function returns anErr(anyhow::Error). The spawned thread itself returns aResult<()>. - xform_
read_ pairs_ to_ file - Given input file paths (possibly multiple sets of files) in
r1andr2, read sequence records from these files and transform them in accordance with theFragmentRegexDescprovided asgeo_re. The transformed records are then written out tor1_ofileandr2_ofile. Currently all output is written inFASTAformat, so any quality lines or comment lines (if the input isFASTQ) will be dropped.