mecfs_bio.asset_generator.csf_coloc_asset_generator
Asset generator for colocalizing one trait GWAS with the Western et al. 2024 CSF aptamers: the CSF source (HapMap3 CSF hit table, remote-tabix window fetcher over the GWAS Catalog harmonised files, Entrez-id gene coordinates from the GRCh38 MAGMA gene table) plugged into the shared protein coloc generator.
The pair budget is larger than PPP's (CSF_SELECTION: 200 pairs, 20 per locus). PPP's budget exists because one PPP pair costs a whole Synapse tar download; one CSF pair costs a tabix index download plus a range read of a few seconds, so 200 pairs take roughly 15-30 minutes. The per-locus cap is raised because several aptamers often target one gene.
Functions:
-
generate_csf_coloc_tasks–base_name: prefix of the asset ids ({base_name}_csf_coloc, ...).
Attributes:
generate_csf_coloc_tasks
generate_csf_coloc_tasks(
base_name: str,
trait_task: Task,
trait_model: TraitModel,
config: ColocRunConfig = CSF_COLOC_CONFIG,
h4_threshold: float = 0.8,
manifest_path: Path = CSF_APTAMER_MANIFEST_PATH,
) -> ColocTaskGroup
base_name: prefix of the asset ids ({base_name}_csf_coloc, ...). trait_task: the trait GWAS, genome-reference harmonized to GRCh38. trait_model: quantitative or case-control, as coloc.abf needs.