-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun.sh
22 lines (16 loc) · 1.26 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
## If environment.yaml has been changed, the existing environment needs to be removed
## in order to re-generate the environment using:
#source ~/.bashrc; conda env remove -n workflow_lied_egypt_genome
mkdir -p log
echo "GENERATING AND ACTIVATING BIOCONDA WORKFLOW ENVIRONMENT..."
export PATH="$HOME/miniconda3/bin:$PATH"
if [ ! -d $HOME/miniconda3/envs/workflow_lied_egypt_genome ]; then
conda env create -n workflow_lied_egypt_genome --file environment.yaml
fi
source activate workflow_lied_egypt_genome
echo "RUNNING SNAKEMAKE WORKFLOW..."
snakemake -n -p -k -j 8 --rerun-incomplete --use-conda --jobname "{jobid}.{rulename}.sh" --cluster "sbatch --mem 32G --partition=shortterm,longterm,debug --time 0-12:00:00 -c 16 -o log/%j.{rule}.log" comparison_repeatmasker
#snakemake -n --reason --rerun-incomplete -k -j 8 --resources io=4 --use-conda --jobname "{jobid}.{rulename}.sh" --cluster "sbatch --mem 90G --partition=shortterm,longterm --time 3-00:00:00 -c 16 -o log/%j.{rule}.log" --printshellcmds # dotplots_scaffold_vs_chromosomes_all results/repeatmasker_comparison.txt compute_content_and_assembly_numbers comparison_repeatmasker dotplots_scaffold_vs_chromosomes_all
source deactivate
conda list -n workflow_lied_egypt_genome --export > environment_versions.yaml