From 5cb65f63a416510164e8411c15449153f62852fa Mon Sep 17 00:00:00 2001 From: Louise Deconinck Date: Wed, 21 Feb 2024 11:37:04 +0100 Subject: [PATCH] Bugfix, make it easier to generate knockdown simulations involving multiple genes. --- NEWS.md | 4 ++++ R/6_simulation.R | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index b241e4c4..ebd769f3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# dyngen 1.0.6 + +* BUG FIX `simulation_type_knockdown()`: Allow easier knocking down of multiple genes. + # dyngen 1.0.5 * MINOR CHANGE: Refactor matrix coercion thanks to Matrix 1.5-0. diff --git a/R/6_simulation.R b/R/6_simulation.R index 00f7b1ae..d6c51619 100644 --- a/R/6_simulation.R +++ b/R/6_simulation.R @@ -617,7 +617,7 @@ simulation_type_knockdown <- function( (is.list(genes) && length(genes) == num_simulations) || is.character(genes) || is.factor(genes) ) - if (!is.list(genes)) genes <- as.list(rep(genes, num_simulations)) + if (!is.list(genes)) genes <- as.list(rep(list(genes), num_simulations)) tibble( type = "knockdown",