Skip to content
nrminorPublic

About

The last FASTQ preprocessor I'll ever make. I promise.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

nuclease - a streaming FASTQ preprocessor

CI Latest release

Overview

nuclease is a preprocessor for large sequencing read datasets, akin to fastp or VSEARCH (though for now with fewer features). It was initially created to allow reads to be streamed directly from ENA and trimmed in-process, meaning that preprocessed reads can be streamed directly from ENA into whatever tool. For large projects with lots of big FASTQs, this means fewer temporary FASTQs on disk and thus smaller Nextflow work directories.

Here's what I mean:

nuclease \
--ena SRR35946892 \
--min-length 100 \
--max-ns 0 \
--min-mean-q 20 \
--min-entropy 0.7 \
--trim-min-q 10 \
--adapter-preset illumina-truseq \
--summary summary.json \
| sourmash sketch dna -p k=31 - -o sample.zip

Here, nuclease is used to stream and preprocess reads from ENA and then pass them along into kmer sketching with Sourmash. At no point in this preprocessing will the full read dataset be materialized on disk. Instead, reads are streamed and operated on as they arrive from ENA. nuclease resumes interrupted ENA transfers only when response identity can be verified, and checks completed downloads against ENA's catalogue size and MD5. If a transfer cannot be resumed safely, nuclease stops and recommends retrying the complete run.

nuclease can also enrich for or deplete reads matching reference sequences using Deacon minimizer indexes. Use a prebuilt index for repeated runs, or supply a reference to construct an index on demand. Paired reads contribute evidence together and are selected as whole pairs before other preprocessing.

Another big feature is developer-focused: nuclease is highly extensible. See the Contributing to nuclease section for more.

Installation

On x86-64, both downloaded binaries and source builds require an AVX2-capable CPU. ARM64 builds use NEON. There is no runtime fallback for x86 CPUs without AVX2.

A simple curl install is the recommended installation method:

curl -fsSL https://raw.githubusercontent.com/nrminor/nuclease/main/INSTALL.sh | bash

This downloads the latest release's pre-built binary for your platform. If binary installation fails, the installer builds that same release tag with Cargo and its locked dependencies, not unreleased source from main. If the latest release cannot be identified, installation stops with an error.

When CONDA_PREFIX is set by a conda, mamba, or pixi environment, the installer places the binary in $CONDA_PREFIX/bin. Otherwise, it installs to $HOME/.local/bin, which may need to be added to PATH. Source builds require Cargo; outside a conda-compatible environment, the installer installs Rust through rustup if Cargo is missing. Inside an environment, it instead asks you to install Rust there.

To install directly from crates.io with Rust 1.95 or later and your platform's build tools, use the command for your architecture:

# x86-64 (AVX2 required)
RUSTFLAGS="${RUSTFLAGS:+$RUSTFLAGS }-C target-feature=+avx2" cargo install nuclease --locked

# ARM64
cargo install nuclease --locked

The installer supplies the x86 compiler flag automatically. For manual installs, CARGO_ENCODED_RUSTFLAGS takes precedence over RUSTFLAGS; if it is set, include the AVX2 flag there instead.

Supported Preprocessing Operations

nuclease currently has a small built-in set of filters and transforms. Filters decide whether a read should continue through the stream. Transforms may change the sequence and quality data before later filters are evaluated. Most operations act on one record at a time, but paired-end input can also run pair-aware preprocessing before the ordinary per-record steps.

Supported filters are:

  • Deacon enrichment and depletion (--enrich-index, --deplete-index): keep enrichment matches or remove depletion matches before other preprocessing.
  • Maximum ambiguous bases (--max-ns): rejects reads with more than the configured number of N bases.
  • Minimum read length (--min-length): rejects post-transform reads shorter than the configured length.
  • Minimum mean Phred quality (--min-mean-q): rejects post-transform reads whose mean quality is below the configured threshold.
  • Minimum Shannon entropy (--min-entropy): rejects post-transform reads below the configured entropy of their A/C/G/T frequencies. Scores are 0 for a homopolymer, 1 for the diversity of two equally frequent bases, and 2 for balanced A/C/G/T; values around 0.7–1.0 target strongly composition-biased reads. Base order and non-A/C/G/T symbols are ignored.

Supported transforms are:

  • Paired-read overlap merging (--merge-pairs): attempts to merge paired-end reads before per-record trimming and filtering. Merging is powered by libpairassembly, and can be tuned with --merge-min-overlap, --merge-max-mismatch-rate, and --merge-min-correction-delta-q.
  • Curated adapter catalog trimming (--adapter-preset; disabled by default): trims detected 3' adapter overlap using entries in the selected preset. Supported CLI presets currently include Illumina TruSeq, Nextera/tagmentation, TruSeq small RNA, stranded RNA ligation, ScriptSeq/TruSeq methylation, MGI/BGI/DNBSEQ, and QIAseq miRNA. Use --adapter-preset illumina-truseq for common Illumina TruSeq / fastp-like adapter trimming.
  • 3' quality trimming (--trim-min-q): trims low-quality suffixes using the configured Phred cutoff.
  • Quality-score binning (--bin-qualities[=2|3|5]; disabled by default): lossily remaps Phred+33 quality scores into 2, 3, or 5 platform-neutral bins after trimming, merging, and quality-sensitive filters have already run. Passing --bin-qualities without a value uses 5 bins.

Adapter presets are curated sequence catalogs, not adapter auto-detection. Adapter trimming is disabled unless a preset is selected explicitly. The current trimmer only exposes presets with entries that are safe for 3' suffix-overlap trimming. Long-read catalog entries that require 5' trimming, both-end matching, barcode interpretation, internal-adapter handling, read splitting, demultiplexing, or orientation correction are retained as structured catalog metadata until those algorithms are implemented, but are not exposed as CLI presets yet.

Deacon selection

Use uncompressed Deacon exact v3 or fuse v1 indexes from a trusted source. Fuse indexes can produce false-positive matches.

# Enrich for reads matching a target index.
nuclease --in reads.fastq.gz --enrich-index targets.idx > enriched.fastq

# Deplete host-matching pairs while preserving split paired output.
nuclease --in1 reads_1.fastq.gz --in2 reads_2.fastq.gz \
  --deplete-index host.idx --out1 depleted_1.fastq.gz --out2 depleted_2.fastq.gz

# Require a target-index match and reject reads matching the host index.
nuclease --in reads.fastq.gz --enrich-index targets.idx --deplete-index host.idx > selected.fastq

Selection runs before pair merging, trimming, and ordinary read filters. Those later steps still apply: the examples above use the default quality trimming and filters, so selection alone does not guarantee a read appears unchanged in the output.

When both indexes are supplied, --selection-policy depletion-veto (the default) keeps enrichment matches that do not match depletion. --selection-policy enrichment-rescue removes depletion matches unless they also match enrichment. Reads without a depletion match are kept under this policy.

--enrich-min-hits and --deplete-min-hits set independent thresholds (default: 2 distinct minimizer hits). Paired reads pool distinct hits across both mates and are kept or rejected together at the selection step.

Both index options also accept local FASTA or FASTQ references, plain or gzip/bzip2/xz/zstd-compressed. Source contents, not filename extensions, determine the format. References are built into exact indexes before reads are opened; FASTQ reference qualities are unused. Read-processing input remains FASTQ-only. Supplying the same underlying source file for both roles, including symlink or hardlink aliases, is an error.

Construction is ephemeral unless --save-enrich-index [PATH] or --save-deplete-index [PATH] is supplied. A bare save flag appends .k<K>.w<W>.idx to the complete reference filename: targets.fa.gz.k31.w15.idx, for example. An explicit path chooses another destination. To reuse a saved index, supply its path on a later run; references are not automatically replaced by nearby indexes.

--index-kmer-length (default 31) and --index-window-size (default 15) apply to all references built in that invocation. Both must be positive and odd, k must be at most 61, and k+w must be at most 96. Prebuilt indexes retain their own settings; unused explicit construction settings produce a warning. A reference producing no usable minimizers is an error.

nuclease --in reads.fastq.gz --enrich-index targets.fa.gz --save-enrich-index > selected.fastq
nuclease --in reads.fastq.gz --enrich-index targets.fa.gz.k31.w15.idx > selected.fastq

Saving requires a reference source and never replaces an existing destination. Saved indexes cannot share destinations with other run outputs. Publication occurs only after serialization completes; save failures stop the run before read outputs open. Completed indexes survive later failures. Temporary staging files are cleaned up on ordinary errors, but forced termination may leave staging files; power-loss durability is not guaranteed. Preparation is sequential, and construction memory grows with distinct minimizers and the largest reference record; it is not capped by a fixed buffer size.

Sequence sorting and deduplication

Use --sort to reorder the reads surviving preprocessing without removing duplicates. Use --dedup to sort and remove exact sequence-byte duplicates; it does not require --sort. Supplying both flags performs the same operation as --dedup, without another sorting pass.

nuclease --in reads.fastq.gz --sort --out sorted.fastq.gz
nuclease --in1 reads_1.fastq.gz --in2 reads_2.fastq.gz --dedup \
  --sort-memory-mib 2048 --sort-temp-dir /scratch \
  --out1 unique_1.fastq.gz --out2 unique_2.fastq.gz

Spillover supplies the external sorting and adjacent deduplication. Its accelerated sequence order compares a packed sequence prefix followed by full-record refinements; pairs are keyed from R1 and always move together. This is not coordinate sorting, read-name sorting, or guaranteed raw-byte lexicographic sorting. Packing affects comparison, not the emitted sequence bytes.

Duplicate identity ignores names and qualities: one exact sequence for singles, or the ordered (R1 sequence, R2 sequence) for pairs. There is no case folding, reverse-complement equivalence, mate swapping, or UMI/PCR duplicate inference. The first sorted complete representative survives, not necessarily the first input or the highest-quality record. Input order and equal-key stability are not preserved. Trimming and filtering happen before sorting and deduplication, so trimming can create duplicates. Duplicate removals appear under the duplicate rejection reason; removing a complete pair contributes two rejected reads and one rejected pair, not a suppressed mate.

The default modeled sorting budget is 1024 MiB. --sort-memory-mib accepts a positive integer and is not a process-RSS cap: parser/output buffers, merge cursors, retained capacity, and oversized records can add memory beyond it. --sort-temp-dir selects the spill directory; otherwise Spillover chooses the default temporary location. Both overrides require --sort or --dedup. Neither is a disk-space limit or crash-recovery guarantee. Sorting delays output until input has been consumed; temporary-file and downstream failures remain fatal, and partial output from a failed run is not complete.

Sorting and deduplication accept singles, complete pairs, and paired streams containing singles produced by preprocessing. They can be combined with --merge-pairs using single-stream output. Complete pairs remain atomic; a single never duplicates a complete pair, even when its sequence matches one mate. Singles are compared by sequence regardless of how they were produced.

Input and output behavior

Use -p/--passthrough to parse and validate input without ordinary preprocessing filters or transforms. Explicit --sort or --dedup still runs when requested. Passthrough output is produced by nuclease's normal FASTQ writer rather than copied byte-for-byte from the input, and it cannot be combined with --merge-pairs or Deacon selection.

For paired-end input, the CLI currently uses the DropPair orphan policy during paired processing: if one mate is rejected, the surviving mate is suppressed rather than emitted. With --merge-pairs, successfully merged pairs become single records and continue through the rest of the pipeline as single records. Pairs that cannot be merged continue through paired processing as the original mate pair. Because a merge-enabled run may contain a mix of merged single records and unmerged pairs, --merge-pairs requires paired input and single-stream output rather than split --out1/--out2 files. The execution engine also has an internal EmitOrphan policy, but orphan emission is not exposed as a supported CLI/output mode yet. Open an issue if you'd like that prioritized!

Local input can be single-end (--in reads.fastq.gz), interleaved paired-end (--in reads.fastq.gz --paired), or split paired-end (--in1 reads_1.fastq.gz --in2 reads_2.fastq.gz). Output uses stdout by default. --out writes the run's natural single stream to a file: ordinary reads for single-end input, or interleaved pairs for paired input. Paired output can also be split with --out1/--out2.

In designing nuclease, a fair amount of thought was put into how to handle invalid FASTQ records. Under the hood, nuclease has an extensible concept of "record admission". To control that admission, we provide the command line argument --on-invalid-input error|skip, which defaults to error. skip drops the entire admission, which means a single read in the case of single-end inputs or a pair for paired-end inputs. Using this also requires the user provide a path for reporting invalid records with --invalid-input-report PATH; every admission failure encountered while that report is configured is written as machine-friendly JSONL, with continued distinguishing recovered skips from terminal parser failures. The promise here is that invalid FASTQ records will never be silently glossed over, something that seems somewhat rare in the ecosystem of tools for processing sequencing reads! Note that while this can help you catch issues e.g. in storage in SRA or in upstream processing, it also carries a performance penalty, as all reads are put through additional checks. Some failures, including parser corruption that cannot be safely resynchronized and transport failures while streaming from ENA, remain fatal and use the typed process status appropriate to their source and certainty. We do our best to separate these failures from safely recoverable record-admission errors, but contributions to further improve this are welcome!

skip applies only when parsing can safely continue. Parser-level failures, including unequal sequence and quality lengths, stop the run under either policy; the invalid-input report records continued: false, and nuclease does not write a success summary. Records or complete pairs emitted before the failure may already be present in the output, so a failed run's output must not be treated as complete.

Paired input validates matching identifiers and rejects explicit mate designations that contradict the input position, such as /2 in the left identifier or /1 in the right. Under skip, admission failures discard the complete pair. Invalid-input events include parser evidence under failure or typed pair-construction evidence under error; header evidence in pair errors uses escaped, bounded excerpts.

Contributing to nuclease

Nuclease exists in part because I like developing tools in Rust with future hacking in mind. That ethos is pervasive in nuclease, with clear pathways for adding new operations to be run on FASTQs via the ReadFilter and ReadTransform traits.

The published crate currently provides the CLI, not a library API. The examples below show how to extend the code inside this repository.

Run mise run test for tests or mise run check for all checks. Property tests live in src/property_tests/, grouped by behavior, and run with the ordinary suite. Proptest shrinks failures and saves replay seeds under tests/fixtures/proptest/; retain useful seeds in version control and promote discovered counterexamples into named regressions. Deacon interoperability fixtures are checked in, so these tests need neither a Deacon installation nor network access.

Repository builds use .cargo/config.toml to enable AVX2 only for x86-64 targets. If you override Cargo's compiler flags, retain -C target-feature=+avx2 for those targets. Run mise run build-release to check the optimized build as CI does; debug builds do not exercise the dependency's SIMD requirement check.

Note

The following demos are quite nice in my opinion...but they will only seem that way if you know Rust!

Extending nuclease with new filters

In nuclease, most operations are filters, where some computation is run to decide whether a read should be passed on in the stream or not. These operations are represented with the ReadFilter trait.

To see how this works, let's implement a new filter for GC-contents. Filters each start as a Rust struct that takes responsibility for filtering:

pub(crate) struct GcRange {
    min_gc: f64,
    max_gc: f64,
}

impl GcRange {
    pub(crate) const fn new(min_gc: f64, max_gc: f64) -> Self {
        Self { min_gc, max_gc }
    }
}

nuclease needs to know why this struct may reject a read. We can use a marker struct to carry this information (you'll see why in a moment):

use crate::plan::RejectionReason;

#[derive(Debug)]
pub(crate) struct GcOutOfRange;

impl RejectionReason for GcOutOfRange {
    fn code(&self) -> &'static str {
        "gc_out_of_range"
    }
}

Let's actually implement the filter now:

use crate::{plan::ReadFilter, record::RecordView};

impl ReadFilter for GcRange {
    type Reason = GcOutOfRange;

    fn evaluate(&mut self, record: &RecordView<'_>) -> Result<(), Self::Reason> {
        let seq = record.sequence();

        if seq.is_empty() {
            return Ok(());
        }

        let gc = seq
            .iter()
            .filter(|&&base| matches!(base, b'G' | b'g' | b'C' | b'c'))
            .count() as f64
            / seq.len() as f64;

        if gc < self.min_gc || gc > self.max_gc {
            Err(GcOutOfRange)
        } else {
            Ok(())
        }
    }
}

That's technically all we need to use the filter in nuclease. But let's go one step further and bring it into our composable fluent interface:

use crate::plan::{BuildPlan, ExecutionStep, FilterStep, PrepareExecutionStep};

impl PrepareExecutionStep for GcRange {
    fn prepare(&self) -> crate::error::Result<Box<dyn ExecutionStep>> {
        Ok(Box::new(FilterStep(GcRange::new(self.min_gc, self.max_gc))))
    }
}

pub(crate) trait GcRangeFilter: BuildPlan {
    fn gc_range(self, min_gc: f64, max_gc: f64) -> Self {
        self.step(GcRange::new(min_gc, max_gc))
    }
}

impl<T> GcRangeFilter for T where T: BuildPlan {}

This teaches the execution planner that GcRange is a filter step. And then making the GcRangeFilter trait and blanket implementing it for all BuildPlan types means we can now include our new operation in the nuclease plan builder:

use crate::filter::{
    GcRangeFilter, MaxNsFilter, MinEntropyFilter, MinLengthFilter, MinMeanQualityFilter,
};

let plan = Plan::new()
    // our new filter is now available!
    .gc_range(cli.min_gc, cli.max_gc)

    // from there, we can chain on any number of other desired steps to the plan
    .max_ns(cli.max_ns)
    .trim_adapters(AdapterCatalog::illumina_truseq())
    .quality_trim(cli.trim_min_q)
    .min_length(cli.min_length)
    .min_mean_q(cli.min_mean_q)
    .min_entropy(cli.min_entropy)
    .orphan_policy(OrphanPolicy::DropPair)
    .build()?;

build() prepares a fresh worker for each operation, so the same plan definition can be built more than once. Filters evaluate mates separately by default; override evaluate_pair to decide for the whole pair.

Transforms that produce mutated versions of the input reads work exactly the same way.

Extending nuclease with new transforms

Transforms produce a possibly changed RecordView rather than accepting or rejecting the read. They are represented with the ReadTransform trait. A simple example is trimming a fixed number of bases from the 5' end of each read.

The transform itself is another small Rust struct:

pub(crate) struct TrimPrefix {
    bases: usize,
}

impl TrimPrefix {
    pub(crate) const fn new(bases: usize) -> Self {
        Self { bases }
    }
}

The ReadTransform implementation receives a borrowed RecordView and a reusable TransformArena. If the transform changes the read, it places the changed sequence and quality slices in the arena and returns a new view:

use crate::{
    plan::{ReadTransform, TransformArena, TransformResult},
    record::RecordView,
};

impl ReadTransform for TrimPrefix {
    fn code(&self) -> &'static str {
        "trim_prefix"
    }

    fn apply<'a>(&self, record: RecordView<'a>, arena: &'a TransformArena) -> TransformResult<'a> {
        assert_eq!(
            record.sequence().len(),
            record.quality().len(),
            "prefix trimming requires equal sequence and quality lengths"
        );

        let trim_start = self.bases.min(record.sequence().len());

        if trim_start == 0 {
            return TransformResult {
                record,
                applied: false,
            };
        }

        TransformResult {
            record: record
                .with_sequence_and_quality(
                    arena.alloc_slice_copy(&record.sequence()[trim_start..]),
                    arena.alloc_slice_copy(&record.quality()[trim_start..]),
                )
                .expect("prefix trimming should preserve equal sequence and quality lengths"),
            applied: true,
        }
    }
}

As with filters, bridge the transform into the executor and expose a fluent method:

use crate::plan::{BuildPlan, ExecutionStep, PrepareExecutionStep, TransformStep};

impl PrepareExecutionStep for TrimPrefix {
    fn prepare(&self) -> crate::error::Result<Box<dyn ExecutionStep>> {
        Ok(Box::new(TransformStep(TrimPrefix::new(self.bases))))
    }
}

pub(crate) trait TrimPrefixTransform: BuildPlan {
    fn trim_prefix(self, bases: usize) -> Self {
        self.step(TrimPrefix::new(bases))
    }
}

impl<T> TrimPrefixTransform for T where T: BuildPlan {}

If the transform should be user-configurable, add a CLI field:

#[arg(long, default_value_t = 0, help_heading = "Preprocessing")]
pub trim_prefix: usize,

And compose it into the same plan chain:

use crate::quality::{QualityTrimTransform, TrimPrefixTransform};

let plan = Plan::new()
    .max_ns(cli.max_ns)
    .trim_adapters(AdapterCatalog::illumina_truseq())
    .trim_prefix(cli.trim_prefix) // here's the new transform
    .quality_trim(cli.trim_min_q)
    .min_length(cli.min_length)
    .min_mean_q(cli.min_mean_q)
    .min_entropy(cli.min_entropy)
    .orphan_policy(OrphanPolicy::DropPair)
    .build()?;

The transform reports whether it was actually applied. When applied is true, the executor records the transform code (trim_prefix) in run statistics without the pipeline needing transform-specific accounting.

In both cases, the following steps are all that's needed to do new things in nuclease:

  1. Make a new struct to handle the transform or filter.
  2. Make a struct that records the reason for rejection, if a filter. This isn't necessary for transforms.
  3. Implement ReadFilter or ReadTransform.
  4. Implement PrepareExecutionStep to create a fresh worker for each compilation.
  5. Package the struct in a trait and blanket implement it for all plans.

Extending nuclease with read-set operations

Read-set operations are the advanced extension point for work that retains, reorders, or emits groups of units. A stateful filter that decides immediately about the current read or pair can still use the simpler per-unit interfaces above. These are internal extension interfaces, not a published library API.

The authoring model stays the same: put reusable configuration in a definition, implement PrepareExecutionStep<dyn ReadSetTransform> to create a fresh owned worker, and insert it with .read_set_transform(definition). Compilation preserves surrounding per-unit chains and prepares independent workers for each execution. See SortConfig and its worker for a complete implementation using upstream storage rather than a local sorting engine.

trait ReadSetTransform: Send + 'static {
    fn code(&self) -> &'static str;

    fn ingest(
        &mut self,
        unit: ActiveUnit<'_>,
        downstream: &mut dyn ActiveUnitSink,
    ) -> Result<()>;

    fn finish(
        self: Box<Self>,
        downstream: &mut dyn ActiveUnitSink,
    ) -> Result<()>;
}

For a block-reversal operation, the definition and worker would connect like this. This is a lifecycle sketch: ReverseBlocks, ReverseWorker, and their bounded storage helpers are illustrative operation-owned types, not additional nuclease interfaces.

impl PrepareExecutionStep<dyn ReadSetTransform> for ReverseBlocks {
    fn prepare(&self) -> Result<Box<dyn ReadSetTransform>> {
        Ok(Box::new(ReverseWorker::new(self.max_units, self.max_bytes)?))
    }
}

impl ReadSetTransform for ReverseWorker {
    fn code(&self) -> &'static str { "reverse_blocks" }

    fn ingest(&mut self, unit: ActiveUnit<'_>, downstream: &mut dyn ActiveUnitSink)
        -> Result<()>
    {
        self.reject_oversized_unit(unit)?;
        if self.would_exceed_limit(unit) {
            self.emit_block_reversed(downstream)?;
        }
        self.store_owned(unit)?;
        Ok(())
    }

    fn finish(self: Box<Self>, downstream: &mut dyn ActiveUnitSink) -> Result<()> {
        let mut worker = *self;
        worker.emit_block_reversed(downstream)
    }
}

Here, emit_block_reversed lends each stored unit to downstream.emit_unit(view)?, then releases its storage. Neither the buffer nor that helper is shared between builds.

ingest receives a borrowed single or complete pair. Process it synchronously, or own its data before returning; never retain parser or transform-arena views. Keep stored pairs atomic and preserve provenance. Bound retained storage or use a spilling implementation. The built-in sorting worker accepts singles within a paired stream but requires common input provenance; it rejects mixed provenance instead of losing it.

Emit through downstream.emit_unit(unit) during ingestion or completion. That sink runs the remaining plan, including later filters and set operations; it is not a direct file writer. It consumes each view synchronously, so an emitted record's storage can be reused after the call returns. Always propagate its errors. For example, a bounded block-reversal operation can emit complete blocks during ingestion and the last partial block at EOF; a global sorter emits only at completion.

The runner finishes workers in plan order only after verified input exhaustion: A's finish may feed B's ingest, then B's finish runs. Consuming self: Box<Self> makes a worker one-shot; build the reusable definition again for another run. Errors abort execution and drop retained resources without semantic draining. Drop is cleanup, not another opportunity to emit. Output flushing and report finalization are separate fallible steps.

The runner returns successful ingestion/emission counts for units and reads at each set boundary only after complete successful finalization. Counted emissions precede downstream filtering. These are not general rejection events: only an operation known to remove units without changing their cardinality, such as exact deduplication, can interpret their difference as removals. Ordinary filter rejection outcomes retain their existing reporting path.

The runtime plan boxes each prepared worker once and dispatches ingestion and emission dynamically. That representation permits new operation types without editing a closed operation catalog and matches ordinary runtime steps. It does not allocate a new worker or sink for every read. The runner owns per-chain scratch storage and reborrows the observer sequentially; operation authors do not manage those lifetimes or create another executor.

Roadmap

If you're guessing I have plans to make use of this extensibility, you'd be right! These plans currently include:

  • Enrichment and depletion with Deacon.
  • Support for paired-read overlap merging.
  • Spill-backed sequence sorting and explicit exact-sequence deduplication.
  • More adapter trimming support.
  • Read demultiplexing.

About

The last FASTQ preprocessor I'll ever make. I promise.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages