Multi-GWAS gene-overlap analysis, similarity heatmaps, Circos-style visualization, and reporting.
Project description
Tardigrade GWAS
A lightweight Python library for multi-GWAS gene-overlap analysis, Jaccard similarity heatmaps, Circos-style visualization, and text/CSV reporting.
Developed by Amir Izadi and Zahra Aghabeygi.
Installation
pip install tardigrade-gwas
Analyze multiple GWAS files
from tardigrade_gwas import analyze_files
result = analyze_files(
["disease_a.csv", "disease_b.tsv"],
names=["Disease A", "Disease B"],
)
print(result.report_text)
print(result.similarity_table)
print(result.consensus_table.head())
Default columns:
- P value:
P-VALUE - Gene:
MAPPED_GENE - Chromosome:
CHR_ID - Position:
CHR_POS
The P-value threshold defaults to 5e-8. Common column aliases are detected case-insensitively, and all defaults can be overridden.
Similarity heatmap
from tardigrade_gwas import analyze_files, plot_similarity_heatmap
result = analyze_files(["disease_a.csv", "disease_b.tsv"])
figure = plot_similarity_heatmap(result)
figure.show()
# Save only when you choose to:
figure.savefig("heatmap.png", dpi=300, bbox_inches="tight")
Circos-style plot
from tardigrade_gwas import plot_circos
figure = plot_circos("disease_a.csv")
figure.show()
Supported files
CSV, TSV, TXT, and gzip-compressed CSV/TSV files are supported.
License
MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tardigrade_gwas-1.0.0.tar.gz.
File metadata
- Download URL: tardigrade_gwas-1.0.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
684a0e451d5f07458dfa1f68a9b3841fc40491d3e868d99b67cafa54690e7251
|
|
| MD5 |
cb6329d58bf6425c8304e106325bb33e
|
|
| BLAKE2b-256 |
a85fe325d108d6fba1e2c3ba316f320d9042b106fe66d8ea4fe94197527fdf82
|
File details
Details for the file tardigrade_gwas-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tardigrade_gwas-1.0.0-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1ae3d3d5b583c9db2d2d49c950498cb3704173f10cf0ed1ee5c82ffc96450e4
|
|
| MD5 |
ad0425fe5a17892eed6d83899046069b
|
|
| BLAKE2b-256 |
0407c3d3d48280712a25a6953bacfecf6bf2cbb031bd71537915101170f463e8
|