-
Notifications
You must be signed in to change notification settings - Fork 10
/
trim_test.pbs
executable file
·51 lines (43 loc) · 1.41 KB
/
trim_test.pbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
#SBATCH -o splicing.%j.out
#SBATCH -e splicing.%j.err
#SBATCH --mail-type=END,FAIL
#SBATCH [email protected]
#SBATCH --mem=20000
#SBATCH --cpus-per-task=4
#SBATCH -p compute
#SBATCH -q batch
#SBATCH -t 1-01:00:00
cd $SLURM_SUBMIT_DIR
date;hostname;pwd
module load singularity
curl -fsSL get.nextflow.io | bash
# get the ful length read from config
full_readLen=$(awk '$1=="readlength"{print $3}' NF_splicing_pipeline.config)
echo "read length"
echo ${full_readLen}
# get increment
inc=${increment}
echo "increment"
echo ${inc}
# get new read lengths to test
readLen_1=$(( ${full_readLen} - $(( ${inc} * 1 )) ))
readLen_2=$(( ${full_readLen} - $(( ${inc} * 2 )) ))
readLen_3=$(( ${full_readLen} - $(( ${inc} * 3 )) ))
readLen_4=$(( ${full_readLen} - $(( ${inc} * 4 )) ))
# make list of new read lengths
readlengths="${readLen_1} ${readLen_2} ${readLen_3} ${readLen_4}"
echo "read lengths to test"
echo ${readlengths}
# run testing on all read lengths specified
for readlength in $readlengths; do
echo $readlength
./nextflow run /projects/anczukow-lab/splicing_pipeline/splicing-pipelines-nf/main.nf \
--readlength $readlength \
--star_index /projects/anczukow-lab/reference_genomes/human/Gencode/star_overhangs/star_${readlength} \
--outdir results_${readlength} \
--test \
-config NF_splicing_pipeline.config \
-profile base,sumner \
--max_memory 200.GB --max_cpus 30 -resume
done