Wiki
Clone wikienterobase-web / api_strains
Top level links:
- Main top level page for all documentation
- EnteroBase Features
- Registering on EnteroBase and logging in
- Tutorials
- Using the API
- About the underlying pipelines and other internals
- How schemes in EnteroBase work
- FAQ
The strains query method
Refer to interactive documentation : http://enterobase.warwick.ac.uk/api/v2.0/swagger-ui#!/Strains
The strains
query method shows the strain metadata such as host, geography and lab contacts.
An example of this type of query to try in the interactive documentation has database set to "senterica" and "strain name" set to "FSIS1605678" which corresponds to a request to the URL
http://enterobase.warwick.ac.uk/api/v2.0/senterica/strains?strain_name=FSIS1605678
giving the results
{ "Strains": [ { "antigenic_formulas": null, "assembly_barcode": "SAL_KA3160AA", "city": null, "collection_date": null, "collection_month": null, "collection_time": null, "collection_year": 2015, "comment": null, "continent": "North America", "country": "United States", "county": null, "created": "2016-02-06T19:00:03.611332+00:00", "lab_contact": "United States Department of Agriculture, Food Safety and Inspection Service", "lastmodified": "2016-02-06T19:55:02.798303+00:00", "latitude": null, "longitude": null, "postcode": null, "region": "Iowa", "secondary_sample_accession": "SRS1278094", "serotype": "Agona", "source_details": "Animal-Swine-Sow", "source_niche": "Livestock", "source_type": "Air", "strain_barcode": "SAL_EA9564AA", "strain_name": "FSIS1605678", "uberstrain": "SAL_EA9564AA", "version": 1 } ], "links": { "paging": {}, "records": 1, "total_records": 1 } }
Another example of this type of query to try in the interactive documentation has database set to "senterica", "serotype" set to "Agona" and "limit" to "5" which corresponds to a request to the URL
http://enterobase.warwick.ac.uk/api/v2.0/senterica/strains?serotype=Agona&limit=5
giving the results
{ "Strains": [ { "antigenic_formulas": "4,12:g,s,t:z27", "assembly_barcode": "SAL_AA0605AA", "city": null, "collection_date": null, "collection_month": null, "collection_time": null, "collection_year": 1974, "comment": null, "continent": "Europe", "country": "United Kingdom", "county": null, "created": "2015-08-26T15:04:33.345763+00:00", "lab_contact": "F. Boyd", "lastmodified": "2015-08-26T15:04:33.345796+00:00", "latitude": null, "longitude": null, "postcode": null, "region": null, "secondary_sample_accession": "NA", "serotype": "Agona", "source_details": "Water", "source_niche": null, "source_type": "Environment", "strain_barcode": "SAL_AA0605AA", "strain_name": "SARA61 (Fidelma Boyd)", "uberstrain": "SAL_AA0605AA", "version": 1 }, { "antigenic_formulas": "1,4,[5],12:f,g,s:[1,2]", "assembly_barcode": "SAL_AA0606AA", "city": null, "collection_date": null, "collection_month": null, "collection_time": null, "collection_year": null, "comment": null, "continent": "Europe", "country": "Denmark", "county": null, "created": "2015-08-26T15:04:33.345763+00:00", "lab_contact": "SSI", "lastmodified": "2015-08-26T15:04:33.345796+00:00", "latitude": null, "longitude": null, "postcode": null, "region": null, "secondary_sample_accession": "NA", "serotype": "Agona", "source_details": "", "source_niche": null, "source_type": "Human", "strain_barcode": "SAL_AA0606AA", "strain_name": "993112K", "uberstrain": "SAL_AA0606AA", "version": 1 }, { "antigenic_formulas": "4,12:f,g,s:-", "assembly_barcode": "SAL_AA0607AA", "city": null, "collection_date": null, "collection_month": null, "collection_time": null, "collection_year": 1971, "comment": null, "continent": "Europe", "country": "France", "county": null, "created": "2015-08-26T15:04:33.345763+00:00", "lab_contact": "F.X.Weill, Institut Pasteur", "lastmodified": "2015-08-26T15:04:33.345796+00:00", "latitude": null, "longitude": null, "postcode": null, "region": null, "secondary_sample_accession": "NA", "serotype": "Agona", "source_details": "", "source_niche": null, "source_type": "Human", "strain_barcode": "SAL_AA0607AA", "strain_name": "2-71", "uberstrain": "SAL_AA0607AA", "version": 1 }, { "antigenic_formulas": "1,4,[5],12:f,g,s:[1,2]", "assembly_barcode": "SAL_AA0608AA", "city": null, "collection_date": null, "collection_month": null, "collection_time": null, "collection_year": null, "comment": null, "continent": "Europe", "country": "Denmark", "county": null, "created": "2015-08-26T15:04:33.345763+00:00", "lab_contact": "SSI", "lastmodified": "2015-08-26T15:04:33.345796+00:00", "latitude": null, "longitude": null, "postcode": null, "region": null, "secondary_sample_accession": "NA", "serotype": "Agona", "source_details": "", "source_niche": null, "source_type": "Human", "strain_barcode": "SAL_AA0608AA", "strain_name": "993212K", "uberstrain": "SAL_AA0608AA", "version": 1 }, { "antigenic_formulas": "4,12:f,g,s:-", "assembly_barcode": "SAL_AA0609AA", "city": null, "collection_date": null, "collection_month": null, "collection_time": null, "collection_year": 1969, "comment": null, "continent": "Europe", "country": "France", "county": null, "created": "2015-08-26T15:04:33.345763+00:00", "lab_contact": "F.X.Weill, Institut Pasteur", "lastmodified": "2015-08-26T15:04:33.345796+00:00", "latitude": null, "longitude": null, "postcode": null, "region": null, "secondary_sample_accession": "NA", "serotype": "Agona", "source_details": "Liver", "source_niche": null, "source_type": "Swine", "strain_barcode": "SAL_AA0609AA", "strain_name": "5-69", "uberstrain": "SAL_AA0609AA", "version": 1 } ], "links": { "paging": { "next": "http://enterobase.warwick.ac.uk/api/v2.0/senterica/strains?orderby=barcode&limit=5&sortorder=asc&offset=5&serotype=Agona" }, "records": 5, "total_records": 780 } }
Updated