Skip to main content

GitHub release License: GPL v3 Python3 DOI PyPI Downloads Bioconda Downloads Docker Downloads

Welcome to Readzor

Readzor logo

Readzor is a fast, modular, and fully-featured FASTQ quality trimming and filtering pipeline, written in Python. Readzor trims and filters FASTQ reads: quality, adapters, homopolymers, Ns and low-complexity reads.

Please note: all processing modules are off by default, giving you full control over your workflow.


Contents

How it works

Each enabled module assesses every raw read independently. The results are then merged, and the most stringent trim per read end is applied. For example, if quality trimming would remove 5 bases from the 3' end and adapter trimming would remove 12, Readzor removes 12.

Features

Modular trimming approach: By design, each filter will independently assess each raw read. Outcomes are merged, and the most stringent trimming result per end is applied.
For example, if the quality trimmer determines 5 bases should be removed from the 3' end, but the adapter trimmer identifies 12 bases to remove from that same end, Readzor will merge these outcomes and trim the most restrictive amount (12 bases) to ensure high-quality output.

  • Quality-dependent end trimming.
  • Sliding window quality trimming.
  • Homopolymer trimming, from both read ends.
  • Adapter trimming with built-in Illumina adapter groups (TruSeq, TruSeq small RNA, Illumina miRNA, Nextera, AmpliSeq, TruSeq DNA methylation, TruSeq Ribo-Profile, and Illumina RNA), with optional mismatches and detection of partial adapters at the 3' end.
  • Overlap-based adapter trimming for paired and interleaved reads, independent of the adapter sequence.
  • N-base trimming from both read ends, and overall N-base filtering.
  • K-mer based low complexity filtering.
  • Set-length read end trimming.
  • Average input and output quality thresholds.
  • Input and output length thresholds (absolute, or as a percentage of the input read length).

Auto-detection: Using auto-detection methods, Readzor provides an easy-to-use platform for novice users, enabling high quality read trimming with minimal inputs.

  • File Pairing: paired vs. unpaired vs. interleaved FASTQ files detection using internal header information, independent of file names.
  • Read Numbering: read numbers detection when needed, directly from headers.
  • Compression: Gzip compression detection via magic bytes, regardless of the file extension.
  • Phred Offsets: per-file Phred quality offsets detection (i.e., Phred33 vs. Phred64) based on quality string symbols.

Extra features: Equipped with a number of other features, like built-in validation and seamless HPC cluster detection methods, Readzor delivers a robust execution environment, ensuring reproducible outputs at any scale.

  • Fully automatic mode: invoking Readzor in fully automatic mode (optional file specification possible), will use predetermined settings to optimize read processing. For more info, invoke Readzor with flags --full-auto and --help.
  • MGI/BGI header conversion: Built-in module to convert MGI/BGI fastq headers into standard Illumina format for downstream compatibility (e.g., with SAMtools).
  • Safe and traceable outputs: Automatically generates isolated, timestamped output directories to prevent accidental file overwrites. Each run includes a log file recording the exact command and all parameters used, and a summary file with the kept and rejected read counts per input, for full reproducibility.
  • HPC integration: Automatically reads HPC cluster environment variables to seamlessly scale threads and optimize performance on HPC clusters.
  • Live progress monitoring: Features a dynamic progress tracker to accurately provide real-time feedback on processing speed, completion, and estimated time remaining.
  • Real-time record validation: Readzor detects malformed or corrupted FASTQ records on the fly, ensuring high-quality output.
  • Gzip compression: Compress your output files and control the compression depth to optimize storage size.
  • Test run: Perform a short test run according to specified settings, printing verbose output to screen, to catch config errors before committing to a full run. No output files are kept.
  • Piping: Read FASTQ data from stdin and stream the filtered reads to stdout, to use Readzor inside a pipeline.
  • Rejected reads: Optionally write all rejected reads to separate files for inspection.

Input notes: gzipped and plain files can be mixed freely. In --full-auto mode without input files, Readzor picks up files in the working directory ending in .fastq or .fq (optionally followed by .gz or .gzip). Extra adapter sequences are supplied as a FASTA file.

Installation

Installation is made easy through several repositories. Check for correct installation by calling --version.

Bioconda

conda install readzor
readzor --version

Pip

pip install readzor
readzor --version

Docker

docker pull ghcr.io/abjanssen/readzor:latest
docker run --rm ghcr.io/abjanssen/readzor:latest --version

From source

git clone https://github.com/abjanssen/Readzor.git
pip install numpy==2.5.2 isal==1.8.0
python Readzor/src/readzor/readzor.py --version

Quick start

# Fully automatic: preset settings, files and pairing detected in the current directory
readzor -GO
 
# Automatic, but with your own files (pairing auto-detected)
readzor -GO --input-files sample*.fastq.gz
 
# Declare pairing explicitly (can be combined)
readzor -GO --input-paired s1_R1.fq.gz s1_R2.fq.gz --input-unpaired s2.fq.gz
 
# Choose modules yourself, with their default settings
readzor --input-files *.fq.gz --adapter-filter-flag --endqual-filter-flag
 
# Customize module settings
readzor --input-files *.fq.gz --endqual-filter-flag --endqual-min-both 25
readzor --input-files *.fq.gz --adapter-filter-flag --adapter-group Nextera --adapter-mismatch 1
readzor --input-files *.fq.gz --adapter-filter-flag --adapter-fasta-add my_adapters.fasta
 
# Stream through a pipeline
cat reads.fastq | readzor --endqual-filter-flag --stdout > filtered.fastq

Command line options

All modules are off by default. To use a module, specify a module flag. Further specification of module settings is possible using the appropiate options.

General settings

General options for help, version information, automatic mode, and console output.
--help, -h [FLAG]: Show this help message and exit. Combine with --full-auto/-GO for more information on fully automatic mode.
--version, -v [FLAG]: Show Readzor version and exit.
--list-adapters [FLAG]: Show all built-in adapter sequences and exit.
--full-auto, -GO [FLAG]: Run Readzor in fully automatic mode. Combine with --help/-h for more information on fully automatic mode.
--progress [FLAG]: Show a live progress bar and estimated time remaining during processing, based on estimated read counts. Default: off.
--verbose [FLAG]: Write verbose output to terminal, in addition to the log file. Default: off.

Input options

Specify input FASTQ files using any combination of --input-files, --input-paired, --input-unpaired, and --input-interleaved. Lists with any combination of regular (fastq/fq) and gzipped (fastq.gz/fq.gz) files accepted. If no input flags are provided, data will be read directly from standard input (stdin). With --full-auto and no input flags, FASTQ files in the current working directory are used instead.
--input-files, -i: FASTQ files of unspecified pairing. Paired, interleaved, and unpaired files will be auto-detected.
--input-interleaved, -ii: Interleaved FASTQ files. Note: these files will be split in forward and reverse reads.
--input-paired, -ip: Paired-end FASTQ files, given as one or more R1/R2 pairs, e.g. --input-paired sample1_R1 sample1_R2 sample2_R1 sample2_R2.
--input-unpaired, -iu: Unpaired FASTQ files.

Output options

Filtered sequences can be either written to file, or output to stdout. Setting --stdout overrides other settings.
--gzip [FLAG]: Compress filtered FASTQ files in gzip format using isal. Default: off.
--gzip-level: Set gzip compression level. Higher compression decreases processing speed. Possible values: 0-3. Default: 1.
--interleaved-out [FLAG]: Interleave surviving read pairs of paired and interleaved input files into one output file. Single surviving reads are still written to separate files. Default: off.
--output, -o: Path to directory in which the timestamped results folder will be created. Default: current working directory.
--stdout [FLAG]: Stream resulting FASTQ reads to stdout. Forces --interleaved-out and --discard-singles for paired and interleaved files. Overrides --verbose, --progress, and --write-rejected to off. Overridden to 'off' by --gzip. Note: all files will be streamed one after another, without any separators. Default: off.
--write-rejected [FLAG]: Write rejected reads to file. Either one (for unpaired and when --interleaved-out is set), or two (for forward and reverse reads) are produced. Overridden to 'off' when --stdout is set. Default: off.
--discard-singles [FLAG]: Discard single leftover reads. For paired and interleaved reads, single surviving reads will be discarded instead of written to a separate file. No effect on unpaired read filtering. Default: off.
--stats [FLAG]: Write detailed summary read trimming statistics. Default: off.

General quality filters

Filters raw input, or trimmed output sequences for overall parameters. When a read does not pass these filters, it is discarded entirely.
--min-average-qual-pre: Minimum average quality of input read. Possible values: 0-127. Default: 0.
--min-average-qual-post: Minimum average quality of output read. Possible values: 0-127. Default: 0.
--min-length-input: Minimum length for input read. Default: off.
--max-length-input: Maximum length for input read. Default: off.
--min-length-output: Minimum length of output read in absolute number of nucleotides. Overrides --min-length-output-perc when both set. Default: off.
--min-length-output-perc: Minimum length of output read as percentage of input read. Overridden by --min-length-output when both set. Default: off.
--max-length-output: Maximum length of output read in absolute number of nucleotides. Overrides --max-length-output-perc when both set. Default: off.
--max-length-output-perc: Maximum length of output read as percentage of input read. Overridden by --max-length-output when both set. Default: off.
--n-filter [FLAG]: Reject reads containing N bases anywhere in read. Turns off N nucleotide end trimming. Default: off.

Set-Length end trimming

Trim a set number of bases of the ends of each rea gd, independent of sequence or quality.\ --cut-flag, -cf[FLAG]: Turn on the set-length end trimming module. Default: off.\--cut-start, -cs: Number of bases to trim from the start of the read. Default: 0.\ --cut-end, -ce: Number of bases to trim from the end of the read. Default: 0.\ --cut-both, -cb`: Number of bases to trim from both ends of the read. Overwritten by --cut-start and --cut-end. Default: 0.

Quality-dependent end trimming

Trim the ends of each read for quality, up to the first position that fulfills quality requirements.
--endqual-filter-flag, -ef [FLAG]: Turn on quality-dependent end trimming. Default: off.
--endqual-min-start, -ems: Specific phred score threshold for the start of the read. Default: 20.
--endqual-min-end, -eme: Specific phred score threshold for the end of the read. Default: 20.
--endqual-min-both, -emb: Phred score threshold for the quality trimming of read ends. Overwritten by --endqual-min-start and --endqual-min-end. Default: 20

Sliding window quality trimming

Trim the reads for quality based on a sliding window of size X, moved with stepsize Y. In case of mid-read quality dropoff, the longest portion survives. In case of a tie, the portion with the highest average quality survives.
--slider-filter-flag, -sf [FLAG]: Turn on sliding window quality trimming module. Default: off.
--slider-window, -sw: Window size over which average quality is calculated. Default: 5.
--slider-quality, -sq: Minimum average quality in sliding window. Default: 20.
--slider-step, -ss: Sliding window step size. Default: 1.

Homopolymer nucleotide trimming

Illumina NovaSeq, NextSeq, and MiniSeq use a two-color chemistry, in which guanine bases are unlabeled. In event of short fragments, this can result in homopolymer G calls at the end of reads. This filter allows for G, and/or other bases, to be cut.
--poly-filter-flag, -pf [FLAG]: Turn on homopolymer read-end trimming module. Default: off.
--poly-bases-start, -pbs: Base(s) to check for a homopolymer run at start of read. Comma-separated bases are checked independently. Default: none.
--poly-bases-end, -pbe: Base(s) to check for a homopolymer run at end of read. Comma-separated bases are checked independently. Default: "G".
--poly-bases-both, -pbb: Base(s) to check for a homopolymer run at both read ends. Comma-separated bases are checked independently. Overwritten by --poly-bases-start and --poly-bases-end. Default: none.
--poly-length-start, -pls: Minimum length of homopolymer run at start of read required to trigger trimming. A value of 0 disables trimming at the start. Default: off.
--poly-length-end, -ple: Minimum length of homopolymer run at end of read required to trigger trimming. A value of 0 disables trimming at the end. Default: 10.
--poly-length-both, -plb: Minimum length of homopolymer run at start and end of read required to trigger trimming. Used for an end whose own length is not given. Default: off.

Adapter trimming

Trim reads for adapter sequences. Each read is cut at the earliest adapter occurrence; adapters running off the 3' end are detected down to --adapter-seed bases. For paired reads, only the adapter belonging to each mate (Read 1 or Read 2) of a built-in group is searched for. Use --list-adapters to show all built-in sequences. Adapter trimming is performed independent of quality. Can be combined with overlap trimming (--overlap-filter-flag).
--adapter-filter-flag, -af [FLAG]: Turn on adapter trimming module. Default: off.
--adapter-group, -ag: Specify the group(s) of adapters to be used. Ignored if --adapter-fasta-excl is set. Choices: all, TruSeq, TruSeq_small_RNA, Illumina_miRNA, Nextera, AmpliSeq, TruSeq_DNA_methylation, TruSeq_Ribo_profile, Illumina_RNA. Default: TruSeq.
--adapter-seed, -as: Minimal 5'-end match length. Shorter seeds can result in more partial hits found at end of reads. Default: 6.
--adapter-mismatch, -am: Number of mismatches allowed in adapter finding (substitutions only). For partial adapters at the 3' end, the allowed number is scaled down to the matched length. Default: 2.
--adapter-fasta-add, -ad: Fasta file with adapter sequences to trim for, in addition to defined sequences from --adapter-group.
--adapter-fasta-excl, -ax: Fasta file with adapter sequences to trim for, excluding predefined and additional sequences specified.

Overlap trimming

Perform overlap analysis to trim adapter sequences. Works independently of adapter sequence. Only available for paired and interleaved reads. Can be combined with --adapter-filter-flag.
--overlap-filter-flag, -of [FLAG]: Turn on overlap trimming module. Default: off.
--overlap-mismatches, -om: Maximum mismatches allowed in the overlapping region. Default: 5.
--overlap-min-length, -ol: Minimum overlap length between the paired reads. Default: 50.
--overlap-portion-mismatch, -op: Maximum percentage of mismatched bases allowed in the overlapping region. Default: 4

Low complexity filtering

Detect complexity of reads using k-mer-based nucleotide frequencies. Low complexity reads are discarded entirely.
--kmer-filter-flag, -kf [FLAG]: Turn on the k-mer-based complexity filtering module. Default: off.
--kmer-size, -ks: K-mer length for k-mer-based complexity filtering. Comma-separated values are checked independently. Maximum value: 21. Default: 4.
--kmer-cutoff, -kc: Minimum percentage of unique k-mers (relative to the maximum possible for the read) required to pass the complexity filter. Higher values are stricter. Default: 50.

MGI header conversion

Convert read header from MGI (BGI) format to Illumina format. Original header will be discarded.
--mgi-convert-flag, -mf [FLAG]: Turn on the MGI-to-Illumina header conversion module. Default: off.
--mgi-bc5, -m5: Input an i5 barcode for Illumina header conversion. Default: 'PLACEHOLDERi5'.
--mgi-bc7, -m7: Input an i7 barcode for Illumina header conversion. Default: 'PLACEHOLDERi7'.
--mgi-instrument, -mi: Instrument name for Illumina header conversion. Default: 'PLACEHOLDERinstrument'.
--mgi-run, -mr: Run ID for Illumina header conversion. Default: 'PLACEHOLDERrun'.

Advanced options

Further options that can be specified to alter the behavior of Readzor.
--threads, -t: Number of threads to use. Default: platform-dependent through auto-detection (assigned CPUs on HPC cluster systems, all-1 otherwise. Fallback: 1).
--reads-for-phred-offset: Number of reads to sample per file for detection of Phred quality encoding offset. Default: 500.
--chunk-size: Number of reads per chunk sent to each worker. Changing can alter processing speed. Default: 1500.
--phred-offset: Define phred offset for all FASTQ files. When set, per-file auto-detection will not be performed. Possible values: 33, 64. Default: off (auto-detection per file).
--testrun [FLAG]: Perform a limited test run according to specified settings: only the first chunks of each input are processed (one per thread), and all output, including the log and summary files, is deleted afterwards. Also sets --verbose. Default: off.
--ordered-output [FLAG]: Force writing output reads in the same order as the input reads, with the exception of filtered reads. Default: off.
--phred-out: Convert Phred encoding from 33 to 64, and vice versa. Possible values: 33, 64. Default: off.

Benchmarking

Production of synthetic short read sequences

To provide for a repeatable benchmarking method, and ground-truth for adapter removal, we produced a synthetic dataset from the Streptococcus pneumoniae BHN418 (NCBI Accession CP155538.1) genome using NEAT. We produced a 151 bp, paired-end dataset, with a mean fragment size of 280 bp and standard deviation of 50 bp, with TruSeq adapters ligated where necessary. This resulted in a paired-end dataset totalling 56,009,434 reads, with 267,114 (0.476%) reads containing adapter sequences. From the provided results (i.e. read headers and golden BAM file), the exact adapter content was parsed for use in adapter removal benchmarking.

Adapter sequence trimming

The removal of adapter sequences is an important step in the cleanup of short read sequences. Readzor can use two methods, either alone or in combination, to find and trim these sequences: adapter sequence search, and overlap search. To benchmark the performance of these methods, we determined the following:

  • Recall (portion of adapters succesfully found);
  • Precision (portion of removed bases that belonged to adapter sequences);
  • F1 (harmonic mean combining precision and recall, $F_1 = 2 \cdot \frac{\text{precision} \cdot \text{recall}}{\text{precision} + \text{recall}}$);
  • Genomic basese lost.

Adapter sequence search approach

Readzor scans each read for the first --adapter-seed bases of each adapter, then checks the rest with proportionally scaled mismatches; adapter fragments shorter than the seed are therefore not found. A grid search identified --adapter-seed 6 --adapter-mismatch 2 as the best balance. Raising either increases recall at the cost of precision and genomic bases lost.

Adapter sequence search performance

Overlapping sequences approach

For paired-end data, when the insert is shorter than the read length, mates read into the adapters, which can be found by aligning the mates to each other. By aligning paired reads against each other, adapter sequences can be identified, without requiring specification of adapter sequences. Inserts shorter than --overlap-min-length are missed.

By setting --overlap-portion-mismatch to 100, we isolated the effect of --overlap-mismatches on the adapter sequences found. Vice versa, by setting --overlap-mismatches to 999, the behaviour of --overlap-portion-mismatch,was investigated.

Overlapping sequences search performance: absolute number of mismatches

Overlapping sequences search performance: relative number of mismatches

From both these datasets, we observe an inverse correlation between the precision and F1, and number of allowed mismathches, through the rapid increase in genomic bases lost. A minimal --overlap-min-length of50 seems to strike a balance between different outcomes. To further characterize the behaviour of this trimming method, we set the --overlap-min-length at 50, and varied the mismatch parameters. As Readzor uses the lowest number of these two settings to determine the allowed number of mismatches for a given overlap, we can finetune the overlap search. For shorter overlaps, --overlap-portion-mismatch will determine the number of mismatches allowed, but at longer overlaps, mismatches are capped by --overlap-mismatches, preventing widespread aspecific matching. As the combination of these two methods determine the allowed number of mismatches, a grid-search only needs to perform a limited number of searches, as one of both parameters can act as a de facto cap.

Overlapping sequences search performance

From these results, the default --overlap-min-length has been set to 50, --overlap-mismatches to 5, and --overlap-portion-mismatch to 4. These settings balance adapter recall, precision, and loss of genomic base pairs.

Combined adapter and overlap approach

When desired, both adapter sequence search and overlapping sequences search can be run at the same time. For this synthetic dataset produced, this results in the following performance

Method Recall Precision F1 Genomic bases lost
Adapter search 0.951 0.993 0.971 27,172
Overlap search 0.982 0.780 0.869 1,202,900
Combined 0.999 0.779 0.875 1,230,072

These preset parameters strike a balance between the portion of adapters found, precision, and genomic bases lost. When a more rigorous adapter trimming is desired, the parameters can be adapted. A more detailed overview of the effect of different settings on these parameters can be found in the benchmarking folder in this repository.

Comparison to other short-read trimming tools

We compared the performance of Readzor's adpater trimming capabilities, to other popular read-trimming tools.

As different tools can have different preset parameters, we ran these tools either with preset parameters, or by adapting their parameters to mimick each other (when possible). The commands used are listed in the benchmarking folder in this repository. We provided each tool with the same adapter sequences, to further standardize adapter trimming.

Preset parameters
Tool Configuration Recall Precision F1 Genomic bases lost Note
fastp PE, overlap 0.994 0.654 0.789 2,285,459
PE, overlap + adapter detection 0.994 0.654 0.789 2,285,459 No adapters detected
PE, overlap + Readzor adapters (per read) 0.998 0.622 0.766 2,645,431
PE, overlap + Readzor adapters (overall) 0.998 0.616 0.761 2,712,500
PE, adapter detection 0.000 — 0.000 0 No adapters detected, --overlap_len_require 999
PE, adapter detection + Readzor adapters (per read) 0.968 0.921 0.944 360,242 No adapters detected, --overlap_len_require 999
PE, adapter detection + Readzor adapters (overall) 0.968 0.908 0.937 426,429 No adapters detected, --overlap_len_require 999
Cutadapt PE, Readzor adapters (per read) 0.988 0.467 0.634 4,914,110
PE, Readzor adapters (overall) 0.988 0.466 0.634 4,914,305
SE, Readzor adapters (per read) 0.988 0.467 0.634 4,914,110
SE, Readzor adapters (overall) 0.988 0.466 0.634 4,914,305
Trimmomatic PE, Readzor adapters (none-prefix paired) 0.710 1.000 0.830 0
PE, Readzor adapters (prefix paired) 0.124 0.964 0.219 20,310
PE, Readzor adapters (none-prefix + prefix paired) 0.831 0.994 0.905 20,310
PE, TruSeq3-SE adapters 0.710 0.998 0.830 387
PE, TruSeq3-PE adapters 0.907 0.995 0.949 20,867
PE, TruSeq3-PE-2 adapters 0.918 0.995 0.955 21,466
SE, Readzor adapters (none-prefix paired) 0.710 1.000 0.830 0
SE, Readzor adapters (prefix paired) 0.000 - 0.000 0 No paired read for overlap filtering
SE, Readzor adapters (none-prefix + prefix paired) 0.710 1.000 0.830 0 No paired read for overlap filtering
SE, TruSeq3-SE adapters 0.710 0.999 0.830 387
SE, TruSeq3-PE adapters 0.000 - 0.000 0
SE, TruSeq3-PE-2 adapters 0.710 0.999 0.830 599
Readzor PE, per read adapter specified 0.951 0.993 0.971 27,172
PE, overall adapters specified 0.951 0.993 0.971 27,172
SE, per read adapter specified 0.951 0.993 0.971 27,172
SE, overall adapters specified 0.951 0.993 0.971 27,172
PE, per read adapter specified + overlap 0.999 0.779 0.875 1,230,072
PE, overall adapters specified + overlap 0.999 0.779 0.875 1,230,072
PE, overlap 0.982 0.780 0.869 1,202,900

Resource usage across processing modules

To evaluate the impact of individual Readzor modules on processing time and memory usage, we processed the synthetic dataset with each module switched on separately. Runs without any module (baseline) and with all modules combined were included for reference. As adapter trimming uses a different search strategy when mismatches are allowed, we performed both perfect (--adapter-mismatch 0), and one mismatch (--adapter-mismatch 1) search, to investigate the impact of this change.

Without any module, Readzor's processing time and memory usage are spent on unpacking, reading, validating, and compressing, writing gzipped files. Most modules have a low processing burden: set-length end trimming (--cut-flag), N-filtering (--n-filter), homopolymer trimming (--poly-filter-flag), adapter trimming (--adapter-filter-flag), and quality-dependent end trimming (--endqual-filter-flag) added limited extra time and memory usage. Sliding window quality trimming (--slider-filter-flag), overlap trimming (--overlap-filter-flag) and k-mer based low complexity filtering (--kmer-filter-flag), all added substantial time to the processing. When all modules were combined, processing took about 2.5× the baseline, or roughly the sum of the individual module costs. Memory usage is largely consistent across modules, with a slight increase when all modules are in use.

File compression

Using a version of Readzor in which both gzip and isal were available, the difference between gzip and isal was benchmarked. For isal, a compression level beyond 1 had no appreciable impact on final output size, yet increases processing time (when set to 3). The peak memory usage does not increase with compression level. When gzip was used, processing time increases substantially, increasing with higher compression levels. The use of isal drastically reduces processing time, both when compressed data needs to be read, and when output needs to be compressed, for a slightly higher peak memory usage.

From these results, Readzor uses isal for its high-performance implementation of the DEFLATE algorithm. The default compression level for when --gzip is set, has been set to --gzip-level 1. Across comparable output file size (isal compression level 1 versus gzip compression level 5), the processing time reduces about X.Xx when gzipped input files are used, and output is compressed, with comparable memory usage.

Processing time and memory usage (compared to other tools)

Finally, we characterized the processing speed and maximum memory usage of Readzor and other popular short read trimming tools. For this comparison, we used multiple real-world sequencing data files, to mimick the actual usage of Readzor.

Readzor has built-in functionality to process multiple files. For fastp, we used this recently published script to mimick this behaviour. Cutadapt and Trimmomatic do not have the same functionality, and were run in a loop stead.

For the paired read comparison, whole-genome sequencing reads were obtained from BioProject PRJEB74511 (ERR12875316, ERR13030616-ERR13030639). For the comparison for unpaired reads, we used the S. pneumoniae D39V data available from BioProject PRJNA1347041.

Paired read comparison

Unpaired read comparison

Software and facilities

Readzor has been benchmarked using the zen3 nodes of the Curnagl high-performance computering cluster of the University of Lausanne. For benchmarking, the following software packages and versions were used:

All commands used for benchmarking, and subsequent results, are available from the benchmarking folder in this repository.

Dependencies

Readzor depends on the following software packages:

  • NumPy (version required: 2.5.2)
  • Python (no version requirement)
  • Python-isal (version required: 1.8.0)

Although Readzor works on older versions of Python, it has been developed and tested for performance using version 3.14.7.

Issues and bug reports

Please leave a message in issues or discussions if you notice an issue, bug, or otherwise.

License

This project is provided under the GNU General Public License v3.0 (GPLv3).

Author

Axel B. Janssen (Google Scholar/GitHub)

Reference

Please use the DOI (https://doi.org/10.5281/zenodo.22336649) for your references.

Oligonucleotide sequences

The oligonucleotide sequences used for adapter trimming, included in this work, are copyrighted and protected by intellectual property, including issued or pending patents, copyright, and trade secrets.
Oligonucleotide sequences © 2026 Illumina, Inc. All rights reserved.

Metadata

Release files for Readzor 0.7.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Readzor 0.7.4
File Size Uploaded Provenance Actions
readzor-0.7.4.tar.gz 126.4 kB With provenance Details for readzor-0.7.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Readzor 0.7.4
File Interpreter ABI Platform Actions
readzor-0.7.4-py3-none-any.whl Python 3 none any Details for readzor-0.7.4-py3-none-any.whl

Total release size: 224.8 kB

Release files / readzor-0.7.4.tar.gz

Download URL readzor-0.7.4.tar.gz
Size 126.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ccaac6efaa178a8acb87bb2e1a7b1e067096c2c345944932d1c5caad9e215788
BLAKE2b-256 checksum
How to use checksums
4bb42fbd1b0f2100a48e568cc24564cddee31a0c14d4e34d8809d264a483b04f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / readzor-0.7.4-py3-none-any.whl

Download URL readzor-0.7.4-py3-none-any.whl
Size 98.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42eff00d09a99b51cae7c85bcd12b7312615664fc3fc1cf45d57ab997e49eae0
BLAKE2b-256 checksum
How to use checksums
0aa4b1261974fa483dbeb0a8cc705e645fecece5cb85dbf9894bd0b4ef8affb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for Readzor 0.7.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for readzor-0.7.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.4 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page