get_sample

read-onlyidempotent

Get details about a specific sample by its sample_id.

Returns filename, file size, processing timestamp, upload request ID, and HaploHub metadata when available. provenance describes how the sample was produced — the imputation pipeline, tools, reference panel, and source→target genome build — or null for samples processed before provenance was recorded.

Parameters

sample_id
string
required

The sample identifier (e.g. "ABCDEFGHIJ001") from list_samples.

Response

file_size
integer
required

Size of the uploaded file in bytes.

label
string
required

Short display name, e.g. "Sample #1".

processed_at
string
required
provenance
object | null
required

Null for samples processed before provenance was recorded, and when the upstream lookup failed.

provenance.imputation_tool
string | null
required

Tool of the imputation step, e.g. "beagle".

provenance.impute_reason
string | null
required
provenance.is_imputed
boolean | null
required
provenance.pipeline
object[]
required
provenance.pipeline[].finished_at
string | null
required
provenance.pipeline[].started_at
string | null
required
provenance.pipeline[].step
string | null
required

Step name, e.g. "beagle-impute".

provenance.pipeline[].tools
string[]
required

Tools the step ran, each as "name version".

provenance.processed_at
string | null
required
provenance.reference_panel
string | null
required

Id of the imputation reference panel.

provenance.source_build
string | null
required

Genome build of the uploaded file, e.g. "GRCh37".

provenance.source_upload
object
required

The uploaded file a sample came from.

provenance.source_upload.filename
string
required
provenance.source_upload.uploaded_at
string
required
provenance.target_build
string | null
required

Genome build of the imputation reference panel.

provenance.variant_count
integer | null
required
sample_id
string
required

Pass this to get_sample, query_variants, schedule_run and list_runs.

source_filename
string
required
upload_request_id
string
required
haplohub_created
string | null
optional

When HaploHub created the sample. Absent when the upstream lookup failed.