版本:0.20.1
fastp之前的版本不支持拼接糙置,
-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 --out1 and --out2. The merging mode is disabled by default.
--merged_out in the merging mode, specify the file name to store merged output, or specify --stdout to 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.
-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])
本次測(cè)試的數(shù)據(jù)為PE250撩匕,共85,109對(duì)reads蜓堕。
mkdir -p fastp
mkdir -p SE
ls *1.fastq.gz|while read id;
do
fastp -m -c --overlap_len_require 10 \
--overlap_diff_percent_limit 25 \
-i ${id%_*}_R1.fastq.gz -I ${id%_*}_R2.fastq.gz \
--merged_out ./SE/${id%_*}.clean.fq.gz \
--out1 ./SE/${id%_*}.unmerge1.fq.gz --out2 ./SE/${id%_*}.unmerge2.fq.gz \
-j ./fastp/${id%_*}.json -h ./fastp/${id%_*}.html;
done
主要參數(shù)說明:
-m開啟merge模式蜂嗽;
-c 校準(zhǔn)重疊區(qū)域內(nèi)的堿基苗膝;
--overlap_len_require 設(shè)置重疊區(qū)最小長(zhǎng)度;
--overlap_diff_limit 設(shè)置重疊區(qū)域的最大不匹配堿基數(shù)
--overlap_diff_percent_limit 設(shè)置重疊區(qū)域最大不匹配堿基數(shù)百分比
fastp拼接得到62,925條tag植旧,未拼接成功21,543對(duì)reads辱揭。
mkdir -p flash
ls *1.fastq.gz |while read id;
do
flash ${id%_*}_R1.fastq.gz -O ${id%_*}_R2.fastq.gz \
-m 10 -M 100 -x 0.25 -z -o ${id%_*} -d ./flash
done
主要參數(shù)說明:
-m 拼接時(shí)overlap區(qū)的最小長(zhǎng)度閾值,默認(rèn)10bp病附;
-M 拼接時(shí)overlap區(qū)的最大長(zhǎng)度閾值问窃,默認(rèn)65bp;
-x 拼接時(shí)overlap區(qū)允許的最大堿基錯(cuò)配比率(最大堿基錯(cuò)配數(shù)目/overlap區(qū)長(zhǎng)度)完沪,默認(rèn)為0.25域庇;
-z 壓縮輸出文件;
-d 輸出文件存放目錄覆积,默認(rèn)當(dāng)前工作目錄
flash拼接得到78,054條tag听皿,未拼接成功7,055對(duì)reads。
挑選一條tag比對(duì)拼接質(zhì)量
image.png
fastp和flash拼接都得到一條445 bp的tag宽档,唯一不同的是尉姨,在tag的257位,二者拼接的堿基不一樣雌贱,查看原始序列
R1
R1.png
R2
R2.png
能看到247位兩者的測(cè)序質(zhì)量都是70(F)啊送,但R1堿基為T偿短,R2堿基為A(T),此時(shí)軟件不好區(qū)分馋没,但是結(jié)合周圍堿基的測(cè)序質(zhì)量昔逗,R1的247位的堿基靠近末端,相鄰堿基測(cè)序質(zhì)量較差篷朵,而R1的199位靠近中間勾怒,相鄰堿基測(cè)序質(zhì)量穩(wěn)定,因此判斷247位處應(yīng)該為A声旺。即flash拼接的較好笔链。