-
Notifications
You must be signed in to change notification settings - Fork 34
API Sample
mattdenner edited this page May 9, 2011
·
3 revisions
The following is an example of the JSON returned for a sample, with the fields being documented after this section:
{
"sample": {
"actions": {
"read": "http://www.example.com/api/1/00000000-1111-2222-3333-444444444444",
"update": "http://www.example.com/api/1/00000000-1111-2222-3333-444444444444"
},
"sample_tubes": {
"actions": {
"read": "http://www.example.com/api/1/00000000-1111-2222-3333-444444444444/sample_tubes"
}
},
"uuid": "00000000-1111-2222-3333-444444444444",
"sanger": {
"name": "testing_the_api",
"sample_id": null,
"resubmitted": null,
"description": "sample_description"
},
"supplier": {
"sample_name": "supplier_name",
"storage_conditions": "sample_storage_conditions",
"collection": {
"date": "date_of_sample_collection"
},
"extraction": {
"date": "date_of_sample_extraction",
"method": "sample_extraction_method"
},
"purification": {
"purified": "sample_purified",
"method": "purification_method"
},
"measurements": {
"volume": "volume",
"concentration": "concentration",
"gc_content": "Neutral",
"gender": "Male",
"concentration_determined_by": "concentration_determined_by"
}
},
"source": {
"dna_source": "Genomic",
"cohort": "cohort",
"country": "country_of_origin",
"region": "geographical_region",
"ethnicity": "ethnicity",
"control": null
},
"family": {
"mother": "mother",
"father": "father",
"replicate": "replicate",
"sibling": "sibling"
},
"taxonomy": {
"id": null,
"strain": "sample_strain_att",
"common_name": "sample_common_name",
"organism": "organism"
},
"reference": {
"genome": null
},
"data_release": {
"visibility": "Hold",
"public_name": "sample_public_name",
"description": "sample_description",
"metagenomics": {
"genotype": "genotype",
"phenotype": "phenotype",
"age": "10 minutes",
"developmental_stage": "developmental_stage",
"cell_type": "cell_type",
"disease_state": "disease_state",
"compound": "compound",
"dose": "10 something",
"immunoprecipitate": "immunoprecipitate",
"growth_condition": "growth_condition",
"rnai": "rnai",
"organism_part": "organism_part",
"time_point": "time_point",
"treatment": "treatment",
"subject": "subject",
"disease": "disease"
},
"managed": {
"treatment": "treatment",
"subject": "subject",
"disease": "disease"
}
}
}
}
All of the fields present within the sample element can be assumed to be read-write except for those marked below as read-only. To create or update samples please read the sample manifest section of this documentation.
This section holds the information relevant to the institute.
-
sanger.name(read-only) -
sanger.sample_id(read-only) sanger.resubmittedsanger.description
Holds the information that the supplier is providing.
supplier.sample_namesupplier.storage_conditionssupplier.collection.datesupplier.extraction.datesupplier.extraction.methodsupplier.purification.purifiedsupplier.purification.method-
supplier.measurements.volumenumeric value in micro litres -
supplier.measurements.concentrationnumeric value in nanograms -
supplier.measurements.gc_contentone ofNeutral,High AT, orHigh GC -
supplier.measurements.genderone ofMale,Female,Mixed,Hermaphrodite,Unknown, orNot Applicable supplier.measurements.concentration_determined_by
-
source.dna_sourceone ofGenomic,Whole Genome Amplified,Blood,Cell Line,Saliva, orBrain source.cohortsource.countrysource.regionsource.ethnicitysource.control
family.motherfamily.fatherfamily.replicatefamily.sibling
taxonomy.idtaxonomy.straintaxonomy.common_nametaxonomy.organism
reference.genome
## data_release section
Fields in this section control the data release of the sample information. Not all of them need to be provided, especially if you are only interested in the metagenomics or managed data release.
data_release.accession_numberdata_release.sample_type-
data_release.visibilityone ofHold,Public, orProtect(read-only) data_release.public_namedata_release.descriptiondata_release.metagenomics.genotypedata_release.metagenomics.phenotypedata_release.metagenomics.agedata_release.metagenomics.developmental_stagedata_release.metagenomics.cell_typedata_release.metagenomics.disease_statedata_release.metagenomics.compounddata_release.metagenomics.dosedata_release.metagenomics.immunoprecipitatedata_release.metagenomics.growth_conditiondata_release.metagenomics.rnaidata_release.metagenomics.organism_partdata_release.metagenomics.time_pointdata_release.metagenomics.treatmentdata_release.metagenomics.subjectdata_release.metagenomics.diseasedata_release.managed.treatmentdata_release.managed.subjectdata_release.managed.disease