malariagen_data.ag3.Ag3.karyotype#

Ag3.karyotype(inversion: Literal['2La', '2Rb', '2Rc_gam', '2Rc_col', '2Rd', '2Rj'], sample_sets: Sequence[str] | str | None = None, sample_query: str | None = None, sample_query_options: dict | None = None) DataFrame#

Infer karyotype from tag SNPs for a given inversion in Ag.

Parameters#

inversion{‘2La’, ‘2Rb’, ‘2Rc_gam’, ‘2Rc_col’, ‘2Rd’, ‘2Rj’}

Name of inversion to infer karyotype for.

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.

Returns#

DataFrame