-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.proj_aliases.sh
executable file
·23 lines (19 loc) · 1.03 KB
/
.proj_aliases.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Bash aliases used in this project.
alias speclet_srun_tunnel="srunp --pty -p interactive --mem 16G -c 2 -t 0-12:00 --tunnel 7012:7012 /bin/bash"
alias speclet_srun="srunp --pty -p interactive --mem 16G -c 2 -t 0-12:00 /bin/bash"
alias speclet_env="conda activate speclet && bash .proj_aliases.sh"
alias speclet_jl="jupyter lab --port=7012 --browser='none'"
alias speclet_sshlab="ssh -N -L 7012:127.0.0.1:7012"
alias speclet_smk_env="conda activate speclet_smk && bash .proj_aliases.sh"
alias smk_fit="snakemake --snakefile pipelines/010_010_model-fitting-pipeline.smk"
alias smk_sbc="snakemake --snakefile pipelines/012_010_simulation-based-calibration.smk"
alias smk_data="snakemake --snakefile data/download-data.smk"
alias smk_munge="snakemake --snakefile munge/munge.smk"
# Misc.
alias tmd="jupyter nbconvert --to markdown"
alias nbexec="jupyter nbconvert --to notebook --inplace --execute"
alias pcr="pre-commit run"
# Testing
alias pyt="python3 -m pytest"
alias pyt2="python3 -m pytest --disable-warnings --cov=analysis tests"