pycmplot 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,182 @@
1
+ Metadata-Version: 2.4
2
+ Name: pycmplot
3
+ Version: 0.1.0
4
+ Summary: Multi-track circular and linear Manhattan plot generation for GWAS summary statistics
5
+ Author: Kevin Esoh
6
+ Author-email: Kevin Esoh <kesohku1@jhmi.edu>
7
+ License: MIT
8
+ Requires-Python: >=3.9
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: pandas>=1.5
12
+ Requires-Dist: numpy>=1.23
13
+ Requires-Dist: matplotlib>=3.6
14
+ Requires-Dist: pillow>=9.0
15
+ Requires-Dist: pycirclize>=0.6
16
+ Requires-Dist: natsort>=8.0
17
+ Requires-Dist: adjustText>=0.8
18
+ Requires-Dist: pyliftover>=0.4
19
+ Provides-Extra: dev
20
+ Requires-Dist: pytest; extra == "dev"
21
+ Requires-Dist: black; extra == "dev"
22
+ Requires-Dist: ruff; extra == "dev"
23
+ Dynamic: license-file
24
+
25
+ # pycmplot
26
+
27
+ Multi-track **circular** and **linear** Manhattan plot generation for GWAS summary statistics.
28
+
29
+ ```
30
+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
31
+ | PACKAGE FOR CIRCULAR AND LINEAR MANHATTAN PLOTTING |
32
+ | Kevin Esoh, 2026 |
33
+ | kesohku1@jh.edu |
34
+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
35
+ ```
36
+
37
+ ---
38
+
39
+ ## Installation
40
+
41
+ ### From PyPI
42
+ ```bash
43
+ pip install pycmplot
44
+ ```
45
+
46
+
47
+ ### From source code
48
+ ```bash
49
+ wget <url>
50
+
51
+ tar zxvf ...
52
+
53
+ cd pycmplot-xxx
54
+
55
+ pip install -e .
56
+ ```
57
+
58
+
59
+ ### From GitHub
60
+ ```bash
61
+ git clone https://github.com/esohkevin/pycmplot.git
62
+
63
+ cd pycmplot
64
+
65
+ pip install -e .
66
+
67
+ # or
68
+
69
+ pip install -e . --break-system-packages
70
+ ```
71
+
72
+
73
+ ### Use python virtual environment if local installation is not possible
74
+ ```bash
75
+ python -m venv ~/bin/pycmplot
76
+
77
+ source ~/bin/pycmplot/bin/activate
78
+
79
+ pip install --upgrade pip setuptools wheel
80
+
81
+ # then follow any of the installation steps above
82
+ ```
83
+
84
+
85
+ # Test the installation
86
+ ```bash
87
+ pycmplot -h
88
+ ```
89
+
90
+ ### Dependencies
91
+
92
+ | Package | Purpose |
93
+ |---------|---------|
94
+ | pandas, numpy | Data loading & statistics |
95
+ | matplotlib | Plotting backend |
96
+ | pycirclize | Circular (Circos-style) tracks |
97
+ | natsort | Natural chromosome sorting |
98
+ | adjustText | Label collision avoidance |
99
+ | pyliftover | hg19 to hg38 coordinate conversion |
100
+ | Pillow | Image utilities |
101
+
102
+ ---
103
+
104
+
105
+ ## Command-line usage
106
+
107
+ ### Linear Manhattan (default)
108
+
109
+ ```bash
110
+ pycmplot \
111
+ --sum_stats HbF.tsv.gz,MCV.txt.gz,MCH.tsv.gz \
112
+ --labels HbF,MCV,MCH \
113
+ --logp \
114
+ --signif_line \
115
+ --highlight \
116
+ --annotate GENE \
117
+ --output_dir ./results \
118
+ --output_format png \
119
+ --dpi 300
120
+ ```
121
+
122
+ ### Circular Manhattan
123
+
124
+ ```bash
125
+ pycmplot \
126
+ --sum_stats HbF.tsv.gz,MCV.tsv.gz \
127
+ --labels HbF,MCV \
128
+ --mode cm \
129
+ --logp \
130
+ --signif_threshold \
131
+ --plot_title "RBC Traits" \
132
+ --output_dir ./results
133
+ ```
134
+
135
+ ### Key options
136
+
137
+ | Flag | Description | Default |
138
+ |------|-------------|---------|
139
+ | `-s, --sum_stats` | Comma-separated sumstats files | **required** |
140
+ | `-l, --labels` | Comma-separated track labels | **required** |
141
+ | `-m, --mode` | `lm` linear or `cm` circular | `lm` |
142
+ | `-qq, --qq_plot` | Also generate a QQ-plot | off (coming soon...) |
143
+ | `--logp` | Plot -log10(p) | off |
144
+ | `-sig, --signif_threshold` | Genome-wide significance threshold | off (auto 0.05/N) |
145
+ | `-sigl, --signif_line` | Value for genome-wide significance line if different from `-sig` | `-sig` |
146
+ | `-sug, --suggest_threshold` | Suggestive significance line | off |
147
+ | `-hl, --highlight` | Highlight significant loci | off |
148
+ | `-a, --annotate` | Annotate with `SNP` or `GENE` | `SNP` |
149
+ | `-tp, --trim_pval` | Trim variants above this p-value for speed | off |
150
+ | `-st, --sort_track` | Sort tracks by `label` or `chrom_len` | input order |
151
+ | `-od, --output_dir` | Output directory | `.` |
152
+ | `-of, --output_format` | Output format (`png`, `pdf`, `svg`, `jpg`) | `png` |
153
+
154
+ Run `pycmplot -h` for the full option list.
155
+
156
+ ---
157
+
158
+ ## Python API
159
+
160
+ ```python
161
+ from pycmplot import plot_linear
162
+ import pandas as pd
163
+
164
+ df1 = pd.read_csv("HbF.tsv.gz", sep="\t")
165
+ df2 = pd.read_csv("MCV.tsv.gz", sep="\t")
166
+
167
+ plot_linear(
168
+ tracks=[df1, df2],
169
+ track_labels=["HbF", "MCV"],
170
+ chr_col="CHR",
171
+ pos_col="POS",
172
+ p_col="P",
173
+ logp=True,
174
+ highlight=True,
175
+ plot_title="results/HbF_MCV.png",
176
+ figsize=(15, 8),
177
+ )
178
+ ```
179
+
180
+ ---
181
+
182
+ _Under development_
@@ -0,0 +1,20 @@
1
+ pycmplot/__init__.py,sha256=YPiGBRDmYozsSL37QnOwcBPKIYrgb-P9FmTxMhtherU,1140
2
+ pycmplot/_core.py,sha256=MkAOXdH0AL0zU6BHASnu3MKhf2lRAMRYXnMoPlaVJU8,16257
3
+ pycmplot/annotation.py,sha256=ixoLOKG_0uTdhZ4FojnBaqtax2bBKkAwm6mRHh25Wws,11673
4
+ pycmplot/cli.py,sha256=mAKElLmf2TTUOO4XuHUvnvJaRMel3D6JftcwfUOC4-U,8272
5
+ pycmplot/constants.py,sha256=By9LgzMZoseD-ungU_bWYj5HBjHqsLy-eXjPx043YIA,2479
6
+ pycmplot/io.py,sha256=xgNo2AGWUHxfVe0bzd88QG8gdUfT0ROPXj_nUr-9Hvg,10998
7
+ pycmplot/liftover.py,sha256=N4gch5vujBSzotltZxnHFSCTyhpx7RKhtQZV8p7B-HI,3484
8
+ pycmplot/resources.py,sha256=_aMYAYp0je3C4hV92D1DLeDB7z7vwhOvMxqlFMPNU1k,3796
9
+ pycmplot/stats.py,sha256=zuQRaZB7MS9Tm6STclKJOOH4eok7QuBHv2KMDy2gXQM,2737
10
+ pycmplot/data/Homo_sapiens.GRCh37.geneinfo.tsv.gz,sha256=kLldtgT5-k4ZzU5jN--woFZEuOaWe9pQ4g4hhB3sdQI,840666
11
+ pycmplot/data/Homo_sapiens.GRCh38.geneinfo.tsv.gz,sha256=cRAuNxifZi12yOxNKrVt0uTS52HwDDFzV_1N4E2Qwuw,626249
12
+ pycmplot/data/hg19ToHg38.over.chain,sha256=oHPYkUIztVQtKXYauOxLOBUFKxOWSRnBKh77LjEfvzk,606773
13
+ pycmplot/plotting/circular.py,sha256=xfvcetniwxbze1DatLndwgIeMd94co22vqsl1__8rMY,8245
14
+ pycmplot/plotting/linear.py,sha256=1kOWXeLNUXKUDPse0gwoOBIifljeVeRjo6bbHB6PFTA,11690
15
+ pycmplot-0.1.0.dist-info/licenses/LICENSE,sha256=5SMaKQ5Xs1D8Uhw5wtKL3jtVFbUilhD0Bp4u8hQNbO8,1067
16
+ pycmplot-0.1.0.dist-info/METADATA,sha256=IHYPHOqYSrJMph0O6hnbBDhm8-YCQviNjDUnxlLtAgo,4077
17
+ pycmplot-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
18
+ pycmplot-0.1.0.dist-info/entry_points.txt,sha256=cE8IAltA_Q-QQuWQ5DE3Lv-9ktYQ_jyWaD6I97QbeyU,49
19
+ pycmplot-0.1.0.dist-info/top_level.txt,sha256=VGwUCEinUFAwhMXKJfE1E58MhSRdvO6PRUonY6kPbV0,9
20
+ pycmplot-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ pycmplot = pycmplot._core:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kevin Esoh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ pycmplot