Debian Codegraph @

pipelines/covid/processCoronaWrapper.sh

raw symbols SCIP
1 #!/bin/bash
2
3 ## Written by Brian Bushnell
4 ## Last modified April 11, 2020
5 ## Description: Outer wrapper for processing a bunch of Covid samples in a directory.
6 ## This is just a template that needs to be modified before use, according to the input file names.
7
8 echo "This template must be modifed before use according to your file names."
9 exit
10
11 ## Optionally, get rid of old files first, if the pipeline is being rerun.
12 rm *.sam.gz *.bam *.bai *.txt *_genome.fa *_adapters.fa *.vcf *.vcf.gz
13
14 ## Generate quality-score calibration matrices.
15 ## This only needs to be run on one sample.
16 sh ./recal.sh Sample1
17
18 ## Add a line like this for each interleaved PE file named, for example, Sample1.fq.gz
19 ## Alternately you could put some kind of loop here, depending on your naming convention.
20 sh processCorona.sh Sample1
21 sh processCorona.sh Sample2
22 ## etc.
23
24 ## Summarize the output if there are multiple libraries (optional).
25 sh makeSummary.sh 1>makeSummary.o 2>&1