Last active
June 16, 2017 19:00
-
-
Save cmungall/28b4c4d2aef7cb8fa3cb38f2c00e8c8d to your computer and use it in GitHub Desktop.
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
## Type Definitions (contract) | |
type Drug { | |
id: ID! | |
name: String! | |
drugInteractions: [DrugInteraction] | |
drugTargets: [DrugTarger] | |
} | |
type DrugTarget { | |
gene: Gene! | |
... | |
} | |
type Gene { | |
id: ID! | |
name: String! | |
functions: [Function] | |
} | |
type DrugInteraction { | |
drug1: Drug! | |
drug2: Drug! | |
interactionType: RelationshipType! | |
evidence: Evidence | |
} | |
## query | |
# find all drug interactions for any drugs that target a gene with a particular function | |
{ | |
drug | |
drugInteractions | |
drugTargets { | |
gene { | |
function(GO:0001234) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment