From ab704139182ca714be8fdf4c2135caa0712269fe Mon Sep 17 00:00:00 2001 From: Witold Wolski Date: Mon, 24 Jun 2024 15:39:34 +0200 Subject: [PATCH] doc --- man/nr_obs_sample.Rd | 6 +++--- man/sim_lfq_data_protein_config.Rd | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/man/nr_obs_sample.Rd b/man/nr_obs_sample.Rd index 7bec7beb..1066f57a 100644 --- a/man/nr_obs_sample.Rd +++ b/man/nr_obs_sample.Rd @@ -14,12 +14,12 @@ dd <- prolfqua::sim_lfq_data_peptide_config() dd$data <- na.omit(dd$data) xd <- nr_obs_sample(dd$data, dd$config) xd$nr_children |> table() -xd |> pivot_wider(id_cols = protein_Id, names_from = sample, values_from = nr_children) +# xd |> pivot_wider(id_cols = protein_Id, names_from = sample, values_from = nr_children) dp <- prolfqua::sim_lfq_data_protein_config() xp <- nr_obs_sample(dp$data, dp$config) -xp -xp |> pivot_wider(id_cols = protein_Id, names_from = sample, values_from = nr_peptides) +# xp +# xp |> pivot_wider(id_cols = protein_Id, names_from = sample, values_from = nr_peptides) xp$nr_peptides |> table() } diff --git a/man/sim_lfq_data_protein_config.Rd b/man/sim_lfq_data_protein_config.Rd index b391b011..7d6e220e 100644 --- a/man/sim_lfq_data_protein_config.Rd +++ b/man/sim_lfq_data_protein_config.Rd @@ -32,6 +32,6 @@ 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) -length(xp$config$table$factors) == 2 +stopifnot(length(xp$config$table$factors) == 2) stopifnot(nrow(xp$data) == nrow(x$data)) }