Skip to content

Commit 9921346

Browse files
committed
fix: tab format and linting
1 parent f033b47 commit 9921346

File tree

1 file changed

+63
-50
lines changed
  • docs/Cluster_basics/Submitting_jobs

1 file changed

+63
-50
lines changed

docs/Cluster_basics/Submitting_jobs/Qmap.md

Lines changed: 63 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,81 +11,94 @@ How to submit jobs to the Cluster using **Qmap**.
1111

1212
### 1. Prepare .qmap file (example)
1313

14-
=== "IRB cluster"
15-
14+
=== "IRB cluster"
15+
1616
```bash
1717
[params]
18-
memory=50G
19-
20-
[pre]
21-
ml load anaconda3
22-
conda activate sciclone-env
23-
24-
[jobs]
25-
Rscript run.R ../data/vafs.dat bmm 3 ./results.beta.3
26-
Rscript run.R ../data/vafs.dat gaussian.bmm 3 ./results.gaussian.3
27-
Rscript run.R ../data/vafs.dat binomial.bmm 3 ./results.binomial.3
28-
```
29-
=== "BBG cluster"
30-
18+
memory=50G
19+
20+
[pre]
21+
ml load anaconda3
22+
conda activate sciclone-env
23+
24+
[jobs]
25+
Rscript run.R ../data/vafs.dat bmm 3 ./results.beta.3
26+
Rscript run.R ../data/vafs.dat gaussian.bmm 3 ./results.gaussian.3
27+
Rscript run.R ../data/vafs.dat binomial.bmm 3 ./results.binomial.3
28+
```
29+
30+
=== "BBG cluster"
31+
3132
```bash
3233
[params]
33-
memory=50G
34-
35-
[pre]
36-
. "/home/$USER/miniconda3/etc/profile.d/conda.sh"
37-
conda activate sciclone-env
38-
39-
[jobs]
40-
Rscript run.R ../data/vafs.dat bmm 3 ./results.beta.3
41-
Rscript run.R ../data/vafs.dat gaussian.bmm 3 ./results.gaussian.3
42-
Rscript run.R ../data/vafs.dat binomial.bmm 3 ./results.binomial.3
43-
```
34+
memory=50G
35+
36+
[pre]
37+
. "/home/$USER/miniconda3/etc/profile.d/conda.sh"
38+
conda activate sciclone-env
39+
40+
[jobs]
41+
Rscript run.R ../data/vafs.dat bmm 3 ./results.beta.3
42+
Rscript run.R ../data/vafs.dat gaussian.bmm 3 ./results.gaussian.3
43+
Rscript run.R ../data/vafs.dat binomial.bmm 3 ./results.binomial.3
44+
```
45+
46+
The only difference is how you load Conda. On the IRB cluster, you can use either of the following options:
47+
48+
1) Use the pre-installed conda module (`ml load anaconda3`), or
49+
50+
2) If you use mamba, load it the same way you do with conda on the BBG cluster:
51+
52+
`. "/home/$USER/miniforge3/etc/profile.d/conda.sh"`
53+
54+
For micromamba:
55+
56+
`eval "$(micromamba shell hook --shell=bash)"`
4457

4558
### 2. Run "qmap submit" from the login node
4659

47-
=== "IRB cluster"
48-
60+
=== "IRB cluster"
61+
4962
```bash
5063
interactive
5164
spack load py-qmap
5265
qmap submit filename.qmap
53-
```
54-
=== "BBG cluster"
55-
56-
```bash
57-
qmap submit filename.qmap
58-
```
59-
66+
```
6067

68+
=== "BBG cluster"
6169

62-
## Aditional info
70+
```bash
71+
qmap submit filename.qmap
72+
```
73+
74+
## Additional info
6375

6476
### Extra parameters
6577

6678
If you need to provide any [extra parameter](https://qmap.readthedocs.io/en/latest/concepts.html#parameters) directly to
6779
SLURM, you can do it defining a new profile.config file. E.g.
6880

69-
=== "IRB cluster"
70-
71-
```toml
81+
=== "IRB cluster"
82+
83+
```bash
7284
executor = slurm
7385

7486
[params]
75-
extra = -G 1
76-
```
77-
=== "BBG cluster"
87+
extra = -G 1
88+
```
7889

79-
```toml
90+
=== "BBG cluster"
91+
92+
```bash
8093
executor = slurm
8194

82-
[params]
83-
extra = -p bigmem
84-
```
85-
86-
87-
By default, the queue used in the bbgcluster is `bigrun`.
88-
For qmap runs using gpus, `-G 1`
95+
[params]
96+
extra = -p bigmem
97+
```
98+
99+
By default, the queue used in the BBG cluster is `bigrun`.
100+
101+
For Qmap runs using GPUs, use `-G 1`.
89102

90103
## Reference
91104

0 commit comments

Comments
 (0)