List all DRS objects related to a biosample.
POST
/biosamples
const url = 'https://your-candig-domain/drs/ga4gh/drs/v1/biosamples';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"program_ids":["example"],"submitter_sample_ids":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-candig-domain/drs/ga4gh/drs/v1/biosamples \ --header 'Content-Type: application/json' \ --data '{ "program_ids": [ "example" ], "submitter_sample_ids": [ "example" ] }'List all DRS objects matching an array of submitter_sample_ids. Only authorized for site admins and authzed services.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”verified_only
boolean
Only return analyses with verified files
Request Body
Section titled “Request Body”List of submitter sample ids requested
Media typeapplication/json
object
program_ids
Array<string>
submitter_sample_ids
Array<string>
Examplegenerated
{ "program_ids": [ "example" ], "submitter_sample_ids": [ "example" ]}Responses
Section titled “Responses”The DrsObjects were found successfully
Media typeapplication/json
Array
Any of:
object
biosample_id
MoH submitter_sample_id from a Sample Registration associated with a specimen.
string
program
MoH program ID
string
experiments
Arrays of associated experiment IDs derived from the biosample, keyed by type.
object
wgs
Array<string>
wts
Array<string>
runs
An array of associated run IDs that describe raw reads derived from biosample.
Array<string>
analyses
Arrays of associated analysis IDs based on the biosample, keyed by analysis type.
object
reference_alignment
Array<string>
sequence_variation
Array<string>
sequence_annotation
Array<string>
Examplegenerated
[ { "biosample_id": "example", "program": "example", "experiments": { "wgs": [ "example" ], "wts": [ "example" ] }, "runs": [ "example" ], "analyses": { "reference_alignment": [ "example" ], "sequence_variation": [ "example" ], "sequence_annotation": [ "example" ] } }]