FASTP(1)
β¨ NAME β¨
fastp β Ultra-fast all-in-one FASTQ preprocessor. (Yes bestie, this is FASTP(1), User Commands, and she's that girl. π
)
π¦ DESCRIPTION π¦
okay so fastp is an ultra-fast all-in-one FASTQ preprocessor, version 0.23.0, and the usage is literally:
fastp [options] ...
options:
bestie, defaults are doing main character energy here β read them before you override, fr fr.
-i,--in1β read1 input file name (string [=]) π-o,--out1β read1 output file name (string [=]) β¨-I,--in2β read2 input file name (string [=]) π-O,--out2β read2 output file name (string [=]) π¦--unpaired1β for PE input, if read1 passed QC but read2 not, it will be written tounpaired1. Default is to discard it. (string [=]) πΈ--unpaired2β for PE input, if read2 passed QC but read1 not, it will be written tounpaired2. If--unpaired2is same as--unpaired1(default mode), both unpaired reads will be written to this same file. (string [=]) π--overlapped_outβ for each read pair, output the overlapped region if it has no any mismatched base. (string [=]) π«Ά--failed_outβ specify the file to store reads that cannot pass the filters. (string [=]) π-m,--mergeβ for paired-end input, merge each pair of reads into a single read if they are overlapped. The merged reads will be written to the file given by--merged_out, the unmerged reads will be written to the files specified by--out1and--out2. The merging mode is disabled by default. π₯--merged_outβ in the merging mode, specify the file name to store merged output, or specify--stdoutto stream the merged output (string [=]) π--include_unmergedβ in the merging mode, write the unmerged or unpaired reads to the file specified by--merge. Disabled by default. π-6,--phred64β indicate the input is using phred64 scoring (it'll be converted to phred33, so the output will still be phred33) β-z,--compressionβ compression level for gzip output (1 ~ 9). 1 is fastest, 9 is smallest, default is 4. (int [=4]) π--stdinβ input from STDIN. If the STDIN is interleaved paired-end FASTQ, please also add--interleaved_in. π--stdoutβ stream passing-filters reads to STDOUT. This option will result in interleaved FASTQ output for paired-end output. Disabled by default. π--interleaved_inβ indicate that<in1>is an interleaved FASTQ which contains both read1 and read2. Disabled by default. π§--reads_to_processβ specify how many reads/pairs to be processed. Default 0 means process all reads. (int [=0]) π--dont_overwriteβ don't overwrite existing files. Overwritting is allowed by default. π--fix_mgi_idβ the MGI FASTQ ID format is not compatible with many BAM operation tools, enable this option to fix it. β¨-V,--verboseβ output verbose log information (i.e. when every 1M reads are processed). π-A,--disable_adapter_trimmingβ adapter trimming is enabled by default. If this option is specified, adapter trimming is disabled π¦-a,--adapter_sequenceβ the adapter for read1. For SE data, if not specified, the adapter will be auto-detected. For PE data, this is used if R1/R2 are found not overlapped. (string [=auto]) πΈ--adapter_sequence_r2β the adapter for read2 (PE data only). This is used if R1/R2 are found not overlapped. If not specified, it will be the same as<adapter_sequence>(string [=auto]) π--adapter_fastaβ specify a FASTA file to trim both read1 and read2 (if PE) by all the sequences in this FASTA file (string [=]) π«Ά--detect_adapter_for_peβ by default, the auto-detection for adapter is for SE data input only, turn on this option to enable it for PE data. π-f,--trim_front1β trimming how many bases in front for read1, default is 0 (int [=0]) π₯-t,--trim_tail1β trimming how many bases in tail for read1, default is 0 (int [=0]) π-b,--max_len1β if read1 is longer thanmax_len1, then trim read1 at its tail to make it as long asmax_len1. Default 0 means no limitation (int [=0]) π-F,--trim_front2β trimming how many bases in front for read2. If it's not specified, it will follow read1's settings (int [=0]) β-T,--trim_tail2β trimming how many bases in tail for read2. If it's not specified, it will follow read1's settings (int [=0]) π-B,--max_len2β if read2 is longer thanmax_len2, then trim read2 at its tail to make it as long asmax_len2. Default 0 means no limitation. If it's not specified, it will follow read1's settings (int [=0]) π-D,--dedupβ enable deduplication to drop the duplicated reads/pairs π--dup_calc_accuracyβ accuracy level to calculate duplication (1~6), higher level uses more memory (1G, 2G, 4G, 8G, 16G, 24G). Default 1 for no-dedup mode, and 3 for dedup mode. (int [=0]) π§--dont_eval_duplicationβ don't evaluate duplication rate to save time and use less memory. π-g,--trim_poly_gβ force polyG tail trimming, by default trimming is automatically enabled for Illumina NextSeq/NovaSeq data π--poly_g_min_lenβ the minimum length to detect polyG in the read tail. 10 by default. (int [=10]) β¨-G,--disable_trim_poly_gβ disable polyG tail trimming, by default trimming is automatically enabled for Illumina NextSeq/NovaSeq data π-x,--trim_poly_xβ enable polyX trimming in 3' ends. π¦--poly_x_min_lenβ the minimum length to detect polyX in the read tail. 10 by default. (int [=10]) πΈ-5,--cut_frontβ move a sliding window from front (5') to tail, drop the bases in the window if its mean quality< threshold, stop otherwise. π-3,--cut_tailβ move a sliding window from tail (3') to front, drop the bases in the window if its mean quality< threshold, stop otherwise. π«Ά-r,--cut_rightβ move a sliding window from front to tail, if meet one window with mean quality< threshold, drop the bases in the window and the right part, and then stop. π-W,--cut_window_sizeβ the window size option shared bycut_front,cut_tailorcut_sliding. Range:1~1000, default: 4 (int [=4]) π₯-M,--cut_mean_qualityβ the mean quality requirement option shared bycut_front,cut_tailorcut_sliding. Range:1~36default: 20 (Q20) (int [=20]) π--cut_front_window_sizeβ the window size option ofcut_front, default tocut_window_sizeif not specified (int [=4]) π--cut_front_mean_qualityβ the mean quality requirement option forcut_front, default tocut_mean_qualityif not specified (int [=20]) β--cut_tail_window_sizeβ the window size option ofcut_tail, default tocut_window_sizeif not specified (int [=4]) π--cut_tail_mean_qualityβ the mean quality requirement option forcut_tail, default tocut_mean_qualityif not specified (int [=20]) π--cut_right_window_sizeβ the window size option ofcut_right, default tocut_window_sizeif not specified (int [=4]) π--cut_right_mean_qualityβ the mean quality requirement option forcut_right, default tocut_mean_qualityif not specified (int [=20]) π§-Q,--disable_quality_filteringβ quality filtering is enabled by default. If this option is specified, quality filtering is disabled π-q,--qualified_quality_phredβ the quality value that a base is qualified. Default 15 means phred quality>=Q15is qualified. (int [=15]) π-u,--unqualified_percent_limitβ how many percents of bases are allowed to be unqualified (0~100). Default 40 means 40% (int [=40]) β¨-n,--n_base_limitβ if one read's number of N base is>n_base_limit, then this read/pair is discarded. Default is 5 (int [=5]) π-e,--average_qualβ if one read's average quality score<avg_qual, then this read/pair is discarded. Default 0 means no requirement (int [=0]) π¦-L,--disable_length_filteringβ length filtering is enabled by default. If this option is specified, length filtering is disabled πΈ-l,--length_requiredβ reads shorter thanlength_requiredwill be discarded, default is 15. (int [=15]) π--length_limitβ reads longer thanlength_limitwill be discarded, default 0 means no limitation. (int [=0]) π«Ά-y,--low_complexity_filterβ enable low complexity filter. The complexity is defined as the percentage of base that is different from its next base (base[i] != base[i+1]). π-Y,--complexity_thresholdβ the threshold for low complexity filter (0~100). Default is 30, which means 30% complexity is required. (int [=30]) π₯--filter_by_index1β specify a file contains a list of barcodes of index1 to be filtered out, one barcode per line (string [=]) π--filter_by_index2β specify a file contains a list of barcodes of index2 to be filtered out, one barcode per line (string [=]) π--filter_by_index_thresholdβ the allowed difference of index barcode for index filtering, default 0 means completely identical. (int [=0]) β-c,--correctionβ enable base correction in overlapped regions (only for PE data), default is disabled π--overlap_len_requireβ the minimum length to detect overlapped region of PE reads. This will affect overlap analysis based PE merge, adapter trimming and correction. 30 by default. (int [=30]) π--overlap_diff_limitβ the maximum number of mismatched bases to detect overlapped region of PE reads. This will affect overlap analysis based PE merge, adapter trimming and correction. 5 by default. (int [=5]) π--overlap_diff_percent_limitβ the maximum percentage of mismatched bases to detect overlapped region of PE reads. This will affect overlap analysis based PE merge, adapter trimming and correction. Default 20 means 20%. (int [=20]) π§-U,--umiβ enable unique molecular identifier (UMI) preprocessing π--umi_locβ specify the location of UMI, can be (index1/index2/read1/read2/per_index/per_read, default is none (string [=]) π--umi_lenβ if the UMI is in read1/read2, its length should be provided (int [=0]) β¨
okay that's all the options in part 1 β part 2 is coming, don't go anywhere bestie π
--umi_prefixβ bestie, if you set this, an underline is gonna glue your prefix and your UMI together like they're holding hands π«Ά so likeprefix=UMI,UMI=AATTCG, and boom, the final result isUMI_AATTCG. No prefix by default. (string [=])--umi_skipβ if your UMI is chillin' in read1/read2, fastp can skip a few bases right after the UMI, no questions asked. Default is0, so it skips nothing unless you tell it to. (int [=0])-p,--overrepresentation_analysisβ turns on overrepresented sequence analysis. Basically fastp goes π at sequences that show up way too much.-P,--overrepresentation_samplingβ one in (--overrepresentation_sampling) reads gets computed for the overrepresentation analysis, and the valid range is1~10000. Smaller number = slower, bc obviously you're checking more reads. Default is20. (int [=20])-j,--jsonβ the name for your json format report file. (string [=fastp.json])-h,--htmlβ the name for your html format report file. (string [=fastp.html])-R,--report_titleβ the title of your report, and ngl you have to quote it with'or"or it'll be mad at you. Default is"fastp report". (string [=fastp report])-w,--threadβ how many worker threads you want doing the actual work. Default is3. (int [=3])-s,--splitβ splits your output by capping the total number of split files with this option (2~999). A sequential number prefix gets added to the output name, so you get stuff like0001.out.fq,0002.out.fq, and so on. It's disabled by default, so nothing splits unless you ask. (int [=0])-S,--split_by_linesβ splits your output by capping the number of lines per file with this option (>=1000). Same deal, a sequential number prefix gets added to the output name (0001.out.fq,0002.out.fq...). Disabled by default. (long [=0])-d,--split_prefix_digitsβ how many digits go into padding that sequential number, valid range is1~10, default is4, so your filenames get padded like0001.xxx. Set it to0to disable padding entirely. (int [=4])--cut_by_quality5β DEPRECATED, use--cut_frontinstead. She's retired, okay? π--cut_by_quality3β DEPRECATED, use--cut_tailinstead. Also retired, move on bestie.--cut_by_quality_aggressiveβ DEPRECATED, use--cut_rightinstead. Yeah she's gone too.--discard_unmergedβ DEPRECATED and it does literally nothing now, no cap. See the introduction for merging. It's giving ghost of options past π»-?,--helpβ prints this message. That's it, that's the whole job. π
π AUTHOR π
This manpage was written by Nilesh Patra for the Debian distribution and can be used for any other usage of the program. Shoutout to him, fr fr π
And that's the whole page, bestie!! This was fastp 0.23.0, dated October 2021, living in section FASTP(1) of your manual. Go read your reads and slay β¨π π¦
π¦ where this page comes from
- debian bookworm: fastp 0.23.2+dfsg-2+b1 Β· MIT
- debian trixie: fastp 0.24.0+dfsg-1 Β· MIT
- ubuntu noble: fastp 0.23.4+dfsg-1 Β· MIT
- ubuntu questing: fastp 0.24.0+dfsg-1
- ubuntu resolute: fastp 1.0.1+dfsg-1 Β· MIT
- ubuntu stonking: fastp 1.0.1+dfsg-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms