View source: R/s4_analysis_functs_2.R
run_calibration_check | R Documentation |
run_calibration_check()
runs the calibration check. The calibration check involves applying sceptre to analyze negative control target-response pairs — pairs for which we know there is no association between the target and response — to ensure control of the false discovery rate. The calibration check enables us to verify that the discovery set that sceptre ultimately produces is not contaminated by excess false positives. See Chapter 5 of the manual for more detailed information about this function.
run_calibration_check(
sceptre_object,
n_calibration_pairs = NULL,
calibration_group_size = NULL,
print_progress = TRUE,
parallel = FALSE,
n_processors = "auto",
log_dir = tempdir(),
output_amount = 1
)
sceptre_object |
a |
n_calibration_pairs |
(optional) the number of negative control pairs to construct and test for association |
calibration_group_size |
(optional) the number of negative control gRNAs to randomly assemble to form each negative control target |
print_progress |
(optional; default |
parallel |
(optional; default |
n_processors |
(optional; default |
log_dir |
(optional; default |
output_amount |
(optional; default |
an updated sceptre_object
in which the calibration 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, run calibration check
sceptre_object <- sceptre_object |>
set_analysis_parameters(
side = "left",
resampling_mechanism = "permutations"
) |>
assign_grnas(method = "thresholding") |>
run_qc() |>
run_calibration_check(
n_calibration_pairs = 500,
calibration_group_size = 2,
parallel = TRUE,
n_processors = 2
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.