dynverse / dyngen

Simulating single-cell data using gene regulatory networks 📠
https://dyngen.dynverse.org
Other
73 stars 6 forks source link

Bugfix: simulation_type_knockdown with multiple genes #57

Open LouiseDck opened 9 months ago

LouiseDck commented 9 months ago

According to the vignette, this is the way to create a knockdown simulation: 0

b3_genes <- model_common$feature_info %>% filter(module_id == "B3") %>% pull(feature_id)

model_ko <- model_common
model_ko$simulation_params$experiment_params <- simulation_type_knockdown(
  num_simulations = 100L,
  timepoint = 0, 
  genes = b3_genes,
  num_genes = length(b3_genes),
  multiplier = 0
)

However, when there are multiple genes associated with the module, this did not work and produced relating to incompatible sizes in tibble(). This is due to the checks performed in simulation_type_knockdown.

Fixes #56 Fixes #45