Skip to content

Bugfix: simulation_type_knockdown with multiple genes#57

Open
LouiseDck wants to merge 2 commits intomasterfrom
bugfix_knockdown
Open

Bugfix: simulation_type_knockdown with multiple genes#57
LouiseDck wants to merge 2 commits intomasterfrom
bugfix_knockdown

Conversation

@LouiseDck
Copy link
Member

@LouiseDck LouiseDck commented Feb 21, 2024

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

@LouiseDck LouiseDck requested a review from rcannood February 21, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incompatible Tibble sizes when generating knockdown model Simultaneously knockout multiple genes

1 participant