You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is kind of a note-to-self, but it seems the issue is this code
n_row_emeta<-if (is.null(results$e_meta)) {
# Use either the original or isoform e_meta depending on the input.if (is.null(isoformRes)) {
nrow(unique(pepData$e_meta))
} else {
nrow(e_meta_iso)
}
} else {
nrow(unique(results$e_meta))
}
is using the original (non rolled up) e_meta, which means the n_row_emeta is not equal to n_row_edata, so the column gets removed. As a test I tried using length(unique(pepData$e_meta[[emeta_cname]])) in place of nrow(unique(pepData$e_meta)), but it ended up with problems further down the line (e_meta was getting duplicate rows, meaning as.proData was throwing an error).
As it turns out, the above example is a more complex version of the problem, where sometimes the extra columns have multiple possible entries when rolled up. Appending the following lines to the above example should illustrate the simpler case:
This guy doesn't keep "ProteinList" :(
mypepData <- group_designation(omicsData = pep_object, main_effects = c("Phenotype"))
mypepData = edata_transform(omicsData = mypepData, "log2")
imdanova_Filt <- imdanova_filter(omicsData = mypepData)
mypepData <- applyFilt(filter_object = imdanova_Filt, omicsData = mypepData, min_nonmiss_anova = 2)
imd_anova_res <- imd_anova(omicsData = mypepData, test_method = 'comb', pval_adjust_a_multcomp = 'bon', pval_adjust_g_multcomp = 'bon')
results <- protein_quant(pepData = mypepData, method = 'rollup', combine_fn = 'median', emeta_cols = "ProteinList")
The text was updated successfully, but these errors were encountered: