-
Notifications
You must be signed in to change notification settings - Fork 1
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
Impute zeroes variable collections #26
Conversation
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.
Lots of questions - maybe the three of us could meet and go through it? I'm having a hard time keeping it all straight!
@@ -122,16 +142,54 @@ findEntityIdColumnNameForVariableSpec <- function(varSpec, entityIdColumns) { | |||
return(entityIdColumns[grepl(varSpec@entityId, entityIdColumns)]) | |||
} | |||
|
|||
findStudyVocabularyByVariableSpec <- function(vocabs, variableSpec) { | |||
findStudyVocabularyByVariableSpec <- function(vocabs, variables, variableSpec) { |
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.
seems like this and the previous function should be s4 methods since we're going through the trouble of checking their classes? Not urgent but for the future
return(varSpecsWithVocabs) | ||
} | ||
|
||
getVariableColumnNames <- function(variableMetadata) { |
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.
s4 method?
hasStudyDependentVocabulary = TRUE, | ||
members = VariableSpecList(S4Vectors::SimpleList(VariableSpec(variableId='pathogen_presence', entityId='assay'), | ||
VariableSpec(variableId='pathogen2_presence', entityId='assay'), | ||
VariableSpec(variableId='pathogen3_presence', entityId='assay'))) |
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 think i need a test where i have a collection, but the OTHER var is the one w the special vocab
oops. forgot about collections when i built the impute zeroes helper..