| calculate_hdx_power | R Documentation |
This function estimates power of statistical tests for HDX experiments.
calculate_hdx_power( deuteration_curves, tests, significance_level = 0.05, summarized = TRUE )
deuteration_curves |
list returned by the
|
tests |
lists of tests to perform. Each test function should take two
parameters - data (data_table containing replicated curves) and
|
significance_level |
significance level that will be used for testing.
See |
summarized |
logical. Indicates whether the power should be calculated.
Default |
list of data.tables with test result, optionally summarized with power.
test_houde,
test_semiparametric,
test_hdx_analyzer,
test_memhdx_model
theo_spectra_pf_100 <- simulate_theoretical_spectra(sequence = "LVRKDLQN",
charge = c(3, 5),
protection_factor = 100,
times = c(0.167, 5),
pH = 7.5,
temperature = 15,
n_molecules = 500,
time_step_const = 1,
use_markov = TRUE)
theo_spectra_pf_200 <- simulate_theoretical_spectra(sequence = "LVRKDLQN",
charge = c(3, 5),
protection_factor = 200,
times = c(0.167, 5),
pH = 7.5,
temperature = 15,
n_molecules = 500,
time_step_const = 1,
use_markov = TRUE)
theo_spectra_two_states <- rbind(theo_spectra_pf_100, theo_spectra_pf_200)
deut_curves_p_states <- get_noisy_deuteration_curves(theo_spectra_two_states,
n_replicates = 4,
n_experiments = 2,
compare_pairs = TRUE,
reference = "all")
calculate_hdx_power(deut_curves_p_states,
tests = list(test_houde),
summarized = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.