Skip to content

Commit

Permalink
profile: add virusseq profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Katherine Eaton committed Feb 22, 2023
1 parent 7e586d1 commit 49e6f59
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
28 changes: 28 additions & 0 deletions profiles/virusseq-hpc/builds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# -----------------------------------------------------------------------------
# Builds
# -----------------------------------------------------------------------------

builds:

# ---------------------------------------------------------------------------
# `virusseq` scans the all public SARS-CoV-2 genomes from Canada

- name: virusseq
metadata: data/virusseq/metadata.tsv
sequences: data/virusseq/sequences.fasta

sc2rf:
exclude_negatives: true

summary:
extra_cols:
- division

linelist:
geo: "division"

plot:
min_cluster_size: 2

plot_historical:
min_cluster_size: 2
43 changes: 43 additions & 0 deletions profiles/virusseq-hpc/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#------------------------------------------------------------------------------#
# Build Config
#------------------------------------------------------------------------------#
configfile:
- defaults/parameters.yaml
- profiles/virusseq-hpc/builds.yaml

#------------------------------------------------------------------------------#
# Snakemake config
#------------------------------------------------------------------------------#
restart-times: 1
max-jobs-per-second: 1
latency-wait: 60
keep-going: True
show-failed-logs: True
rerun-incomplete: True
printshellcmds: False

#------------------------------------------------------------------------------#
# System config
#------------------------------------------------------------------------------#

# Maximum number of jobs to run
jobs : 20

# Default resources for a SINGLE JOB
# Divide your total resources by the maximum number of jobs
default-resources:
- cpus=16
- mem_mb=16000
- time_min=720

# What commands should be run to DISPATCH a job?
cluster:
mkdir -p logs/slurm/{rule} &&
sbatch
--cpus-per-task={resources.cpus}
--mem={resources.mem_mb}
--job-name=ncov-recombinant:{rule}:{wildcards}
--output=logs/slurm/{rule}/{wildcards}-%j.out

# What commands should be run to CANCEL a job?
cluster-cancel: scancel

0 comments on commit 49e6f59

Please sign in to comment.