cellink.resources.get_gwas_catalog_study_summary_stats#
- cellink.resources.get_gwas_catalog_study_summary_stats(accession_id, dest=None, return_path=False, genome_build=None, **params)#
Download full summary statistics for a GWAS study.
- Parameters:
accession_id (str) – GWAS study accession ID.
dest (str or Path, optional) – Destination path to save the summary statistics file. Defaults to data home directory.
return_path (bool, default=False) – If True, return the local file path instead of reading the file.
genome_build (str, optional) – Preferred genome build: ‘GRCh38’, ‘GRCh37’, or None for automatic priority selection. Aliases: ‘hg38’/’build38’ for GRCh38, ‘hg19’/’build37’ for GRCh37. When specified, skips harmonised files and looks for build-specific files in base directory.
**params (
Any) – Additional query parameters to pass to the API.
- Return type:
DataFrame|Path- Returns:
pd.DataFrame or Path DataFrame containing the summary statistics, or Path to the downloaded file if return_path=True.