get_germplasm_metadata
Retrieve per-individual germplasm attributes stored in Gigwa for a selected variant set and export them to a CSV, enabling downstream analysis by joining on sample names.
Instructions
Fetch server-stored per-individual metadata (germplasm attributes) for a database.
Reads the attributes already stored in Gigwa (imported earlier via import_metadata
or a BrAPI source) for the module of variant_set_db_id and writes
germplasm_metadata.csv — one row per accession, with attribute columns.
Which column to join on. germplasm_name is Gigwa's individual id, which on
real data does not match the sample names the analysis tools use. Join on the
sample_name column instead: it is the name diversity_fst /
diversity_by_group match against (via metadata_tsv, which expects tab-
separated input — convert the CSV first). Where one individual carries several samples
the column holds them ;-joined and needs splitting first. It is blank when the
callsets could not be read.
For the sample/callset level itself — raw callSetName, sampleDbId and per-sample
additionalInfo — use search_callsets instead.
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 |