-
Notifications
You must be signed in to change notification settings - Fork 6
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
Combine qedge #126
Combine qedge #126
Conversation
TODO: fix code to pass tests |
@rjawesome I know you're in-progress with this one and have several other issues on your plate (that I've recently commented on as well), however I just want to clarify that of the BTE issues assigned to you, this one should be the highest priority (excepting anything that @andrewsu might assign you as higher priority). |
@tokebe this should be mostly good to go. one thing with the inputHasResolved() function, the qEdge uses hasInputResolved() {
if (this.isReversed()) {
return this.object.hasEquivalentIDs();
}
return this.subject.hasEquivalentIDs();
} while qXEdge uses hasInputResolved() {
return !(Object.keys(this.input_equivalent_identifiers).length === 0);
} I am currently using the 2nd implementation in the new QEdge class but that is causing some problems in one of the tests
equivalentIDs is { 'NCBIGene:1017': { db_ids: { NCBIGene: [Array], SYMBOL: [Array] } } } Which implementation should i use? |
This behavior should be merged -- Previously, "input" and "output" seem to have been used to avoid confusion between "subject" and object" when reversing a For now, we can keep the use of |
That said, I'd like to ask @colleenXu's opinion regarding the possibility of changing |
I'm not fully following this conversation...but I think this has to do with the conversation here #93 (comment) on whether subject/object or input/output is less-confusing. Reviewing the convo, it seems like both are confusing. I was concerned with keeping track of the directionality of QEdge vs "direction we sub-query in", I think...and whatever words we use to make that clear is good with me... |
Ok, I propose we use input/output to exclusively refer to "direction we're sub-querying in", while in all other cases we use subject/object. I think it also makes sense to not touch Records as those can be thought of as just a knowledge triple independent of sub-query direction. @rjawesome TLDR: A few new implementation things:
|
Codecov Report
@@ Coverage Diff @@
## main #126 +/- ##
==========================================
- Coverage 70.79% 69.64% -1.16%
==========================================
Files 26 25 -1
Lines 2332 2306 -26
==========================================
- Hits 1651 1606 -45
- Misses 681 700 +19
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Given that the Looking great otherwise 👍 |
Done! |
Closing as feature update has been rolled into #129 |
Should complete all objectives of this issue