-
Notifications
You must be signed in to change notification settings - Fork 25
/
bioentity-publication.feature
50 lines (38 loc) · 3.32 KB
/
bioentity-publication.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Feature: Publication association queries that return a list of associations
## Publication to Disease associations
Scenario: User queries for diseases associated with a publication
Given a path "/bioentity/publication/PMID:19652879/diseases"
then the JSON should have some JSONPath "associations[*].object.label" with "string" "congenital factor XI deficiency"
then the JSON should have some JSONPath "associations[*].object.category" containing "string" "disease"
## Publication to Gene associations
Scenario: User queries for genes associated with a publication
Given a path "/bioentity/publication/PMID:11751940/genes"
then the JSON should have some JSONPath "associations[*].object.id" with "string" "MGI:88336"
then the JSON should have some JSONPath "associations[*].object.id" with "string" "RGD:708418"
then the JSON should have some JSONPath "associations[*].object.id" with "string" "MGI:88337"
## Publication to Phenotype associations
Scenario: User queries for genes associated with a publication
Given a path "/bioentity/publication/PMID:11751940/phenotypes"
then the JSON should have some JSONPath "associations[*].object.id" with "string" "MP:0004771"
then the JSON should have some JSONPath "associations[*].object.label" with "string" "increased anti-single stranded DNA antibody level"
then the JSON should have some JSONPath "associations[*].provided_by" containing "string" "https://archive.monarchinitiative.org/#mgislim"
## Publication to Genotype associations
Scenario: User queries for genes associated with a publication
Given a path "/bioentity/publication/PMID:10447258/genotypes"
then the JSON should have some JSONPath "associations[*].object.taxon.label" with "string" "Homo sapiens"
then the JSON should have some JSONPath "associations[*].object.id" with "string" "dbSNPIndividual:20474"
then the JSON should have some JSONPath "associations[*].provided_by" containing "string" "https://archive.monarchinitiative.org/#coriell"
## Publication to Model associations
Scenario: User queries for genes associated with a publication
Given a path "/bioentity/publication/PMID:11181576/models"
then the JSON should have some JSONPath "associations[*].object.taxon.label" with "string" "Homo sapiens"
then the JSON should have some JSONPath "associations[*].object.id" with "string" "Coriell:GM05823"
then the JSON should have some JSONPath "associations[*].object.label" with "string" "NIGMS-GM05823"
then the JSON should have some JSONPath "associations[*].provided_by" containing "string" "https://archive.monarchinitiative.org/#coriell"
## Publication to Variant ssociations
Scenario: User queries for genes associated with a publication
Given a path "/bioentity/publication/PMID:11751940/variants"
then the JSON should have some JSONPath "associations[*].object.taxon.label" with "string" "Rattus norvegicus"
then the JSON should have some JSONPath "associations[*].object.id" with "string" "RGD:708418"
then the JSON should have some JSONPath "associations[*].object.label" with "string" "Cd40lg"
then the JSON should have some JSONPath "associations[*].provided_by" containing "string" "https://archive.monarchinitiative.org/#ncbigene"