fastp和flash拼接雙末端測(cè)序數(shù)據(jù)比較

版本: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ù)說(shuō)明:

-m開(kāi)啟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ù)說(shuō)明:

-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(mén),R2堿基為A(T),此時(shí)軟件不好區(qū)分,但是結(jié)合周?chē)鷫A基的測(cè)序質(zhì)量,R1的247位的堿基靠近末端,相鄰堿基測(cè)序質(zhì)量較差,而R1的199位靠近中間,相鄰堿基測(cè)序質(zhì)量穩(wěn)定,因此判斷247位處應(yīng)該為A。即flash拼接的較好。
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容