malariagen_data.af1.Af1.add_extra_metadata#

Af1.add_extra_metadata(data: DataFrame, on: str = 'sample_id')#

Add extra sample metadata, e.g., including additional columns which you would like to use to query and group samples.

Parameters#

dataDataFrame

A data frame with one row per sample. Must include either a “sample_id” or “partner_sample_id” column.

onstr, optional, default: ‘sample_id’

Name of column to use when merging with sample metadata.

Notes#

The values in the column containing sample identifiers must be unique.