Browse Source

......

master
Zhihui 5 years ago
parent
commit
8799fe690a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tasks/fastp.wdl

+ 3
- 3
tasks/fastp.wdl View File

command <<< command <<<
mkdir -p /cromwell_root/tmp/fastp/ mkdir -p /cromwell_root/tmp/fastp/
##1.Disable_quality_filtering ##1.Disable_quality_filtering
if [ ${disable_quality_filtering} -gt 0 ]
if [ "${disable_quality_filtering}" == 0 ]
then then
cp ${read1} /cromwell_root/tmp/fastp/{sample_id}_R1.fastq.tmp1.gz cp ${read1} /cromwell_root/tmp/fastp/{sample_id}_R1.fastq.tmp1.gz
cp ${read2} /cromwell_root/tmp/fastp/{sample_id}_R2.fastq.tmp1.gz cp ${read2} /cromwell_root/tmp/fastp/{sample_id}_R2.fastq.tmp1.gz
fi fi


##2.UMI ##2.UMI
if [ ${UMI} -gt 0 ]
if [ "${UMI}" == 0 ]
then then
cp /cromwell_root/tmp/fastp/${sample_id}_R1.fastq.tmp1.gz /cromwell_root/tmp/fastp/${sample_id}_R1.fastq.tmp2.gz cp /cromwell_root/tmp/fastp/${sample_id}_R1.fastq.tmp1.gz /cromwell_root/tmp/fastp/${sample_id}_R1.fastq.tmp2.gz
cp /cromwell_root/tmp/fastp/${sample_id}_R2.fastq.tmp1.gz /cromwell_root/tmp/fastp/${sample_id}_R2.fastq.tmp2.gz cp /cromwell_root/tmp/fastp/${sample_id}_R2.fastq.tmp1.gz /cromwell_root/tmp/fastp/${sample_id}_R2.fastq.tmp2.gz
fi fi


##3.Trim ##3.Trim
if [ ${disable_adapter_trimming} -gt 0 ]
if [ "${disable_adapter_trimming}" == 0 ]
then then
fastp --thread 4 -l ${length_required} -q ${qualified_quality_phred} -u ${length_required1} / fastp --thread 4 -l ${length_required} -q ${qualified_quality_phred} -u ${length_required1} /
--adapter_sequence ${adapter_sequence} --adapter_sequence_r2 ${adapter_sequence_r2} / --adapter_sequence ${adapter_sequence} --adapter_sequence_r2 ${adapter_sequence_r2} /

Loading…
Cancel
Save