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

trim galore bug with

parent 58dc899f
No related merge requests found
...@@ -30,7 +30,7 @@ if [[ -z $pair_id ]]; then ...@@ -30,7 +30,7 @@ if [[ -z $pair_id ]]; then
fi fi
fqs='' fqs=''
i=0 i=0
numfq=$# numfq=${#fqs[@]}
while [[ $i -le $numfq ]] while [[ $i -le $numfq ]]
do do
fqs="$fqs $1" fqs="$fqs $1"
...@@ -51,14 +51,13 @@ fi ...@@ -51,14 +51,13 @@ fi
numfq=${#fqs[@]} numfq=${#fqs[@]}
copts='-q 25 --illumina --gzip --length 35' copts='-q 25 --illumina --gzip --length 35'
if [[ $numfq == 2 ]] if [[ $numfq == 1 ]]
then then
copts="$copts --paired" copts="$copts --paired"
fi fi
source /etc/profile.d/modules.sh source /etc/profile.d/modules.sh
module load trimgalore/0.6.4 cutadapt/2.5 module load trimgalore/0.6.4 cutadapt/2.5
trim_galore $copts ${fqs} trim_galore $copts ${fqs}
files=`find ./ -name "*_val_1.fq.gz"` files=`find ./ -name "*_val_1.fq.gz"`
......
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