Skip to content
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

Merged
merged 10 commits into from
Sep 13, 2022

Conversation

curadomr
Copy link
Contributor

  • 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.
@jdblischak jdblischak self-requested a review August 31, 2022 14:50
@jdblischak
Copy link
Contributor

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 addMapping(). In the rare case where a user wants different mappings based on the currently selected modelID, they could specify a different mapping table per modelID.

curadomr and others added 5 commits September 9, 2022 15:03
- 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.
Copy link
Contributor

@jdblischak jdblischak left a 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

R/plots.R Outdated Show resolved Hide resolved
vignettes/OmicNavigatorAPI.Rnw Outdated Show resolved Hide resolved
@jdblischak
Copy link
Contributor

@curadomr Before you make additional changes, make sure to pull my commits to your computer first:

git pull origin multimodel_mapping

R/check.R Outdated Show resolved Hide resolved
curadomr and others added 3 commits September 13, 2022 11:53
…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
@jdblischak
Copy link
Contributor

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.

@jdblischak jdblischak merged commit 5c069e9 into abbvie-external:main Sep 13, 2022
@jdblischak
Copy link
Contributor

Thanks @curadomr!

@jdblischak
Copy link
Contributor

Support for missing values in character columns added in bc3a831

@curadomr curadomr deleted the multimodel_mapping branch September 14, 2022 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants