-
Notifications
You must be signed in to change notification settings - Fork 1
/
dyngen_simulation_netID.r
60 lines (53 loc) · 1.27 KB
/
dyngen_simulation_netID.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
library(tidyverse)
library(dyngen)
######## Figure 3 simulation ##############
backbone <- backbone_bifurcating()
config <-
initialise_model(
backbone = backbone,
num_cells = 4000,
num_tfs = 50,
download_cache_dir = tools::R_user_dir("dyngen","data"),
num_targets = 200,
num_hks = 50,
verbose = FALSE
)
out <- generate_dataset(
config,
format = "anndata",
make_plots = TRUE
)
######## Figure 3 simulation ##############
backbone <- backbone_cycle()
config <-
initialise_model(
backbone = backbone,
num_cells = 4000,
num_tfs = 50,
download_cache_dir = tools::R_user_dir("dyngen","data"),
num_targets = 200,
num_hks = 50,
verbose = FALSE
)
out <- generate_dataset(
config,
format = "anndata",
make_plots = TRUE
)
######## Figure 5 simulation ##############
backbone <- backbone_bifurcating()
config <-
initialise_model(
backbone = backbone,
num_cells = 4000,
num_tfs = 50,
simulation_params = simlation_default(compute_cellwise_grn = TRUE),
num_targets = 200,
num_hks = 50,
verbose = FALSE
)
out <- generate_dataset(
config,
format = "anndata",
make_plots = TRUE
)