Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: simulation_type_knockdown with multiple genes #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

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