跳转至

人群、样本与连锁查询:参数与补充说明

用法和示例见功能教程。

各功能按作用、API、输入、输出、示例代码和结果说明介绍。运行前按说明准备凭据、本地文件与可选依赖;远程结果随数据库版本与查询时间变化。

列出 IGSR 与千人基因组数据集合

dnakit.databases.igsr_list_data_collections(*, operation=None, limit=None, verbose=True)

参数 类型 必填 / 默认值 说明与约束
operation string None Operation type (fixed: list_data_collections).
limit integer None Maximum number of results to return.
verbose bool True 运行提示开关。

检索千人基因组人群信息

dnakit.databases.igsr_search_populations(*, operation=None, superpopulation=None, query=None, limit=None, verbose=True)

参数 类型 必填 / 默认值 说明与约束
operation string None Operation type (fixed: search_populations).
superpopulation string | null None Filter by superpopulation code: AFR (African), AMR (Admixed American), EAS (East Asian), EUR (European), SAS (South Asian). Leave empty for all.
query string | null None Free-text search query to find populations by name or description (e.g., 'Chinese', 'Yoruba', 'British').
limit integer None Maximum number of results to return.
verbose bool True 运行提示开关。

按人群或集合检索千人基因组样本

dnakit.databases.igsr_search_samples(*, operation=None, population=None, data_collection=None, sample_name=None, limit=None, verbose=True)

参数 类型 必填 / 默认值 说明与约束
operation string None Operation type (fixed: search_samples).
population string | null None Filter by population code (e.g., 'CHB', 'YRI', 'GBR', 'CEU'). Use IGSR_search_populations to find valid codes.
data_collection string | null None Filter by data collection title (e.g., '1000 Genomes 30x on GRCh38', '1000 Genomes on GRCh38').
sample_name string | null None Look up specific sample by name (e.g., 'HG00096', 'NA12878').
limit integer None Maximum number of results to return.
verbose bool True 运行提示开关。

dnakit.databases.ldlink_get_proxies(*, variant, population=None, r2_threshold=None, genome_build=None, limit=None, verbose=True)

参数 类型 必填 / 默认值 说明与约束
variant string 必填 Query SNP rsID, e.g. 'rs7903146'.
population string | null None 1000 Genomes population code (default 'CEU'). Examples: 'CEU' (European), 'YRI' (African), 'CHB' (East Asian), or super-populations 'EUR'/'AFR'/'EAS'/'SAS'/'AMR'.
r2_threshold number | null None Minimum R2 to report (default 0.8; high LD).
genome_build string | null None 'grch38' (default) or 'grch37'.
limit integer | null None Max proxies to return (1-500, default 50).
verbose bool True 运行提示开关。