Closed ff98li closed 2 years ago
Appears to be originating from reindex
call in .subsetByIndex
method on line 84 of LongTable-utils.R
.
Likely an issue with the reindex
implementation.
@ff98li I think this should resolve the problem.
Please let me know when you have a chance to check and I will close this issue.
Best, Chris
@ff98li I think this should resolve the problem.
Please let me know when you have a chance to check and I will close this issue.
Best, Chris
Thank you Chris, now it works like a charm!
Expected Behavior
Assays in a subset should only have observations for row data or column data by which the subset is created.
Current Behavior
Unexisting
(rowKey, colKey)
combinations present in the subset when subsetting only by row. Unexisting assay observations present in the subset regardless of subsetting by row, column, or both.Possible Solution
When
j
is not supplied, includes only column data whosecolKey
have formed assay key pairs with the selectedi
in.intern
. Ifj
is supplied, then take the set difference between the selected column data and the column data that have been paired with the selectedi
to be associated with an assay observation. The main difficulty with this approach is that, some rowKey-colKey pairs could be associated with some observations in one assay, but not in another; we might need to encode this piece of information in.intern
too. (Just a thought, don’t take it seriously)Steps to Reproduce
LongTable
objectlt
for NCI-ALMANAC dataset.Output of
assay_subset
:Lots of assay observations that contain no therapy show up in the subset. Besides, it appears that there are unexisting
(rowKey, colKey)
combination in the subset, but this only happens when subsetting by row:Result:
Note that the observation mapped by key
(178, 47)
has a drug combination, but this record does not exist in the sensitivity assay of the original dataset.