Skip to content

Commit 477edb9

Browse files
spec: add manhattan-gwas specification (#2929)
## New Specification: `manhattan-gwas` Related to #2925 --- ### specification.md # manhattan-gwas: Manhattan Plot for GWAS ## Description A Manhattan plot visualizes genome-wide association study (GWAS) results by displaying -log10 transformed p-values across chromosomal positions. Points are arranged by genomic position along the x-axis with alternating colors for each chromosome, making it easy to identify significant associations. A horizontal threshold line indicates genome-wide significance (typically p < 5×10⁻⁸). This plot is essential for identifying genetic variants associated with traits or diseases. ## Applications - Identifying significant SNPs in genome-wide association studies for complex diseases - Visualizing genetic association results across the entire genome in pharmacogenomics research - Presenting GWAS findings in scientific publications and research presentations - Screening for candidate loci in agricultural genomics and breeding programs ## Data - `chromosome` (categorical) - Chromosome identifier (1-22, X, Y, or MT) - `position` (integer) - Base pair position along the chromosome - `p_value` (float) - P-value from association test (will be -log10 transformed) - `snp_id` (string, optional) - SNP identifier for labeling significant hits - Size: 100,000 - 1,000,000+ variants typical for GWAS - Example: Simulated GWAS data with random p-values and some significant peaks ## Notes - X-axis should show cumulative genomic position with chromosome labels centered below their region - Use alternating colors (e.g., blue/gray) for adjacent chromosomes for visual distinction - Include horizontal dashed line at -log10(5×10⁻⁸) ≈ 7.3 for genome-wide significance threshold - Optionally include suggestive threshold line at -log10(1×10⁻⁵) = 5 - Consider point size reduction for dense datasets to prevent overplotting - Significant SNPs above threshold may be labeled or highlighted with different color --- **Next:** Add `approved` label to the issue to merge this PR. --- :robot: *[spec-create workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20612566213)* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 8ed3e2e commit 477edb9

2 files changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# manhattan-gwas: Manhattan Plot for GWAS
2+
3+
## Description
4+
5+
A Manhattan plot visualizes genome-wide association study (GWAS) results by displaying -log10 transformed p-values across chromosomal positions. Points are arranged by genomic position along the x-axis with alternating colors for each chromosome, making it easy to identify significant associations. A horizontal threshold line indicates genome-wide significance (typically p < 5×10⁻⁸). This plot is essential for identifying genetic variants associated with traits or diseases.
6+
7+
## Applications
8+
9+
- Identifying significant SNPs in genome-wide association studies for complex diseases
10+
- Visualizing genetic association results across the entire genome in pharmacogenomics research
11+
- Presenting GWAS findings in scientific publications and research presentations
12+
- Screening for candidate loci in agricultural genomics and breeding programs
13+
14+
## Data
15+
16+
- `chromosome` (categorical) - Chromosome identifier (1-22, X, Y, or MT)
17+
- `position` (integer) - Base pair position along the chromosome
18+
- `p_value` (float) - P-value from association test (will be -log10 transformed)
19+
- `snp_id` (string, optional) - SNP identifier for labeling significant hits
20+
- Size: 100,000 - 1,000,000+ variants typical for GWAS
21+
- Example: Simulated GWAS data with random p-values and some significant peaks
22+
23+
## Notes
24+
25+
- X-axis should show cumulative genomic position with chromosome labels centered below their region
26+
- Use alternating colors (e.g., blue/gray) for adjacent chromosomes for visual distinction
27+
- Include horizontal dashed line at -log10(5×10⁻⁸) ≈ 7.3 for genome-wide significance threshold
28+
- Optionally include suggestive threshold line at -log10(1×10⁻⁵) = 5
29+
- Consider point size reduction for dense datasets to prevent overplotting
30+
- Significant SNPs above threshold may be labeled or highlighted with different color
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Specification-level metadata for manhattan-gwas
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: manhattan-gwas
5+
title: Manhattan Plot for GWAS
6+
7+
# Specification tracking
8+
created: 2025-12-31T05:13:06Z
9+
updated: null
10+
issue: 2925
11+
suggested: MarkusNeusinger
12+
13+
# Classification tags (applies to all library implementations)
14+
# See docs/concepts/tagging-system.md for detailed guidelines
15+
tags:
16+
plot_type:
17+
- scatter
18+
- manhattan
19+
- point
20+
data_type:
21+
- numeric
22+
- categorical
23+
- genomic
24+
domain:
25+
- science
26+
- bioinformatics
27+
- genetics
28+
- healthcare
29+
features:
30+
- threshold-line
31+
- color-mapped
32+
- chromosome-segmented

0 commit comments

Comments
 (0)