-
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
generalize correlation plugins #87
Conversation
so this still feels a bit hacky to me, but its way better than it was. i dont have the prefilters working yet, but im thinking that can be a separate pr, bc i want to think about how to best do that yet. also, i notice the values for member types are things like 'Host Eigengene' and i was expecting 'eigengene' regardless of host vs pathogen. i assume this is bc were also using these as display labels around places? if so, that makes me a bit uncomfortable that some fundamental logic here is based on completely free text strings as opposed to something w controlled values like at min an enum. |
no the member should be 'eigengene'. I can start that change. |
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.
Had some questions but overall looks good. Are there parts that feel hacky to you outside the "member" values?
} | ||
|
||
if (isEigengene) { | ||
connection.voidEval("assayData <- assayData[order(" + computeEntityIdColName + ")]; " + |
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 order?
String statsCmd = "writeStatistics(computeResult, NULL, TRUE)"; | ||
if (isEigengene) { | ||
connection.voidEval("abundanceData <- abundanceData[order(" + computeEntityIdColName + ")]; " + | ||
"abundanceData <- abundanceData[, -as.character(" + dotNotatedIdColumnsString+ "), with=FALSE];" + |
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.
can we change this to 'assayData'? In the assaySelf version this naming distinction made it really clear what should be what.
boolean isEigengene = false; | ||
if (collection1MemberType.contains("Eigengene") || collection2MemberType.contains("Eigengene")) { | ||
if (!(collection1MemberType.contains("Eigengene") && collection2MemberType.contains("Eigengene"))) { | ||
throw new IllegalArgumentException("Both collection variables must have the same member type."); |
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.
Is this just for now? Generally this statement is not true.
VEuPathDB/ApiCommonData@bee5e2c |
depends on VEuPathDB/veupathUtils#39
depends on VEuPathDB/microbiomeComputations#88
resolves #85