Difference between revisions of "Web Services REST API"

From CoGepedia
Jump to: navigation, search
m
m (Examples)
Line 12: Line 12:
 
<pre>
 
<pre>
 
curl https://genomevolution.org/coge/api/v1/organisms/search/col-0
 
curl https://genomevolution.org/coge/api/v1/organisms/search/col-0
 +
[
 
{
 
{
 
   "organisms":
 
   "organisms":
Line 26: Line 27:
 
<pre>
 
<pre>
 
curl https://genomevolution.org/coge/api/v1/genomes/search/col-0
 
curl https://genomevolution.org/coge/api/v1/genomes/search/col-0
{
+
    {
"name": "",
+
    "name": "",
"chromosome_count": 7,
+
    "chromosome_count": 7,
"sequence_type": {
+
    "sequence_type": {
"id": "1",
+
    "id": "1",
"description": "unmasked sequence data",
+
    "description": "unmasked sequence data",
"name": "unmasked"
+
    "name": "unmasked"
},
+
    },
 
"info": "Arabidopsis thaliana Col-0 (thale cress) (v10.02, id16911): unmasked",
 
"info": "Arabidopsis thaliana Col-0 (thale cress) (v10.02, id16911): unmasked",
 
"description": "",
 
"description": "",
Line 41: Line 42:
 
"name": "Arabidopsis thaliana Col-0 (thale cress)"
 
"name": "Arabidopsis thaliana Col-0 (thale cress)"
 
},
 
},
"restricted": false,
+
    "restricted": false,
"organism_id": 1,
+
    "organism_id": 1,
"version": "10.02",
+
    "version": "10.02",
"id": 16911,
+
    "id": 16911,
"link": ""
+
    "link": ""
},
+
    },
 +
    ...
 +
]
 
</pre>
 
</pre>
  

Revision as of 18:21, 15 March 2016

Our web services let you incorporate CoGe's database of organisms, genomes, and other data sets into your web site or pipeline.

Documentation

Examples

Organism Search

curl https://genomevolution.org/coge/api/v1/organisms/search/col-0
[
{
   "organisms":
      [
         {
            "id": "1",
            "name": "Arabidopsis thaliana Col-0 (thale cress)",    
            "description": "Eukaryota; Viridiplantae; Streptophyta; Embryophyta; Tracheophyta; Spermatophyta; Magnoliophyta; eudicotyledons; core eudicotyledons; rosids; eurosids II; Brassicales; Brassicaceae; Arabidopsis"
         }
      ]
}
curl https://genomevolution.org/coge/api/v1/genomes/search/col-0
    {
    "name": "",
    "chromosome_count": 7,
    "sequence_type": {
    "id": "1",
    "description": "unmasked sequence data",
    "name": "unmasked"
    },
"info": "Arabidopsis thaliana Col-0 (thale cress) (v10.02, id16911): unmasked",
"description": "",
"organism": {
"id": 1,
"description": "Eukaryota; Viridiplantae; Streptophyta; Embryophyta; Tracheophyta; Spermatophyta; Magnoliophyta; eudicotyledons; core eudicotyledons; rosids; eurosids II; Brassicales; Brassicaceae; Arabidopsis",
"name": "Arabidopsis thaliana Col-0 (thale cress)"
},
    "restricted": false,
    "organism_id": 1,
    "version": "10.02",
    "id": 16911,
    "link": ""
    },
    ...
]

Genome Fetch

curl https://genomevolution.org/coge/api/v1/genomes/16911
{
   "id": 16911
   "name": "",
   "description": "",
   "version": "10.02",
   "link": "",
   "restricted": false,
   "sequence_type": {
      "name": "unmasked",
      "description": "unmasked sequence data"
   },
   "experiments": [31,32,33, ...],
   "metadata": [],
}


More examples to be added soon!