Skip to content
Snippets Groups Projects
Commit 5332c4bf authored by Brandi Cantarel's avatar Brandi Cantarel
Browse files

update trim for se

parent 16061b5a
Branches
Tags
No related merge requests found
......@@ -31,7 +31,6 @@ fi
fqs=''
i=0
numfq=$#
while [[ $i -le $numfq ]]
do
fqs="$fqs $1"
......@@ -51,17 +50,23 @@ then
fi
numfq=${#fqs[@]}
copts='-q 25 --illumina --gzip --length 35'
if [[ $numfq == 2 ]]
then
copts="$copts --paired"
fi
source /etc/profile.d/modules.sh
module load trimgalore/0.6.4 cutadapt/2.5
if [ $numfq > 1 ]
trim_galore $copts ${fqs}
files=`find ./ -name "*_val_1.fq.gz"`
if [[ -n $files ]]
then
trim_galore --paired -q 25 --illumina --gzip --length 35 ${fqs}
mv *_val_1.fq.gz ${pair_id}.trim.R1.fastq.gz
mv *_val_2.fq.gz ${pair_id}.trim.R2.fastq.gz
else
trim_galore -q 25 --illumina --gzip --length 35 ${fqs}
mv *_trimmed.fq.gz ${pair_id}.trim.R1.fastq.gz
cp ${pair_id}.trim.R1.fastq.gz ${pair_id}.trim.R2.fastq.gz
fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment