View source: R/simulate_LFQ_data.R
sim_lfq_data_protein_config | R Documentation |
Simulate data, protein, with config
sim_lfq_data_protein_config(
Nprot = 10,
with_missing = TRUE,
weight_missing = 0.2,
seed = 1234,
paired = FALSE
)
with_missing |
add missing values, default TRUE |
seed |
seed for reproducibility, if NULL no seed is set. |
description |
Nprot number of proteins |
x <- sim_lfq_data_protein_config()
stopifnot("data.frame" %in% class(x$data))
stopifnot("AnalysisConfiguration" %in% class(x$config))
x <- sim_lfq_data_protein_config(with_missing = FALSE)
stopifnot(sum(is.na(x$data$abundance)) == 0)
# debug(sim_lfq_data_protein_config)
xp <- sim_lfq_data_protein_config(with_missing = FALSE, paired = TRUE)
stopifnot(length(xp$config$table$factors) == 2)
stopifnot(nrow(xp$data) == nrow(x$data))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.