Crate seq_geom_xform
source ·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
- The information we get back from an xform function that tells us the relevant information about the transformation taking place
- This struct holds some basic statistics about the transformation of a stream of reads.
Traits
- Extension methods for FragmentGeomDesc
Functions
- Given input file paths (possibly multiple sets of files) in
r1
andr2
, andFragmentRegexDesc
geo_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::JoinHandle
will be for a spawned thread that will read sequence records from the files inr1
andr2
and transform these reads in accordance with theFragmentRegexDesc
provided asgeo_re
.
The transformed records are then written out to the fifos given in theFifoXFormData
struct. Currently, all output is written inFASTA
format, 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<()>
. - Given input file paths (possibly multiple sets of files) in
r1
andr2
, read sequence records from these files and transform them in accordance with theFragmentRegexDesc
provided asgeo_re
. The transformed records are then written out tor1_ofile
andr2_ofile
. Currently all output is written inFASTA
format, so any quality lines or comment lines (if the input isFASTQ
) will be dropped.