-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathrun_example.sh
64 lines (53 loc) · 1.57 KB
/
run_example.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
#!/bin/bash
### Job name
#SBATCH -J proj_ex
### Set logs, remember to create logs dir
#SBATCH -e logs/error.%j.%x.txt
#SBATCH -o logs/output.%j.%x.txt
### Time to execute, e. g. 15 min 30 sec
#SBATCH -t 96:00:00
### Job memory needs per node, e. g. 1 GB
#SBATCH --mem=180G
### OpenMP threads
#SBATCH --cpus-per-task=24
################################################################
# PATH
if [ -r /usr/local_host/etc/bashrc ]; then
. /usr/local_host/etc/bashrc
fi
export PATH=/usr/bin:$PATH
export PATH=/usr/local_host/bin:$PATH
################################################################
module load scRNA
#source ~/miniconda3/bin/activate
#conda activate Seurat3
################################################################
# could also define it here instead of taking it as an arg
proj_name="$1"
# data dir (where your results will be saved)
data_path="/data/EXAMPLE/exp/scRNA/some_project/scrna_seurat_pipeline_results"
data_path=`pwd`
date
## 50 cores run, future memory
mkdir -p ${data_path}/${proj_name}
ln -s ${data_path}/conf/config_${proj_name}.R ${data_path}/${proj_name}
Rscript data_factory.R \
-n 24 \
--MaxMemMega=180000 \
-z "lz4" \
-c "./conf/config_${proj_name}.R" \
-s "${data_path}/${proj_name}/save" \
-e "${data_path}/${proj_name}/charts" \
-a seurat_clusters \
--allinone=TRUE \
--nFeatureRNAfloor=400 \
--nCountRNAfloor=0 \
--nCountRNAceiling=40000 \
--pct_mitoceiling=20 \
--pct_riboceiling=100 \
--countmatrixformat='10X' \
--dims4Integrate="1:30" \
--Dims4FindNeighbors="1:50" \
--harmony_dim="1:50" \
-r 0.5
date