-
Notifications
You must be signed in to change notification settings - Fork 0
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
Gdr 2682 #132
Merged
Gdr 2682 #132
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d651eff
added functions set_unique_cl_names_dt and set_unique_drug_names_dt
darsoo 788aca1
added tests for set_unique_cl_names_dt and set_unique_drug_names_dt
darsoo a8c1832
bump version
darsoo 6d68c02
added param to set_unique_cl_names_dt and set_unique_drug_names_dt
darsoo 7aa8414
added draft for tests for set_unique_drug_names_dt
darsoo 6f1d0a7
updaetd tests for set_unique_drug_names_dt and set_unique_cl_names_dt
darsoo d6ea4fd
added fix for set_unique_cl_names_dt
darsoo 5f7d6db
typo
darsoo 4d68305
fix in test
darsoo 81914a3
updated documentation
darsoo e93ea86
Update R/standardize_MAE.R
darsoo 4592d46
updated documentation
darsoo 3750ac6
the function works the same regardless of the input class
darsoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: gDRutils | ||
Type: Package | ||
Title: A package with helper functions for processing drug response data | ||
Version: 1.3.12 | ||
Date: 2024-09-04 | ||
Version: 1.3.13 | ||
Date: 2024-09-16 | ||
Authors@R: c(person("Bartosz", "Czech", role=c("aut"), | ||
comment = c(ORCID = "0000-0002-9908-3007")), | ||
person("Arkadiusz", "Gladki", role=c("cre", "aut"), email="[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why there is a different procedure for colData for SE and for data.table?
(I understand that in colData we do not have information about Drug, but it is misleading: the same content as input but different output depending on format - in the context of presence of cell line name duplicates)
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.
I see your point, but in my opinion it's a bit pointless. From a practical point of view
DataFrame
is only used for colData or rowData in SE, where there is no possibility for such a situation to occur. I don't see the need to complicate this logic.More complex logic for data.table objects is required due to data specificity.
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.
IMO now is complicated and not consistent.
I would vote for the function always returning the same result, regardless of format. The user may want to use this feature in a context other than within the application.
The only thing to change is - instead of checking format of
col_data
input - just check whetherunique_col_names
is"CellLineName"
.If true - just add suffix, if not - check other columns and add suffix accordingly.
You have that code already written.
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.
Yes but
duplicated
works in different way for data.table and DataFrame.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.
I'm on the same page as @j-smola. It would be great to have consistent logic regardless of the data format.
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.
Ok. Added fix and test