NASC Data And Webservices
The following tables are included in the api.
Table name | Parameters |
---|---|
availability | availability/{availability_code} |
collection | collection/{collection_id} |
collection_info | collection_info/{collection_id} |
collection_pub | collection_pub/{collection_id} |
country | country/{country_id} |
derivative | derivative/{nascode} |
eav_triplet | eav_triplet/{eav_id} |
embl_code | embl_code/{embl_acc} |
genes | genes/{genes_id} |
germplasm | germplasm/{nascode} |
germplasm_donor | germplasm_donor/{nascode} |
inserts | inserts/{insert_id} |
material_type | material_type/{material_type_id} |
mutagen | mutagen/{mutagen_id} |
original | original/{nascode} |
seed_type | seed_type/{seed_type_id} |
species | species/{species_id} |
stock | stock/{nascode} |
stock_phenotype_ontology | |
stock_pub | |
publication | publication/{pub_med_id} |
The following tables are paginated, and will be displayed in the following manner:
{int} is a number
collection?page={int}
collection_pub/collection_info?page={int}
collection_info/collection_info?page={int}
germplasm_donor?page={int}
germplasm?page={int}
derivative/?page={int}
embl_code?page={int}
eav_triplet/?page={int}
genes?page={int}
germplasm_donor?page={int}
mutagen?page={int}
stock_pub?page={int}
inserts?page={int}
original?page={int}
seed_type?page={int}
species?page={int}
stock?page={int}
stock_phenotype_ontology?page={int}
publication?page={int}
Below are some example queries:
Fetch all Stocks:
Using wget:
wget 'http://webservices.arabidopsis.info/api/stock' { "num_results": 767542, "objects": [ { "abrc_code": "CS1", "availability_code": 1, "code_prefix": "NW", "collection_id": null, "comment": "", "donation_date": "1991-06-01", "donor_no": null, "material_type": { "display_name": "Seed", "is_batch_fee_applicable": 1, "is_chargeable_in_americas": 0, "is_phyto_applicable": 1, "material_type": "seed", "material_type_id": 1 }, "material_type_id": 1, "name": "angustifolia, pyrimidine requiring, glabra, eceriferum, male sterile\nuiring, glabra, eceriferum, ma", "nascode": 1, "stock_desc": "homozygous for an-1, cer2-2, gl1-1 and py-201; heterozygous for ms1-1.", "stock_no_affiliation": "NASC" },
Using curl:
curl 'http://webservices.arabidopsis.info/api/stock' -H 'Content-type:application/json' "num_results": 767542, "objects": [ { "abrc_code": "CS1", "availability_code": 1, "code_prefix": "NW", "collection_id": null, "comment": "", "donation_date": "1991-06-01", "donor_no": null, "material_type": { "display_name": "Seed", "is_batch_fee_applicable": 1, "is_chargeable_in_americas": 0, "is_phyto_applicable": 1, "material_type": "seed", "material_type_id": 1 }, "material_type_id": 1, "name": "angustifolia, pyrimidine requiring, glabra, eceriferum, male sterile\nuiring, glabra, eceriferum, ma", "nascode": 1, "stock_desc": "homozygous for an-1, cer2-2, gl1-1 and py-201; heterozygous for ms1-1.", "stock_no_affiliation": "NASC" },
Fetch an individual stock:
Using wget
wget 'http://webservices.arabidopsis.info/api/stock/1' { "abrc_code": "CS1", "availability_code": 1, "code_prefix": "NW", "collection_id": null, "comment": "", "donation_date": "1991-06-01", "donor_no": null, "material_type": { "display_name": "Seed", "is_batch_fee_applicable": 1, "is_chargeable_in_americas": 0, "is_phyto_applicable": 1, "material_type": "seed", "material_type_id": 1 }, "material_type_id": 1, "name": "angustifolia, pyrimidine requiring, glabra, eceriferum, male sterile\nuiring, glabra, eceriferum, ma", "nascode": 1, "stock_desc": "homozygous for an-1, cer2-2, gl1-1 and py-201; heterozygous for ms1-1.", "stock_no_affiliation": "NASC" }
Search Functionality
The results can also be filtered using pre-defined filters; names (table name above) and operators.
Using curl
curl -G -H "Content-type: application/json" -d "q={\"filters\":[{\"name\":\"Replace the values in the < and > symbols above.\",\"op\":\" \",\"val\":\" \"}]}" http://webservices.arabidopsis.info/
Example: search stock table for entries that have an abrc_code like "CS20%".
curl -G -H "Content-type: application/json" -d "q={\"filters\":[{\"name\":\"abrc_code\",\"op\":\"like\",\"val\":\"CS20%\"}]}" http://webservices.arabidopsis.info/api/stock
Contact
Please email all comments or problems to the bioinformatics team.