Hi, I really like your package! As the title says, I've encountered an issue - the example I'm referring to is the one given in:
https://rdrr.io/cran/protti/man/impute.html
I have my own data that I wanted to apply impute() on, it threw back an error so I tried to test if the function works with the example you provide. The error is the same in both cases, minding column name differences:
(this is the one recieved when trying to imitate the example with synthetic data)
Is there a bug or am I using the function in a wrong way? The code I ran was:
`
set.seed(123) # Makes example reproducible
data <- create_synthetic_data(
n_proteins = 10,
frac_change = 0.5,
n_replicates = 4,
n_conditions = 2,
method = "effect_random",
additional_metadata = FALSE
)
head(data, n = 24)
data_missing <- assign_missingness(
data,
sample = sample,
condition = condition,
grouping = peptide,
intensity = peptide_intensity_missing,
ref_condition = "all",
retain_columns = c(protein, peptide_intensity)
)
head(data_missing, n = 24)
data_imputed <- impute(
data_missing,
sample = sample,
grouping = peptide,
intensity_log2 = peptide_intensity_missing,
condition = condition,
comparison = comparison,
missingness = missingness,
method = "ludovic",
retain_columns = c(protein, peptide_intensity)
)
head(data_imputed, n = 24)
`
Thanks for your help and keep up the good work:)