forked from arinbjornk/BiobankRead
-
Notifications
You must be signed in to change notification settings - Fork 5
/
test-BBr-script.sh
75 lines (58 loc) · 1.63 KB
/
test-BBr-script.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
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
#PBS -l walltime=06:00:00
#PBS -l select=1:ncpus=4:mem=64gb
#PBS -q med-bio
#PBS -k oe
#PBS -N BBR
$WORK=/work/ds711
# Where the data is store'
CSV_path=$WORK/UkBiobank/Application_236/R4528/ukb4528.csv
HTML_path=$WORK/UkBiobank/Application_236/R4528/ukb4528.html
TSV_path=$WORK/UkBiobank/HES_data/ukb_HES_236.tsv
# Variables and conditions
varList=$WORK/BBR/vars_test.txt ##("'Age assessment'" "'BMI'") ###$WORK/BBR/vars_test.txt
filterList=$WORK/BBR/filters_test.txt #("Age assessment>50" "Age assessment<70" "BMI>=23" "BMI<=30")
HES_codes=$WORK/BBR/ICD10_codes.txt
Death_codes=$HES_codes
SR_things=$WORK/BBR/SR_disease.txt
# Output
outname=test_hpc
outname_HES=test_hpc_HES
outname_death=test_hpc_dead
outname_SR=test_hpc_SR
# Construct script path and arguments
cp $WORK/BBR/* $TMPDIR
module load anaconda3/personal
source activate py36
python extract_variables.py \
--csv $CSV_path \
--html $HTML_path \
--vars $varList \
#--filter $filterList \
#--remove_outliers 'True' \
#--baseline_only 'False' \
--out $outname &
python HES_extract.py \
--csv $CSV_path \
--html $HTML_path \
--tsv $TSV_path \
--codes $HES_codes \
--codeType 'ICD10' \
--dateTpe 'epistart' \
##--firstvisit 'True' \
##--baseline 'True' \
--out $outname_HES &
python extract_death.py \
--csv $CSV_path \
--html $HTML_path \
--codes $Death_codes \
##--primary 'True' \
##--secondary 'False' \
--out $outname_death &
python extract_SR.py \
--csv $CSV_path \
--html $HTML_path \
--disease $SR_things \
--SRcancer 'True' \
--out $outname_SR &
cp *.csv $PBS_O_WORKDIR