forked from epigen/microtest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_microtest.sh
More file actions
41 lines (31 loc) · 1.02 KB
/
run_microtest.sh
File metadata and controls
41 lines (31 loc) · 1.02 KB
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
#!/bin/bash
#SBATCH --job-name='{JOBNAME}'
#SBATCH --output='{LOGFILE}'
#SBATCH --mem='{MEM}'
#SBATCH --cpus-per-task='{CORES}'
#SBATCH --time='{TIME}'
#SBATCH --partition='{PARTITION}'
#SBATCH -m block
#SBATCH --ntasks=1
echo 'Compute node:' `hostname`
echo 'Start time:' `date +'%Y-%m-%d %T'`
# Create (isolated) virtual environment
virtualenv microtestenv --no-site-packages
cd microtestenv
# Make sure there's nothing in your PYTHONPATH
export PYTHONPATH=
# "Source" to activate the environment
# this is equivalent to the "source" command
# but that cannot be executed inside a job/process or
# would spawn another shell
. ./bin/activate
# install the stack
pip install https://github.com/epigen/looper/zipball/master
pip install https://github.com/epigen/pypiper/zipball/master
# clone pipelines
git clone https://github.com/epigen/open_pipelines
# clone microtest
git clone https://github.com/epigen/microtest
# run
looper run --file-checks microtest/config/microtest_config.tutorial.yaml
echo 'End time:' `date +'%Y-%m-%d %T'`