Skip to content

Commit

Permalink
Bugfix, make it easier to generate knockdown simulations involving mu…
Browse files Browse the repository at this point in the history
…ltiple genes.
  • Loading branch information
LouiseDck committed Feb 21, 2024
1 parent 714475d commit 5cb65f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion R/6_simulation.R
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5cb65f6

Please sign in to comment.