-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (23 loc) · 975 Bytes
/
Makefile
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
SFILE = snakefile.py
all:
snakemake -np --snakefile $(SFILE) --rerun-incomplete --rerun-triggers mtime
touch:
snakemake -p --snakefile $(SFILE) --touch --rerun-incomplete -c4
split_fst:
python split_fasta.py --help
runsnakemake:
snakemake -p -c4 --snakefile $(SFILE) --rerun-triggers mtime
unlockdir:
snakemake -p --unlock --snakefile $(SFILE)
clustersubmit:
mkdir -p snakemake_output
rm snakemake_output/snakemake_workflow.e
touch snakemake_output/snakemake_workflow.e
sbatch clustersubmit.sh
tail -f snakemake_output/snakemake_workflow.e
parse_snake:
python parse_snakemake_output.py
view:
python parse_snakemake_output.py snakemake_output/snakemake_workflow.e | fzf --height=100% --ansi --preview "cat {}.e <(echo '------------ std.out ------------') {}.o" | xargs -I {} less -S {}.e {}.o
scancel:
squeue --me | grep -v NODELIST | fzf -m --bind ctrl-a:select-all,ctrl-d:deselect-all,ctrl-t:toggle-all | awk '{print $$1}' | xargs scancel