sh 修剪修剪#fastq
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 修剪修剪#fastq相关的知识,希望对你有一定的参考价值。
function nextera_trim() {
fq=${1/-1.fq.gz/}
fq1_in=${fq}-1.fq.gz
fq2_in=${fq}-2.fq.gz
fq1_out=${fq}-trim-1.fq.gz
fq2_out=${fq}-trim-2.fq.gz
fq1_unpaired=${fq}-unpaired-1.fq.gz
fq2_unpaired=${fq}-unpaired-2.fq.gz
trimmomatic PE -threads 4 ${fq1_in} ${fq2_in} ${fq1_out} ${fq1_unpaired} ${fq2_out} ${fq2_unpaired} ILLUMINACLIP:/usr/local/share/trimmomatic/adapters/NexteraPE-PE.fa:2:80:10 MINLEN:45
shasum ${fq1_in} ${fq2_in} ${fq1_out} ${fq2_out} >> shasums_out.txt
rm ${fq1_unpaired} ${fq2_unpaired}
fastqc ${fq1_out} ${fq2_out} &
}
# Alt. notation
function nextera_trim() {
fq=${1/_R1_001.fastq.gz/}
fq1_in=${fq}_R1_001.fastq.gz
fq2_in=${fq}_R2_001.fastq.gz
fq1_out=${fq}-trim-1.fq.gz
fq2_out=${fq}-trim-2.fq.gz
fq1_unpaired=${fq}-unpaired-1.fq.gz
fq2_unpaired=${fq}-unpaired-2.fq.gz
trimmomatic PE -threads 4 ${fq1_in} ${fq2_in} ${fq1_out} ${fq1_unpaired} ${fq2_out} ${fq2_unpaired} ILLUMINACLIP:/exports/people/andersenlab/dec211/.linuxbrew/share/trimmomatic/adapters/NexteraPE-PE.fa:2:80:10 MINLEN:45
shasum ${fq1_in} ${fq2_in} ${fq1_out} ${fq2_out} >> shasums_out.txt
rm ${fq1_unpaired} ${fq2_unpaired}
fastqc ${fq1_out} ${fq2_out} &
}
for i in `ls UChicago3*1.fq.gz | grep -v 'trim'`; do
nextera_trim ${i}
done;
以上是关于sh 修剪修剪#fastq的主要内容,如果未能解决你的问题,请参考以下文章
sh 清理码头修剪aufs
CAD中修剪的快捷键是啥?
Discord.JS 修剪命令还修剪用户引脚
LQ0026 修剪灌木数学
2022蓝桥杯省赛——修剪灌木
中望3D2022 修剪曲线到面