malariagen_data.ag3.Ag3.phenotype_data#
- Ag3.phenotype_data(sample_sets: Sequence[str] | str | None = None, sample_query: str | None = None, sample_query_options: dict | None = None, cohort_size: int | None = None, min_cohort_size: int | None = None, max_cohort_size: int | None = None) DataFrame #
Load phenotypic data from insecticide resistance bioassays.
Parameters#
- sample_setssequence of str or str or None, optional
List of sample sets and/or releases. Can also be a single sample set or release.
- sample_querystr or None, optional
A pandas query string to be evaluated against the sample metadata, to select samples to be included in the returned data.
- sample_query_optionsdict or None, optional
A dictionary of arguments that will be passed through to pandas query() or eval(), e.g. parser, engine, local_dict, global_dict, resolvers.
- cohort_sizeint or None, optional
Randomly down-sample to this value if the number of samples in the cohort is greater. Raise an error if the number of samples is less than this value.
- min_cohort_sizeint or None, optional
Minimum cohort size. Raise an error if the number of samples is less than this value.
- max_cohort_sizeint or None, optional
Randomly down-sample to this value if the number of samples in the cohort is greater.
Returns#
- dfDataFrame
DataFrame containing phenotype data merged with sample metadata. Includes sample identifiers, phenotypic measurements, and experimental conditions.