search_callsets
Exports per-sample metadata from a variant run to CSV, including sample names, callset IDs, and additionalInfo attributes. Use when sample-level details are needed instead of germplasm-level.
Instructions
Dump per-sample (callset) metadata for a run: names + additionalInfo attributes.
Retrieves the run's callsets via BrAPI search/callsets and writes
sample_metadata.csv (one row per sample) with sample_name, callSetName,
sampleDbId, callSetDbId and every attribute present in the callsets'
additionalInfo (e.g. ICARDA_IG, SeedID, Country, Latitude, Longitude, SiteCode,
PopulationType).
sample_name is the same name the analysis tools use for the sample, so the file
joins to their outputs; callSetName keeps the server's raw label, which on some
builds is the more human-readable of the two.
This is the sample/callset-level counterpart to get_germplasm_metadata: use it
when the germplasm (accession) level exposes no attributes but the samples do.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | Directory for the output CSV(s) (default ./gigwa_results/<module>/). | |
| variant_set_db_id | Yes | BrAPI variantSetDbId identifying the run (MODULE§project§run) -- copy the exact string from list_variant_sets / list_content, never assemble one by hand: the middle segment is a numeric project index, not the project's name, and a wrong guess fails with an opaque HTTP 500 rather than a clear error. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |