mecfs_bio.build_system.task.gwaslab.gwaslab_region_plots_task
Classes:
-
GwasLabRegionPlotsFromLeadVariantsTask–A task to generate region plots near the lead variants described by GWAS summary statistics
Functions:
Attributes:
-
logger–
GwasLabRegionPlotsFromLeadVariantsTask
Bases: Task
A task to generate region plots near the lead variants described by GWAS summary statistics Useful for visualizing the local significance structure around lead variants, and their nearby genes. see https://cloufield.github.io/gwaslab/tutorial_3.4/#quick-regional-plot-without-ld-information Gwaslab can also use a vcf reference file to plot the linkage disequilibrium structure around the lead variants (vcf_name_for_lead_variants). Doing this at a reasonable speed requires the installation of the "tabix" binary.
Methods:
-
execute–
Attributes:
-
deps(list[Task]) – -
meta(GWASLabRegionPlotsMeta) – -
plot_top(int | None) – -
short_id(AssetId) – -
vcf_name_for_ld(GWASLabVCFRefFile | None) –
execute
Source code in mecfs_bio/build_system/task/gwaslab/gwaslab_region_plots_task.py
get_top_var_df
Source code in mecfs_bio/build_system/task/gwaslab/gwaslab_region_plots_task.py
plot_region_around_variant
plot_region_around_variant(
sumstats: Sumstats,
chrom: int,
pos: int,
buffer: int,
output_path: Path,
vcf_name_for_ld: GWASLabVCFRefFile | None,
) -> None
Source code in mecfs_bio/build_system/task/gwaslab/gwaslab_region_plots_task.py
plot_region_around_variants
plot_region_around_variants(
sumstats: Sumstats,
variants: Sequence[Variant],
output_dir: Path,
vcf_name_for_ld: GWASLabVCFRefFile | None,
buffer: int = 500000,
) -> None