View source: R/application_prediction.R
calculate_p_value_bootstrap | R Documentation |
calculate_p_value_bootstrap
Calculate the p-value for each ligand from the bootstrapped ligand activity analysis
calculate_p_value_bootstrap(bootstrap_results, ligand_activities, metric = "aupr_corrected")
bootstrap_results |
Output of |
ligand_activities |
Output of |
metric |
Metric to use (Default: "aupr_corrected") |
Data frame with the ligand name, the number of times the bootstrapped value had a higher score than the observed (total
), and the p-value for each ligand, calculated as total/length(bootstrap_results)
## Not run:
permutations <- bootstrap_ligand_activity_analysis(expressed_genes_receiver, geneset_oi, background_expressed_genes,
ligand_target_matrix, potential_ligands, n_iter = 10)
p_values <- calculate_p_value_bootstrap(permutations, ligand_activities, metric = "aupr_corrected")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.