-
Notifications
You must be signed in to change notification settings - Fork 3
/
run_dabseq_singularity.wynton.sh
58 lines (44 loc) · 1.83 KB
/
run_dabseq_singularity.wynton.sh
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
52
53
54
55
56
57
#!/bin/bash
# script for running the complete dabseq pipeline in a singularity container on the wynton cluster
# Ben Demaree 2020
# base input/output directory
BASE_DIR=/wynton/home/abate/bdemaree/dabseq/cohorts
# cohort name and directory
COHORT_NAME=cohort1
COHORT_DIR=$BASE_DIR/$COHORT_NAME
# sample names
SAMPLE_NAME_1=timepoint1
SAMPLE_NAME_2=timepoint2
# cfg file location
CFG_FILE_DIR=/wynton/home/abate/bdemaree/code/DAb-seq/cfg
CFG_FILE_NAME=dabseq.docker.cfg
# singularity container to run
CONTAINER=/wynton/home/abate/bdemaree/singularity/dabseq.human.sif
# misc
SLACK_TOKEN="$(cat /wynton/home/abate/bdemaree/.slack_token)"
### BARCODING ###
# note - to run using local (not GitHub) code, add the following argument to the docker call:
#-v /wynton/home/abate/bdemaree/code/DAb-seq/:/dabseq/pipeline/DAb-seq/ \
singularity run \
--bind $BASE_DIR/$COHORT_NAME/$SAMPLE_NAME_1/:/input/$COHORT_NAME/$SAMPLE_NAME_1/,\
$CFG_FILE_DIR/$CFG_FILE_NAME:/dabseq/config/$CFG_FILE_NAME,\
/wynton/home/abate/bdemaree/code/DAb-seq/:/dabseq/pipeline/DAb-seq/ \
$CONTAINER $COHORT_NAME barcode /dabseq/config/$CFG_FILE_NAME \
--sample-name $SAMPLE_NAME_1 \
--chem V1 \
--slack-token $SLACK_TOKEN
singularity run \
--bind $BASE_DIR/$COHORT_NAME/$SAMPLE_NAME_2/:/input/$COHORT_NAME/$SAMPLE_NAME_2/,\
$CFG_FILE_DIR/$CFG_FILE_NAME:/dabseq/config/$CFG_FILE_NAME,\
/wynton/home/abate/bdemaree/code/DAb-seq/:/dabseq/pipeline/DAb-seq/ \
$CONTAINER $COHORT_NAME barcode /dabseq/config/$CFG_FILE_NAME \
--sample-name $SAMPLE_NAME_2 \
--chem V1 \
--slack-token $SLACK_TOKEN
### GENOTYPING ###
singularity run \
--bind $COHORT_DIR/:/input/$COHORT_NAME/,\
$CFG_FILE_DIR/$CFG_FILE_NAME:/dabseq/config/$CFG_FILE_NAME,\
/wynton/home/abate/bdemaree/code/DAb-seq/:/dabseq/pipeline/DAb-seq/ \
$CONTAINER $COHORT_NAME genotype /dabseq/config/$CFG_FILE_NAME \
--slack-token $SLACK_TOKEN