Skip to content

Conversation

@lindajiawenli
Copy link
Contributor

#1153

Currently:

We have one search function called neighbourhood( id ) that takes the id of an entity (ex. 'ncbigene:207') as a parameter and returns null if the entity does not exist in the database, otherwise it will return an object with two fields:

  • list of all edges connected to that entity
  • list all entities that are connected to that entity via one edge

Task:

Make a function like neighbourhood, except it has an extra parameter, includeComplexes. If includeComplexes is true, return as usual. Otherwise, do NOT include:

  • edges that represent complexes
  • neighbouring nodes that are only neighbours because they are apart of a complex
  • interactions that would be returned because the node that is being searched is apart of a complex

@lindajiawenli lindajiawenli linked an issue Mar 27, 2023 that may be closed by this pull request
2 tasks
@lindajiawenli lindajiawenli merged commit 3f50da9 into unstable Apr 3, 2023
@lindajiawenli lindajiawenli deleted the iss1153-neo4j-filter-complexes branch April 3, 2023 16:53
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.

Neo4j: Develop more search functions, filters

2 participants