Pre-Trimming With Cutadapt when using the STAR Mapper
Recommended pre-trimming for DRAGEN v4.5 (DRAGEN-STAR workflow)
1. Install Cutadapt
# installation
conda create -n cutadapt -c conda-forge -c bioconda cutadapt
# Activate it
conda activate cutadapt
# verify installation
cutadapt --version2. Set up the input + output paths and run the cutadapt command
r1="/path/to/r1.fastq.gz"
r2="/path/to/r2.fastq.gz"
sample_id="sample_name"
cutadapt \
--cores 8 \
--no-indels \
--pair-filter=any \
-e 0 \
-O 12 \
-U 1 \
-G AGAGTGAATGGG \
-G TCAACGCAGAGT \
-A AAAAAAAAAAAA \
-A "GGGGGGGGGGGGX;o=6;e=0.15" \
-m 1:20 \
-o "${sample_id}_R1.pretrimmed.fastq.gz" \
-p "${sample_id}_R2.pretrimmed.fastq.gz" \
"$r1" "$r2"Parameter Details
Last updated
Was this helpful?

