-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update in Multimodel plot functionality #11
Update in Multimodel plot functionality #11
Conversation
curadomr
commented
Aug 30, 2022
- getPlottingData provides mapping object, only for provided feature_id.
- testID and modelID must be vectors of same lenght for multimodel plots.
- results for multiple tests from a given model are provided as nested lists in plottingData, within the list element 'result', and named after the corresponding testID
- testPlot.R and vignette/OmicNavigatorAPI.Rnw adapted accordingly.
- getPlottingData provides mapping object, only for provided feature_id. - testID and modelID must be vectors of same lenght for multimodel plots. - results for multiple tests from a given model are provided as nested lists in plottingData, within the list element 'result', and named after the corresponding testID - testPlot.R and vignette/OmicNavigatorAPI.Rnw adapted accordingly.
Quick update from our discussion: the plan for the mapping object is to be a list of data frames (one per modelID), similar to features and samples. In most cases there will only be a single mapping table to map featureIDs across all modelIDs of the study. Thus a user can choose the modelID "default" when adding it with |
- multiModel does not require to have testID anymore and it may be set to NULL. In this case, plottingData returns assays, sample and features objects only (no results object). - When testID is provided, it must be a vector of same length of modelID. Not needed to be named vector any longer, but the index position of a test in testID must match the index position of its corresponding model in modelID - mapping object is provided in the plottingData object for multiModel calls - checks for mapping in getPlottingData moved to a function outside getPlottingData to facilitate testing, readability, maintenance - note: some checks are crashing in testGet, testGetNumeric and testPlot. All seem to be related to getMapping, plausibly in the getElements call. Other than that, testCheck, testValidate look good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! It's coming along. Please also bump the version to 1.12.0 and add a note to NEWS.md
@curadomr Before you make additional changes, make sure to pull my commits to your computer first:
|
…versions. - stopifnot("text" = check), from R 4.0, is replaced by regular if () {stop()} calls - list2env is replaced by explicit variable attribution - news.md and DESCRIPTION updated
I figured out how to fix the errors related to missing values in character columns. I'm going to merge this first and then push my fix. |
Thanks @curadomr! |
Support for missing values in character columns added in bc3a831 |