mecfs_bio.asset_generator.ppp_coloc_asset_generator
Asset generator for colocalizing one trait GWAS with the UKB-PPP proteins: the PPP source (protein hit table, PPP manifest fetcher, Sun et al. 2023 ST3 gene coordinates) plugged into the shared protein coloc generator, so each trait's module is a single call.
Functions:
-
generate_ppp_coloc_tasks–base_name: prefix of the asset ids.
generate_ppp_coloc_tasks
generate_ppp_coloc_tasks(
base_name: str,
trait_task: Task,
trait_model: TraitModel,
config: ColocRunConfig = ColocRunConfig(),
h4_threshold: float = 0.8,
hit_table_task: ProteinHitTableTask = HAPMAP_3_PPP_HIT_TABLE_5E8,
manifest_path: Path = EUR_DISCOVERY_PPP_MANIFEST_PATH,
) -> ColocTaskGroup
base_name: prefix of the asset ids. trait_task: the trait GWAS, genome-reference harmonized to GRCh38. trait_model: quantitative or case-control, as coloc.abf needs. manifest_path: the PPP cohort whose dense summary statistics are fetched; must match the cohort of hit_table_task.