mecfs_bio.build_system.task.magma.magma_gene_analysis_task
Classes:
Functions:
Attributes:
GENE_ANALYSIS_OUTPUT_STEM_NAME
module-attribute
MagmaGeneAnalysisTask
Bases: Task
Methods:
-
create– -
create_with_prebuilt_annotation–Create a MagmaGeneAnalysisTask that consumes a pre-built annotation file
-
execute–
Attributes:
-
deps(list[Task]) – -
duplicate_mode(DuplicateMode | None) – -
ld_ref_file_stem(str) – -
magma_annotation_id(AssetId) – -
magma_annotation_task(Task) – -
magma_binary_id(AssetId) – -
magma_binary_task(Task) – -
magma_ld_ref_id(AssetId) – -
magma_ld_ref_task(Task) – -
magma_p_value_task(Task) – -
meta(Meta) – -
p_value_id(AssetId) – -
p_value_meta(Meta) – -
sample_size(int) – -
synonym_mode(SynonymMode) –
create
classmethod
create(
asset_id: str,
magma_annotation_task: Task,
magma_p_value_task: Task,
magma_binary_task: Task,
magma_ld_ref_task: Task,
ld_ref_file_stem: str,
sample_size: int,
)
Source code in mecfs_bio/build_system/task/magma/magma_gene_analysis_task.py
create_with_prebuilt_annotation
classmethod
create_with_prebuilt_annotation(
asset_id: str,
magma_annotation_task: Task,
magma_p_value_task: Task,
magma_binary_task: Task,
magma_ld_ref_task: Task,
ld_ref_file_stem: str,
sample_size: int,
sub_dir_suffix: PurePath | None = None,
)
Create a MagmaGeneAnalysisTask that consumes a pre-built annotation file
(e.g. an H-MAGMA tissue-specific .genes.annot reference file) instead of
an annotation produced by an upstream MagmaAnnotateTask. trait/project are
derived from magma_p_value_task.meta since the annotation has no
GWAS-derived metadata. sub_dir_suffix is appended to the p-value
task's sub_dir to isolate the output (e.g. PurePath("h_magma")).