Closed ChristopherEeles closed 2 years ago
Have confirmed the issue is occurring in reindex,LongTable-method
since this works:
data(nci_TRE_small)
nci_TRE_small$sens_summary <- nci_TRE_small |>
aggregate("sensitivity", mean(viability), by=c("drug1id", "drug2id", "cellid"))
sub_nci <- subset(nci_TRE_small, drug1id %in% unique(drug1id)[1:5], reindex=FALSE)
sub_nci$sens_summary
Furthermore, the origin appears to be in assignment of summary assays with assay<-,LongTable-method
, which currently adds assayKey values to the assayIndex where the assay being summarized over has NA
values. This is problematic due to the storage of NAs for all row/colKey combinations.
Minimal reprex:
Seems like it's due to a mistake reindexing the table after the subset, since there are assayIDs for
sens_summary
for rows ofsensitivity
without any values.