mecfs_bio.build_system.task.ppp_database.hapmap3_membership_task
Normalized HapMap3 membership list for the PPP variant index (HapMap3 mode).
Reads the HapMap3 hg38 snplist bundled inside the gwaslab package -- guaranteed present because gwaslab is a pinned pyproject.toml dependency, so no download or rehosting is needed -- and normalizes it to the membership contract (CHR, POS[hg38], EA, NEA, rsID). Allele orientation here is arbitrary (the index adopts the template protein's orientation); only the allele set is used for matching.
Classes:
-
Hapmap3MembershipTask–Produce the normalized HapMap3 membership list (CHR, POS, EA, NEA, rsID) from
Functions:
-
bundled_hapmap3_hg38_snplist_path–Path to the HapMap3 hg38 snplist bundled in the installed gwaslab package.
-
normalize_hapmap3_snplist–Read the gwaslab HapMap3 snplist and normalize to the membership contract.
Attributes:
MEMBERSHIP_COLUMNS
module-attribute
MEMBERSHIP_COLUMNS = [
GWASLAB_CHROM_COL,
GWASLAB_POS_COL,
GWASLAB_EFFECT_ALLELE_COL,
GWASLAB_NON_EFFECT_ALLELE_COL,
GWASLAB_RSID_COL,
]
Hapmap3MembershipTask
Bases: GeneratingTask
Produce the normalized HapMap3 membership list (CHR, POS, EA, NEA, rsID) from the gwaslab-bundled hg38 snplist.
Methods:
Attributes:
-
deps(list[Task]) – -
meta(ReferenceFileMeta) –
create
classmethod
Source code in mecfs_bio/build_system/task/ppp_database/hapmap3_membership_task.py
execute
Source code in mecfs_bio/build_system/task/ppp_database/hapmap3_membership_task.py
bundled_hapmap3_hg38_snplist_path
Path to the HapMap3 hg38 snplist bundled in the installed gwaslab package.
Source code in mecfs_bio/build_system/task/ppp_database/hapmap3_membership_task.py
normalize_hapmap3_snplist
Read the gwaslab HapMap3 snplist and normalize to the membership contract.