Skip to content

Commit

Permalink
Modify memory for relatedness rule
Browse files Browse the repository at this point in the history
Similar to the graf_populations rule, we wanted to implement
a lambda function to dynamically allocate more memory for the
relatedness rule.
  • Loading branch information
jaamarks committed Jun 4, 2024
1 parent 09d320f commit ce78473
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cgr_gwas_qc/workflow/sub_workflows/sample_qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ use rule relatedness from graf as sample_concordance_graf with:
rules.graf_extract_fingerprint_snps.output[0],
output:
"sample_level/concordance/graf.tsv",
resources:
mem_mb=lambda wc, attempt, input: max( (attempt+1)* input.size_mb, 1000),
log:
"sample_level/concordance/graf.log",

Expand Down

0 comments on commit ce78473

Please sign in to comment.