mecfs_bio.build_system.task.sldsc.prepare_sldsc_baseline_task
Adapter Task: convert ldsc baseline LD scores (chromosome-split, @ pattern) and regression-weight LD scores into a prepared S-LDSC baseline (see prepared_sldsc_reference). Zero-variance baseline columns are dropped here, as ldsc's _check_variance does on the full reference, and the baseline is restricted to SNPs that have a weight LD score (ldsc inner-joins the weights; the HapMap3 weights omit the MHC region).
Classes:
-
PrepareSLDSCBaselineTask–baseline_pattern: path inside the baseline directory with @ standing for the chromosome,
PrepareSLDSCBaselineTask
Bases: Task
baseline_pattern: path inside the baseline directory with @ standing for the chromosome, e.g. baseline_v1.2/baseline.@ weights_pattern: same, for the regression-weight LD scores (exactly one LD column).
Methods:
Attributes:
-
baseline_directory_task(Task) – -
baseline_pattern(str) – -
deps(list[Task]) – -
meta(Meta) – -
weights_directory_task(Task) – -
weights_pattern(str) –
create
classmethod
create(
asset_id: str,
baseline_directory_task: Task,
baseline_pattern: str,
weights_directory_task: Task,
weights_pattern: str,
) -> PrepareSLDSCBaselineTask