<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.bwhpc.de/wiki/index.php?action=history&amp;feed=atom&amp;title=BinAC2%2FSoftware%2Ffastp</id>
	<title>BinAC2/Software/fastp - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bwhpc.de/wiki/index.php?action=history&amp;feed=atom&amp;title=BinAC2%2FSoftware%2Ffastp"/>
	<link rel="alternate" type="text/html" href="https://wiki.bwhpc.de/wiki/index.php?title=BinAC2/Software/fastp&amp;action=history"/>
	<updated>2026-11-25T12:19:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.bwhpc.de/wiki/index.php?title=BinAC2/Software/fastp&amp;diff=16720&amp;oldid=prev</id>
		<title>F Bartusch at 12:10, 25 November 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.bwhpc.de/wiki/index.php?title=BinAC2/Software/fastp&amp;diff=16720&amp;oldid=prev"/>
		<updated>2026-11-25T12:10:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.bwhpc.de/wiki/index.php?title=BinAC2/Software/fastp&amp;amp;diff=16720&amp;amp;oldid=16719&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>F Bartusch</name></author>
	</entry>
	<entry>
		<id>https://wiki.bwhpc.de/wiki/index.php?title=BinAC2/Software/fastp&amp;diff=16719&amp;oldid=prev</id>
		<title>F Bartusch: Created page with &quot;{{Softwarepage|bio/fastp}} {| width=600px class=&quot;wikitable&quot; |- ! Description !! Content |- | module load | bio/fastp |- | License | MIT - see [https://github.com/OpenGene/fastp/blob/master/LICENSE] |- | Citing | [https://doi.org/10.1002/imt2.70078 Shifu Chen. fastp 1.0: An ultra-fast all-round tool for FASTQ data quality control and preprocessing. iMeta 4(5) (2025): e70078] |- | Links | fastp Documentation: [https://github.com/OpenGene/fastp#readme] &lt;br&gt; fastp Repository...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.bwhpc.de/wiki/index.php?title=BinAC2/Software/fastp&amp;diff=16719&amp;oldid=prev"/>
		<updated>2026-11-25T10:55:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Softwarepage|bio/fastp}} {| width=600px class=&amp;quot;wikitable&amp;quot; |- ! Description !! Content |- | module load | bio/fastp |- | License | MIT - see [https://github.com/OpenGene/fastp/blob/master/LICENSE] |- | Citing | [https://doi.org/10.1002/imt2.70078 Shifu Chen. fastp 1.0: An ultra-fast all-round tool for FASTQ data quality control and preprocessing. iMeta 4(5) (2025): e70078] |- | Links | fastp Documentation: [https://github.com/OpenGene/fastp#readme] &amp;lt;br&amp;gt; fastp Repository...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Softwarepage|bio/fastp}}&lt;br /&gt;
{| width=600px class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Description !! Content&lt;br /&gt;
|-&lt;br /&gt;
| module load&lt;br /&gt;
| bio/fastp&lt;br /&gt;
|-&lt;br /&gt;
| License&lt;br /&gt;
| MIT - see [https://github.com/OpenGene/fastp/blob/master/LICENSE]&lt;br /&gt;
|-&lt;br /&gt;
| Citing&lt;br /&gt;
| [https://doi.org/10.1002/imt2.70078 Shifu Chen. fastp 1.0: An ultra-fast all-round tool for FASTQ data quality control and preprocessing. iMeta 4(5) (2025): e70078]&lt;br /&gt;
|-&lt;br /&gt;
| Links&lt;br /&gt;
| fastp Documentation: [https://github.com/OpenGene/fastp#readme] &amp;lt;br&amp;gt;&lt;br /&gt;
fastp Repository: [https://github.com/OpenGene/fastp]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Description =&lt;br /&gt;
&lt;br /&gt;
This page describes &amp;#039;&amp;#039;&amp;#039;fastp 1.4.0&amp;#039;&amp;#039;&amp;#039; (module &amp;lt;code&amp;gt;bio/fastp/1.4.0&amp;lt;/code&amp;gt;). All recommendations below were measured with this version.&lt;br /&gt;
&lt;br /&gt;
fastp cleans up short read sequencing data (FASTQ files) before further analysis. In one pass it checks the quality, finds and removes adapter sequences, cuts or removes low quality reads, and writes a report as HTML (to look at in a web browser) and as JSON (for tools such as MultiQC). It works with paired-end and single-end data and reads and writes gzip compressed files directly.&lt;br /&gt;
&lt;br /&gt;
You only need to load this one module. fastp works on all BinAC 2 compute nodes and automatically uses the fastest instructions the processor of the node offers; you do not have to choose anything.&lt;br /&gt;
&lt;br /&gt;
fastp is designed for short reads. For long reads (Nanopore, PacBio) upstream provides a separate tool, fastplong.&lt;br /&gt;
&lt;br /&gt;
= Quick start =&lt;br /&gt;
&lt;br /&gt;
Paired-end gzip FASTQ files, adapters are detected automatically. Run the job from a workspace or your project directory (see [[#Storage|Storage]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --job-name=fastp&lt;br /&gt;
#SBATCH --nodes=1&lt;br /&gt;
#SBATCH --ntasks=1&lt;br /&gt;
#SBATCH --cpus-per-task=16&lt;br /&gt;
#SBATCH --mem=2G&lt;br /&gt;
#SBATCH --time=01:00:00&lt;br /&gt;
&lt;br /&gt;
module load bio/fastp/1.4.0&lt;br /&gt;
&lt;br /&gt;
fastp -i sample_R1.fastq.gz -I sample_R2.fastq.gz \&lt;br /&gt;
      -o sample_R1.trimmed.fastq.gz -O sample_R2.trimmed.fastq.gz \&lt;br /&gt;
      --detect_adapter_for_pe -w 8 \&lt;br /&gt;
      -j sample.fastp.json -h sample.fastp.html&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Slurm on BinAC 2 counts hardware threads as CPUs: &amp;lt;code&amp;gt;--cpus-per-task=16&amp;lt;/code&amp;gt; gives 8 physical cores, which fits &amp;lt;code&amp;gt;-w 8&amp;lt;/code&amp;gt; (8 fastp worker threads).&lt;br /&gt;
&lt;br /&gt;
= Benchmarks =&lt;br /&gt;
&lt;br /&gt;
All values were measured with fastp 1.4.0 (&amp;lt;code&amp;gt;bio/fastp/1.4.0&amp;lt;/code&amp;gt;) on BinAC 2 Zen 3 nodes (2 x AMD EPYC 7543), one job per node. The Zen 5 nodes were not benchmarked.&lt;br /&gt;
&lt;br /&gt;
Data: human whole genome sequencing of NA12878, run ERR194147, paired-end 2 x 101 bp Illumina, gzip compressed, options &amp;lt;code&amp;gt;--detect_adapter_for_pe&amp;lt;/code&amp;gt; and otherwise the defaults. The files are on BinAC 2 in&lt;br /&gt;
&amp;lt;code&amp;gt;/pfs/10/project/benchmark_data/wgs/giab_NA12878_truseq_30x/ERR194147/&amp;lt;/code&amp;gt;&lt;br /&gt;
(&amp;lt;code&amp;gt;ERR194147_1.fastq.gz&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;ERR194147_2.fastq.gz&amp;lt;/code&amp;gt;). The smaller inputs are the first 10, 20 and 40 million read pairs of these files.&lt;br /&gt;
&lt;br /&gt;
== Threads ==&lt;br /&gt;
&lt;br /&gt;
The option &amp;lt;code&amp;gt;-w&amp;lt;/code&amp;gt; sets the number of fastp worker threads. 20 million read pairs, mean of 2 runs (1 run for &amp;lt;code&amp;gt;-w 35&amp;lt;/code&amp;gt; and more). The recommended setting is marked green.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! -w !! --cpus-per-task !! Wall time !! Speedup vs -w 2&lt;br /&gt;
|-&lt;br /&gt;
| 2 || 4 || 98 s || 1.0&lt;br /&gt;
|-&lt;br /&gt;
| 4 || 8 || 62 s || 1.6&lt;br /&gt;
|-&lt;br /&gt;
| 6 || 12 || 52 s || 1.9&lt;br /&gt;
|- style=&amp;quot;background-color:#c6efce;&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;16&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;47 s&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;2.1&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| 12 || 24 || 40 s || 2.5&lt;br /&gt;
|-&lt;br /&gt;
| 16 || 32 || 41 s || 2.4&lt;br /&gt;
|-&lt;br /&gt;
| 35 || 128 || 55 s || 1.8&lt;br /&gt;
|-&lt;br /&gt;
| 70 || 128 || 58 s || 1.7&lt;br /&gt;
|-&lt;br /&gt;
| 128 || 128 || 64 s || 1.5&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;-w 8&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;--cpus-per-task=16&amp;lt;/code&amp;gt; is the recommended setting: it uses the CPUs well.&lt;br /&gt;
* &amp;lt;code&amp;gt;-w 12&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;--cpus-per-task=24&amp;lt;/code&amp;gt; is the fastest setting, but only about 15% faster for 50% more CPUs.&lt;br /&gt;
* More than &amp;lt;code&amp;gt;-w 16&amp;lt;/code&amp;gt; makes fastp &amp;#039;&amp;#039;&amp;#039;slower&amp;#039;&amp;#039;&amp;#039;, not faster.&lt;br /&gt;
&lt;br /&gt;
== Job size and time ==&lt;br /&gt;
&lt;br /&gt;
With &amp;lt;code&amp;gt;-w 8&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--cpus-per-task=16&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Read pairs !! Input (gzip, R1 + R2) !! Wall time&lt;br /&gt;
|-&lt;br /&gt;
| 10 million || 1.3 GB || 32 s&lt;br /&gt;
|-&lt;br /&gt;
| 20 million || 2.7 GB || 47 s&lt;br /&gt;
|-&lt;br /&gt;
| 40 million || 5.2 GB || 79 s&lt;br /&gt;
|-&lt;br /&gt;
| 766 million (30x human genome) || 103 GB || 23 min&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Rule of thumb (estimate from these runs): about 1.8 seconds per million read pairs, plus a few seconds to start. Add a safety margin to &amp;lt;code&amp;gt;--time&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Memory ==&lt;br /&gt;
&lt;br /&gt;
fastp needed 1.3 GiB of memory in every run with &amp;lt;code&amp;gt;-w 2&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;-w 16&amp;lt;/code&amp;gt;, no matter if the input had 10 million or 766 million read pairs. A full 30x human genome finished with &amp;lt;code&amp;gt;--mem=2G&amp;lt;/code&amp;gt;, so &amp;lt;code&amp;gt;--mem=2G&amp;lt;/code&amp;gt; is enough.&lt;br /&gt;
&lt;br /&gt;
With many threads fastp needs more memory: 2.7 GiB at &amp;lt;code&amp;gt;-w 128&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Storage ==&lt;br /&gt;
&lt;br /&gt;
BinAC 2 has several places to keep data, see [https://wiki.bwhpc.de/e/BinAC2/Hardware_and_Architecture#File_Systems File Systems].&lt;br /&gt;
&lt;br /&gt;
A single fastp job was equally fast with input and output on project storage (&amp;lt;code&amp;gt;/pfs/10/project&amp;lt;/code&amp;gt;), in a workspace (&amp;lt;code&amp;gt;/pfs/10/work&amp;lt;/code&amp;gt;) or in the job&amp;#039;s local &amp;lt;code&amp;gt;$TMPDIR&amp;lt;/code&amp;gt; (40 million read pairs, all combinations between 76 s and 79 s). fastp reads and writes only about 70 MB/s per job, so the file system does not slow it down. Copying the input to &amp;lt;code&amp;gt;$TMPDIR&amp;lt;/code&amp;gt; first does not make fastp faster.&lt;br /&gt;
&lt;br /&gt;
The compressed output is about as large as the input (103 GB for a 30x human genome). Make sure there is enough space where you write the output.&lt;br /&gt;
&lt;br /&gt;
= Pitfalls =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Too many threads:&amp;#039;&amp;#039;&amp;#039; more than &amp;lt;code&amp;gt;-w 16&amp;lt;/code&amp;gt; is slower, not faster. Do not use &amp;lt;code&amp;gt;-w ${SLURM_CPUS_PER_TASK}&amp;lt;/code&amp;gt; with a large number of CPUs.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Some report values depend on -w:&amp;#039;&amp;#039;&amp;#039; the insert size (histogram and peak) is calculated from the reads of only one worker thread, and the list of removed adapter sequences is limited per thread. These values change slightly when you change &amp;lt;code&amp;gt;-w&amp;lt;/code&amp;gt;. The cleaned reads and all read, base and filter counts do not depend on &amp;lt;code&amp;gt;-w&amp;lt;/code&amp;gt; (checked for &amp;lt;code&amp;gt;-w 2&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;-w 16&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Report file names:&amp;#039;&amp;#039;&amp;#039; without &amp;lt;code&amp;gt;-j&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;-h&amp;lt;/code&amp;gt; fastp writes &amp;lt;code&amp;gt;fastp.json&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;fastp.html&amp;lt;/code&amp;gt; into the current directory. Give every sample its own names, otherwise the reports overwrite each other.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Output file names:&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;-o&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; must be different files.&lt;br /&gt;
&lt;br /&gt;
= Support =&lt;br /&gt;
&lt;br /&gt;
See [https://wiki.bwhpc.de/e/BinAC2/Support BinAC2 Support].&lt;/div&gt;</summary>
		<author><name>F Bartusch</name></author>
	</entry>
</feed>