View source: R/s4_analysis_functs_2.R
run_power_check | R Documentation |
run_power_check()
runs the power check. The power check entails applying sceptre
to analyze positive control pairs — pairs for which we know there is an association between the target and the response — to ensure that sceptre
is capable of detecting true associations. See Chapter 6 of the manual for more detailed information about this function.
run_power_check(
sceptre_object,
output_amount = 1,
print_progress = TRUE,
parallel = FALSE,
n_processors = "auto",
log_dir = tempdir()
)
sceptre_object |
a |
output_amount |
(optional; default |
print_progress |
(optional; default |
parallel |
(optional; default |
n_processors |
(optional; default |
log_dir |
(optional; default |
an updated sceptre_object
in which the power check has been carried out
library(sceptredata)
data(highmoi_example_data)
data(grna_target_data_frame_highmoi)
# import data
sceptre_object <- import_data(
response_matrix = highmoi_example_data$response_matrix,
grna_matrix = highmoi_example_data$grna_matrix,
grna_target_data_frame = grna_target_data_frame_highmoi,
moi = "high",
extra_covariates = highmoi_example_data$extra_covariates,
response_names = highmoi_example_data$gene_names
)
# set analysis parameters, assign grnas, run qc
positive_control_pairs <- construct_positive_control_pairs(sceptre_object)
sceptre_object <- sceptre_object |>
set_analysis_parameters(
side = "left",
resampling_mechanism = "permutations",
positive_control_pairs = positive_control_pairs
) |>
assign_grnas(method = "thresholding") |>
run_qc() |>
run_power_check()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.