credible_set_qc
gentropy.credible_set_qc.CredibleSetQCStep
¶
Credible set quality control step for fine mapped StudyLoci.
Source code in src/gentropy/credible_set_qc.py
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 68 69 70 71 72 73 74 75 76 77 |
|
__init__(session: Session, credible_sets_path: str, output_path: str, p_value_threshold: float, purity_min_r2: float, clump: bool, ld_index_path: str | None, study_index_path: str | None, ld_min_r2: float | None, n_partitions: int | None) -> None
¶
Run credible set quality control step.
Check defaults used by steps in hydra configuration gentropy.config.CredibleSetQCStepConfig
Due to the large number of partitions at the input credible_set_path after finemapping, the best strategy it is to repartition and save the dataset after deduplication.
The clump
mode will perform additional LD based clumping on the input credible sets.
Enabling clump
mode requires providing ld_index_path
, study_index_path
and ld_min_r2
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
session
|
Session
|
Session object. |
required |
credible_sets_path
|
str
|
Path to credible sets file. |
required |
output_path
|
str
|
Path to write the output file. |
required |
p_value_threshold
|
float
|
P-value threshold for credible set quality control. |
required |
purity_min_r2
|
float
|
Minimum R2 for purity estimation. |
required |
clump
|
bool
|
Whether to clump the credible sets by LD. |
required |
ld_index_path
|
str | None
|
Path to LD index file. |
required |
study_index_path
|
str | None
|
Path to study index file. |
required |
ld_min_r2
|
float | None
|
Minimum R2 for LD estimation. |
required |
n_partitions
|
int | None
|
Number of partitions to coalesce the dataset after reading. Defaults to 200 |
required |
Source code in src/gentropy/credible_set_qc.py
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 68 69 70 71 72 73 74 75 76 77 |
|
gentropy.config.CredibleSetQCStepConfig
dataclass
¶
Bases: StepConfig
Credible set quality control step configuration.
Source code in src/gentropy/config.py
608 609 610 611 612 613 614 615 616 617 618 619 620 621 |
|