gwas_catalog_ingestion
gentropy.gwas_catalog_ingestion.GWASCatalogIngestionStep
¶
GWAS Catalog ingestion step to extract GWASCatalog Study and StudyLocus tables.
!!! note This step currently only processes the GWAS Catalog curated list of top hits.
Source code in src/gentropy/gwas_catalog_ingestion.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
__init__(session: Session, catalog_study_files: list[str], catalog_ancestry_files: list[str], catalog_sumstats_lut: str, catalog_associations_file: str, gnomad_variant_path: str, catalog_studies_out: str, catalog_associations_out: str, gwas_catalog_study_curation_file: str | None = None, inclusion_list_path: str | None = None) -> None
¶
Run step.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
session |
Session
|
Session object. |
required |
catalog_study_files |
list[str]
|
List of raw GWAS catalog studies file. |
required |
catalog_ancestry_files |
list[str]
|
List of raw ancestry annotations files from GWAS Catalog. |
required |
catalog_sumstats_lut |
str
|
GWAS Catalog summary statistics lookup table. |
required |
catalog_associations_file |
str
|
Raw GWAS catalog associations file. |
required |
gnomad_variant_path |
str
|
Path to GnomAD variants. |
required |
catalog_studies_out |
str
|
Output GWAS catalog studies path. |
required |
catalog_associations_out |
str
|
Output GWAS catalog associations path. |
required |
gwas_catalog_study_curation_file |
str | None
|
file of the curation table. Optional. |
None
|
inclusion_list_path |
str | None
|
optional inclusion list (parquet) |
None
|
Source code in src/gentropy/gwas_catalog_ingestion.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|