window_based_clumping
gentropy.window_based_clumping.WindowBasedClumpingStep
¶
Apply window based clumping on summary statistics datasets.
Source code in src/gentropy/window_based_clumping.py
10 11 12 13 14 15 16 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 |
|
__init__(session: Session, summary_statistics_input_path: str, study_locus_output_path: str, distance: int = WindowBasedClumpingStepConfig().distance, gwas_significance: float = WindowBasedClumpingStepConfig().gwas_significance, collect_locus: bool = WindowBasedClumpingStepConfig().collect_locus, collect_locus_distance: int = WindowBasedClumpingStepConfig().collect_locus_distance, inclusion_list_path: str | None = WindowBasedClumpingStepConfig().inclusion_list_path) -> None
¶
Run window-based clumping step.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
session |
Session
|
Session object. |
required |
summary_statistics_input_path |
str
|
Path to the harmonized summary statistics dataset. |
required |
study_locus_output_path |
str
|
Output path for the resulting study locus dataset. |
required |
distance |
int
|
Distance, within which tagging variants are collected around the semi-index. Optional. |
distance
|
gwas_significance |
float
|
GWAS significance threshold. Defaults to 5e-8. |
gwas_significance
|
collect_locus |
bool
|
Whether to collect locus around semi-indices. Optional. |
collect_locus
|
collect_locus_distance |
int
|
Distance, within which tagging variants are collected around the semi-index. Optional. |
collect_locus_distance
|
inclusion_list_path |
str | None
|
Path to the inclusion list (list of white-listed study identifier). Optional. |
inclusion_list_path
|
Check WindowBasedClumpingStepConfig object for default values.
Source code in src/gentropy/window_based_clumping.py
13 14 15 16 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 |
|