mecfs_bio.build_system.task.gwaslab.gwaslab_util
Classes:
-
RefDownloader– -
Variant–Represents a genetic variant.
Functions:
-
df_to_variants– -
expected_reference_md5–The checksum gwaslab records for a reference, or None if it records none.
-
gwaslab_download_ref_if_missing–Return the local path to a gwaslab reference, downloading it when absent and
Attributes:
RefDownloader
Bases: Protocol
Variant
Represents a genetic variant.
Attributes:
-
chromosome(int) – -
effect_allele(str) – -
id(str) – -
id_normalized(str) – -
non_effect_allele(str) – -
position(int) –
df_to_variants
Source code in mecfs_bio/build_system/task/gwaslab/gwaslab_util.py
expected_reference_md5
The checksum gwaslab records for a reference, or None if it records none.
gwaslab leaves this blank for many entries (the genome fastas, the GTFs), so a None here means unverifiable, not invalid.
Source code in mecfs_bio/build_system/task/gwaslab/gwaslab_util.py
gwaslab_download_ref_if_missing
gwaslab_download_ref_if_missing(
ref: str,
path_lookup: RefPathLookup = _local_reference_path,
downloader: RefDownloader = _download_reference,
checksum: ChecksumCalculator = calc_md5_checksum,
) -> Path
Return the local path to a gwaslab reference, downloading it when absent and re-downloading it when its checksum does not match the one gwaslab records.