Closed ChristopherEeles closed 2 years ago
Error is occurring due to failure to drop rowKey or colKey values where no observations exist after sub-setting assays.
Fix will be to determine the set of unique rowKeys and colKeys where there is an observation in at least one assay and subset the index to only those values before passing to .subsetByIndex
in subset,LongTable-method
.
Not sure why my commit didn't close this? Maybe it needs to be merged to main first?
After running: https://github.com/bhklab/pkg_scripts/blob/master/CoreGx/longtable_assayMap.R to create a
tre
.Taking a subset breaks unit test in
test-LongTable-accessors.R:75
if the object is subset first like:I suspect this is caused by inclusion of NA values in the
assayIndex
table, leading to the subset failing to drop assayIndex values where there are no observations.