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

filter option trimgalore

parent 9b7a55bd
No related merge requests found
......@@ -10,12 +10,13 @@ usage() {
exit 1
}
OPTIND=1 # Reset OPTIND
while getopts :a:b:p:h opt
while getopts :a:b:p:fh opt
do
case $opt in
a) fq1=$OPTARG;;
b) fq2=$OPTARG;;
p) pair_id=$OPTARG;;
f) filter=1;;
h) usage;;
esac
done
......@@ -42,3 +43,8 @@ else
mv ${r1base}_trimmed.fq.gz ${pair_id}.trim.R1.fastq.gz
cp ${pair_id}.trim.R1.fastq.gz ${pair_id}.trim.R2.fastq.gz
fi
if [[ $filter == 1 ]]
then
perl $baseDir/parse_trimreport.pl ${pair_id}.trimreport.txt *trimming_report.txt
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