Skip to content

Commit 34c4b9c

Browse files
committed
Set RNG seed for diversity sampling
1 parent 8a70e76 commit 34c4b9c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

workflow/rules/report.smk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ rule diversity_data:
6464
params:
6565
bootstrap_reps = config["DIVERSITY_REPS"],
6666
aln_reference = config["ALIGNMENT_REFERENCE"],
67+
seed = 7291,
6768
input:
6869
study_fasta = OUTDIR/"nextalign"/f"{OUTPUT_NAME}.aligned.masked.fasta",
6970
context_fasta = OUTDIR/"context"/"nextalign"/"context_sequences.aligned.masked.fasta",

workflow/scripts/report/diversity_data.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ log <- file(snakemake@log[[1]], open = "wt")
55
sink(log, type = "message")
66
sink(log, type = "output")
77

8+
set.seed(snakemake@params$seed)
9+
810
library(ape)
911
library(pegas)
1012
library(future.apply)

0 commit comments

Comments
 (0)