Description Usage Arguments Examples
View source: R/find_most_active.R
Simulate data for most active brain areas for one batch. It can be performed for a completely random process, or by using baseline expression levels from the Allen Brain Atlas as well as increases due to the experimental manipulation. Returns a dataframe with the group ("group") and brain area ("my_grouping") of the brain areas simulated to be most active.
1 2 3 4 5 6 | sim_most_active_one_batch(
weights_df,
weight_by_expression = TRUE,
weight_by_group = TRUE,
high_prob = 0.95
)
|
weights_df |
dataframe resulting from prepare_sim_weights(). dataframe in long format with one brain area "my_grouping" per group ("group") with the Allen Brain Atlas expression levels ("mean_expression" and "sd_expression") as well as group-dependent weight ("weight") |
weight_by_expression |
can take values TRUE or FALSE. If not specified, is considered TRUE. If FALSE, brain areas are sampled at random from a uniform distribution, and weight_by_group will be ignored. In this case, weight_df requires only the variables "group" and "my_grouping". |
weight_by_group |
can take values TRUE or FALSE. If not specified, is considered TRUE. |
high_prob |
number between 0 and 1 indication the threshold for being a highly active region. 0.95 corresponds to the top 5 per cent. |
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.