sim_lfq_data_protein_config: Simulate data, protein, with config

View source: R/simulate_LFQ_data.R

sim_lfq_data_protein_configR Documentation

Simulate data, protein, with config

Description

Simulate data, protein, with config

Usage

sim_lfq_data_protein_config(
  Nprot = 10,
  with_missing = TRUE,
  weight_missing = 0.2,
  seed = 1234,
  paired = FALSE
)

Arguments

with_missing

add missing values, default TRUE

seed

seed for reproducibility, if NULL no seed is set.

description

Nprot number of proteins

Examples


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))

wolski/prolfqua documentation built on Sept. 7, 2024, 3:06 a.m.