1
1
#! /bin/sh
2
- # SBATCH -J Job_scrna
2
+ # SBATCH -J Microbeannotator
3
3
# SBATCH -p skylake
4
4
# SBATCH -N 1
5
- # SBATCH -n 1
5
+ # SBATCH -n 12
6
6
# SBATCH -A a272
7
- # SBATCH -t 00:30 :00
7
+ # SBATCH -t 11:00 :00
8
8
# SBATCH -o ./%N.%x.out
9
9
# SBATCH -e ./%N.%x.err
10
10
11
- # This script needs to be started from
12
- # the run directory
11
+ # This script needs to be started from the run directory
13
12
14
13
# Load the modules and start the virtual environment
15
14
module load userspace/all
16
15
module load python3/3.6.3
17
16
module load singularity/3.5.1
18
17
19
- # Create a snakemake virtual environment if necessary
20
- if [ ! -d snakemake_virtenv/ ]
21
- then
22
- bash 04_Workflow/create_snakemake_virtualenv.sh
23
- fi
24
-
25
- source /scratch/tvannier/sc-rnaseq/snakemake_virtenv/bin/activate
26
-
27
- # export PATH=/scratch/tvannier/sc-rnaseq/snakemake_virtenv/condabin:$PATH
28
- # export LD_LIBRARY_PATH=/scratch/tvannier/sc-rnaseq/snakemake_virtenv/condabin:$LD_LIBRARY_PATH
29
-
30
18
pip install snakemake==6.3.0
31
- # pip install manager
32
19
pip install pandas
33
- # pip install mamba
34
-
35
- # move to the working directory
36
- # cd /scratch/$SLURM_JOB_USER/sc-rnaseq/
37
-
38
20
39
21
# ================================================
40
22
# Run the workflow
@@ -46,7 +28,7 @@ snakemake --snakefile Snakefile \
46
28
--use-singularity \
47
29
--use-conda \
48
30
--conda-frontend conda \
49
- --singularity-args=" -B /scratch/$SLURM_JOB_USER /sc-rnaseq /" \
31
+ --singularity-args=" -B /scratch/$SLURM_JOB_USER /inmed_dechevigny_scrnaseq /" \
50
32
--jobs 1 \
51
33
--latency-wait 20 \
52
34
--max-jobs-per-second 5 \
@@ -61,7 +43,3 @@ snakemake --snakefile Snakefile \
61
43
--mem-per-cpu {cluster.mem-per-cpu} \
62
44
--output {cluster.output} \
63
45
--error {cluster.error}' \
64
-
65
- deactivate
66
-
67
-
0 commit comments