pycmplot 0.1.3__tar.gz → 0.1.5__tar.gz

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.
Files changed (28) hide show
  1. pycmplot-0.1.5/LICENSE +441 -0
  2. {pycmplot-0.1.3 → pycmplot-0.1.5}/PKG-INFO +71 -4
  3. pycmplot-0.1.5/README.md +213 -0
  4. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot.egg-info/PKG-INFO +71 -4
  5. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot.egg-info/SOURCES.txt +1 -0
  6. {pycmplot-0.1.3 → pycmplot-0.1.5}/pyproject.toml +1 -1
  7. {pycmplot-0.1.3 → pycmplot-0.1.5}/setup.cfg +1 -1
  8. pycmplot-0.1.3/README.md +0 -147
  9. /pycmplot-0.1.3/LICENSE → /pycmplot-0.1.5/LICENSE.mit +0 -0
  10. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/__init__.py +0 -0
  11. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/_core.py +0 -0
  12. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/annotation.py +0 -0
  13. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/cli.py +0 -0
  14. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/constants.py +0 -0
  15. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/data/Homo_sapiens.GRCh37.geneinfo.tsv.gz +0 -0
  16. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/data/Homo_sapiens.GRCh38.geneinfo.tsv.gz +0 -0
  17. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/data/hg19ToHg38.over.chain +0 -0
  18. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/io.py +0 -0
  19. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/liftover.py +0 -0
  20. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/plotting/circular.py +0 -0
  21. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/plotting/linear.py +0 -0
  22. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/resources.py +0 -0
  23. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot/stats.py +0 -0
  24. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot.egg-info/dependency_links.txt +0 -0
  25. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot.egg-info/entry_points.txt +0 -0
  26. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot.egg-info/requires.txt +0 -0
  27. {pycmplot-0.1.3 → pycmplot-0.1.5}/pycmplot.egg-info/top_level.txt +0 -0
  28. {pycmplot-0.1.3 → pycmplot-0.1.5}/setup.py +0 -0
pycmplot-0.1.5/LICENSE ADDED
@@ -0,0 +1,441 @@
1
+ CC BY-NC-SA 4.0 License
2
+
3
+ Copyright (c) 2026 Kevin Esoh
4
+
5
+ Attribution-NonCommercial-ShareAlike 4.0 International
6
+
7
+ =======================================================================
8
+
9
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
10
+ does not provide legal services or legal advice. Distribution of
11
+ Creative Commons public licenses does not create a lawyer-client or
12
+ other relationship. Creative Commons makes its licenses and related
13
+ information available on an "as-is" basis. Creative Commons gives no
14
+ warranties regarding its licenses, any material licensed under their
15
+ terms and conditions, or any related information. Creative Commons
16
+ disclaims all liability for damages resulting from their use to the
17
+ fullest extent possible.
18
+
19
+ Using Creative Commons Public Licenses
20
+
21
+ Creative Commons public licenses provide a standard set of terms and
22
+ conditions that creators and other rights holders may use to share
23
+ original works of authorship and other material subject to copyright
24
+ and certain other rights specified in the public license below. The
25
+ following considerations are for informational purposes only, are not
26
+ exhaustive, and do not form part of our licenses.
27
+
28
+ Considerations for licensors: Our public licenses are
29
+ intended for use by those authorized to give the public
30
+ permission to use material in ways otherwise restricted by
31
+ copyright and certain other rights. Our licenses are
32
+ irrevocable. Licensors should read and understand the terms
33
+ and conditions of the license they choose before applying it.
34
+ Licensors should also secure all rights necessary before
35
+ applying our licenses so that the public can reuse the
36
+ material as expected. Licensors should clearly mark any
37
+ material not subject to the license. This includes other CC-
38
+ licensed material, or material used under an exception or
39
+ limitation to copyright. More considerations for licensors:
40
+ wiki.creativecommons.org/Considerations_for_licensors
41
+
42
+ Considerations for the public: By using one of our public
43
+ licenses, a licensor grants the public permission to use the
44
+ licensed material under specified terms and conditions. If
45
+ the licensor's permission is not necessary for any reason--for
46
+ example, because of any applicable exception or limitation to
47
+ copyright--then that use is not regulated by the license. Our
48
+ licenses grant only permissions under copyright and certain
49
+ other rights that a licensor has authority to grant. Use of
50
+ the licensed material may still be restricted for other
51
+ reasons, including because others have copyright or other
52
+ rights in the material. A licensor may make special requests,
53
+ such as asking that all changes be marked or described.
54
+ Although not required by our licenses, you are encouraged to
55
+ respect those requests where reasonable. More considerations
56
+ for the public:
57
+ wiki.creativecommons.org/Considerations_for_licensees
58
+
59
+ =======================================================================
60
+
61
+ Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
62
+ Public License
63
+
64
+ By exercising the Licensed Rights (defined below), You accept and agree
65
+ to be bound by the terms and conditions of this Creative Commons
66
+ Attribution-NonCommercial-ShareAlike 4.0 International Public License
67
+ ("Public License"). To the extent this Public License may be
68
+ interpreted as a contract, You are granted the Licensed Rights in
69
+ consideration of Your acceptance of these terms and conditions, and the
70
+ Licensor grants You such rights in consideration of benefits the
71
+ Licensor receives from making the Licensed Material available under
72
+ these terms and conditions.
73
+
74
+
75
+ Section 1 -- Definitions.
76
+
77
+ a. Adapted Material means material subject to Copyright and Similar
78
+ Rights that is derived from or based upon the Licensed Material
79
+ and in which the Licensed Material is translated, altered,
80
+ arranged, transformed, or otherwise modified in a manner requiring
81
+ permission under the Copyright and Similar Rights held by the
82
+ Licensor. For purposes of this Public License, where the Licensed
83
+ Material is a musical work, performance, or sound recording,
84
+ Adapted Material is always produced where the Licensed Material is
85
+ synched in timed relation with a moving image.
86
+
87
+ b. Adapter's License means the license You apply to Your Copyright
88
+ and Similar Rights in Your contributions to Adapted Material in
89
+ accordance with the terms and conditions of this Public License.
90
+
91
+ c. BY-NC-SA Compatible License means a license listed at
92
+ creativecommons.org/compatiblelicenses, approved by Creative
93
+ Commons as essentially the equivalent of this Public License.
94
+
95
+ d. Copyright and Similar Rights means copyright and/or similar rights
96
+ closely related to copyright including, without limitation,
97
+ performance, broadcast, sound recording, and Sui Generis Database
98
+ Rights, without regard to how the rights are labeled or
99
+ categorized. For purposes of this Public License, the rights
100
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
101
+ Rights.
102
+
103
+ e. Effective Technological Measures means those measures that, in the
104
+ absence of proper authority, may not be circumvented under laws
105
+ fulfilling obligations under Article 11 of the WIPO Copyright
106
+ Treaty adopted on December 20, 1996, and/or similar international
107
+ agreements.
108
+
109
+ f. Exceptions and Limitations means fair use, fair dealing, and/or
110
+ any other exception or limitation to Copyright and Similar Rights
111
+ that applies to Your use of the Licensed Material.
112
+
113
+ g. License Elements means the license attributes listed in the name
114
+ of a Creative Commons Public License. The License Elements of this
115
+ Public License are Attribution, NonCommercial, and ShareAlike.
116
+
117
+ h. Licensed Material means the artistic or literary work, database,
118
+ or other material to which the Licensor applied this Public
119
+ License.
120
+
121
+ i. Licensed Rights means the rights granted to You subject to the
122
+ terms and conditions of this Public License, which are limited to
123
+ all Copyright and Similar Rights that apply to Your use of the
124
+ Licensed Material and that the Licensor has authority to license.
125
+
126
+ j. Licensor means the individual(s) or entity(ies) granting rights
127
+ under this Public License.
128
+
129
+ k. NonCommercial means not primarily intended for or directed towards
130
+ commercial advantage or monetary compensation. For purposes of
131
+ this Public License, the exchange of the Licensed Material for
132
+ other material subject to Copyright and Similar Rights by digital
133
+ file-sharing or similar means is NonCommercial provided there is
134
+ no payment of monetary compensation in connection with the
135
+ exchange.
136
+
137
+ l. Share means to provide material to the public by any means or
138
+ process that requires permission under the Licensed Rights, such
139
+ as reproduction, public display, public performance, distribution,
140
+ dissemination, communication, or importation, and to make material
141
+ available to the public including in ways that members of the
142
+ public may access the material from a place and at a time
143
+ individually chosen by them.
144
+
145
+ m. Sui Generis Database Rights means rights other than copyright
146
+ resulting from Directive 96/9/EC of the European Parliament and of
147
+ the Council of 11 March 1996 on the legal protection of databases,
148
+ as amended and/or succeeded, as well as other essentially
149
+ equivalent rights anywhere in the world.
150
+
151
+ n. You means the individual or entity exercising the Licensed Rights
152
+ under this Public License. Your has a corresponding meaning.
153
+
154
+
155
+ Section 2 -- Scope.
156
+
157
+ a. License grant.
158
+
159
+ 1. Subject to the terms and conditions of this Public License,
160
+ the Licensor hereby grants You a worldwide, royalty-free,
161
+ non-sublicensable, non-exclusive, irrevocable license to
162
+ exercise the Licensed Rights in the Licensed Material to:
163
+
164
+ a. reproduce and Share the Licensed Material, in whole or
165
+ in part, for NonCommercial purposes only; and
166
+
167
+ b. produce, reproduce, and Share Adapted Material for
168
+ NonCommercial purposes only.
169
+
170
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
171
+ Exceptions and Limitations apply to Your use, this Public
172
+ License does not apply, and You do not need to comply with
173
+ its terms and conditions.
174
+
175
+ 3. Term. The term of this Public License is specified in Section
176
+ 6(a).
177
+
178
+ 4. Media and formats; technical modifications allowed. The
179
+ Licensor authorizes You to exercise the Licensed Rights in
180
+ all media and formats whether now known or hereafter created,
181
+ and to make technical modifications necessary to do so. The
182
+ Licensor waives and/or agrees not to assert any right or
183
+ authority to forbid You from making technical modifications
184
+ necessary to exercise the Licensed Rights, including
185
+ technical modifications necessary to circumvent Effective
186
+ Technological Measures. For purposes of this Public License,
187
+ simply making modifications authorized by this Section 2(a)
188
+ (4) never produces Adapted Material.
189
+
190
+ 5. Downstream recipients.
191
+
192
+ a. Offer from the Licensor -- Licensed Material. Every
193
+ recipient of the Licensed Material automatically
194
+ receives an offer from the Licensor to exercise the
195
+ Licensed Rights under the terms and conditions of this
196
+ Public License.
197
+
198
+ b. Additional offer from the Licensor -- Adapted Material.
199
+ Every recipient of Adapted Material from You
200
+ automatically receives an offer from the Licensor to
201
+ exercise the Licensed Rights in the Adapted Material
202
+ under the conditions of the Adapter's License You apply.
203
+
204
+ c. No downstream restrictions. You may not offer or impose
205
+ any additional or different terms or conditions on, or
206
+ apply any Effective Technological Measures to, the
207
+ Licensed Material if doing so restricts exercise of the
208
+ Licensed Rights by any recipient of the Licensed
209
+ Material.
210
+
211
+ 6. No endorsement. Nothing in this Public License constitutes or
212
+ may be construed as permission to assert or imply that You
213
+ are, or that Your use of the Licensed Material is, connected
214
+ with, or sponsored, endorsed, or granted official status by,
215
+ the Licensor or others designated to receive attribution as
216
+ provided in Section 3(a)(1)(A)(i).
217
+
218
+ b. Other rights.
219
+
220
+ 1. Moral rights, such as the right of integrity, are not
221
+ licensed under this Public License, nor are publicity,
222
+ privacy, and/or other similar personality rights; however, to
223
+ the extent possible, the Licensor waives and/or agrees not to
224
+ assert any such rights held by the Licensor to the limited
225
+ extent necessary to allow You to exercise the Licensed
226
+ Rights, but not otherwise.
227
+
228
+ 2. Patent and trademark rights are not licensed under this
229
+ Public License.
230
+
231
+ 3. To the extent possible, the Licensor waives any right to
232
+ collect royalties from You for the exercise of the Licensed
233
+ Rights, whether directly or through a collecting society
234
+ under any voluntary or waivable statutory or compulsory
235
+ licensing scheme. In all other cases the Licensor expressly
236
+ reserves any right to collect such royalties, including when
237
+ the Licensed Material is used other than for NonCommercial
238
+ purposes.
239
+
240
+
241
+ Section 3 -- License Conditions.
242
+
243
+ Your exercise of the Licensed Rights is expressly made subject to the
244
+ following conditions.
245
+
246
+ a. Attribution.
247
+
248
+ 1. If You Share the Licensed Material (including in modified
249
+ form), You must:
250
+
251
+ a. retain the following if it is supplied by the Licensor
252
+ with the Licensed Material:
253
+
254
+ i. identification of the creator(s) of the Licensed
255
+ Material and any others designated to receive
256
+ attribution, in any reasonable manner requested by
257
+ the Licensor (including by pseudonym if
258
+ designated);
259
+
260
+ ii. a copyright notice;
261
+
262
+ iii. a notice that refers to this Public License;
263
+
264
+ iv. a notice that refers to the disclaimer of
265
+ warranties;
266
+
267
+ v. a URI or hyperlink to the Licensed Material to the
268
+ extent reasonably practicable;
269
+
270
+ b. indicate if You modified the Licensed Material and
271
+ retain an indication of any previous modifications; and
272
+
273
+ c. indicate the Licensed Material is licensed under this
274
+ Public License, and include the text of, or the URI or
275
+ hyperlink to, this Public License.
276
+
277
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
278
+ reasonable manner based on the medium, means, and context in
279
+ which You Share the Licensed Material. For example, it may be
280
+ reasonable to satisfy the conditions by providing a URI or
281
+ hyperlink to a resource that includes the required
282
+ information.
283
+ 3. If requested by the Licensor, You must remove any of the
284
+ information required by Section 3(a)(1)(A) to the extent
285
+ reasonably practicable.
286
+
287
+ b. ShareAlike.
288
+
289
+ In addition to the conditions in Section 3(a), if You Share
290
+ Adapted Material You produce, the following conditions also apply.
291
+
292
+ 1. The Adapter's License You apply must be a Creative Commons
293
+ license with the same License Elements, this version or
294
+ later, or a BY-NC-SA Compatible License.
295
+
296
+ 2. You must include the text of, or the URI or hyperlink to, the
297
+ Adapter's License You apply. You may satisfy this condition
298
+ in any reasonable manner based on the medium, means, and
299
+ context in which You Share Adapted Material.
300
+
301
+ 3. You may not offer or impose any additional or different terms
302
+ or conditions on, or apply any Effective Technological
303
+ Measures to, Adapted Material that restrict exercise of the
304
+ rights granted under the Adapter's License You apply.
305
+
306
+
307
+ Section 4 -- Sui Generis Database Rights.
308
+
309
+ Where the Licensed Rights include Sui Generis Database Rights that
310
+ apply to Your use of the Licensed Material:
311
+
312
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
313
+ to extract, reuse, reproduce, and Share all or a substantial
314
+ portion of the contents of the database for NonCommercial purposes
315
+ only;
316
+
317
+ b. if You include all or a substantial portion of the database
318
+ contents in a database in which You have Sui Generis Database
319
+ Rights, then the database in which You have Sui Generis Database
320
+ Rights (but not its individual contents) is Adapted Material,
321
+ including for purposes of Section 3(b); and
322
+
323
+ c. You must comply with the conditions in Section 3(a) if You Share
324
+ all or a substantial portion of the contents of the database.
325
+
326
+ For the avoidance of doubt, this Section 4 supplements and does not
327
+ replace Your obligations under this Public License where the Licensed
328
+ Rights include other Copyright and Similar Rights.
329
+
330
+
331
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
332
+
333
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
334
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
335
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
336
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
337
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
338
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
339
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
340
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
341
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
342
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
343
+
344
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
345
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
346
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
347
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
348
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
349
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
350
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
351
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
352
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
353
+
354
+ c. The disclaimer of warranties and limitation of liability provided
355
+ above shall be interpreted in a manner that, to the extent
356
+ possible, most closely approximates an absolute disclaimer and
357
+ waiver of all liability.
358
+
359
+
360
+ Section 6 -- Term and Termination.
361
+
362
+ a. This Public License applies for the term of the Copyright and
363
+ Similar Rights licensed here. However, if You fail to comply with
364
+ this Public License, then Your rights under this Public License
365
+ terminate automatically.
366
+
367
+ b. Where Your right to use the Licensed Material has terminated under
368
+ Section 6(a), it reinstates:
369
+
370
+ 1. automatically as of the date the violation is cured, provided
371
+ it is cured within 30 days of Your discovery of the
372
+ violation; or
373
+
374
+ 2. upon express reinstatement by the Licensor.
375
+
376
+ For the avoidance of doubt, this Section 6(b) does not affect any
377
+ right the Licensor may have to seek remedies for Your violations
378
+ of this Public License.
379
+
380
+ c. For the avoidance of doubt, the Licensor may also offer the
381
+ Licensed Material under separate terms or conditions or stop
382
+ distributing the Licensed Material at any time; however, doing so
383
+ will not terminate this Public License.
384
+
385
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
386
+ License.
387
+
388
+
389
+ Section 7 -- Other Terms and Conditions.
390
+
391
+ a. The Licensor shall not be bound by any additional or different
392
+ terms or conditions communicated by You unless expressly agreed.
393
+
394
+ b. Any arrangements, understandings, or agreements regarding the
395
+ Licensed Material not stated herein are separate from and
396
+ independent of the terms and conditions of this Public License.
397
+
398
+
399
+ Section 8 -- Interpretation.
400
+
401
+ a. For the avoidance of doubt, this Public License does not, and
402
+ shall not be interpreted to, reduce, limit, restrict, or impose
403
+ conditions on any use of the Licensed Material that could lawfully
404
+ be made without permission under this Public License.
405
+
406
+ b. To the extent possible, if any provision of this Public License is
407
+ deemed unenforceable, it shall be automatically reformed to the
408
+ minimum extent necessary to make it enforceable. If the provision
409
+ cannot be reformed, it shall be severed from this Public License
410
+ without affecting the enforceability of the remaining terms and
411
+ conditions.
412
+
413
+ c. No term or condition of this Public License will be waived and no
414
+ failure to comply consented to unless expressly agreed to by the
415
+ Licensor.
416
+
417
+ d. Nothing in this Public License constitutes or may be interpreted
418
+ as a limitation upon, or waiver of, any privileges and immunities
419
+ that apply to the Licensor or You, including from the legal
420
+ processes of any jurisdiction or authority.
421
+
422
+ =======================================================================
423
+
424
+ Creative Commons is not a party to its public
425
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
426
+ its public licenses to material it publishes and in those instances
427
+ will be considered the “Licensor.” The text of the Creative Commons
428
+ public licenses is dedicated to the public domain under the CC0 Public
429
+ Domain Dedication. Except for the limited purpose of indicating that
430
+ material is shared under a Creative Commons public license or as
431
+ otherwise permitted by the Creative Commons policies published at
432
+ creativecommons.org/policies, Creative Commons does not authorize the
433
+ use of the trademark "Creative Commons" or any other trademark or logo
434
+ of Creative Commons without its prior written consent including,
435
+ without limitation, in connection with any unauthorized modifications
436
+ to any of its public licenses or any other arrangements,
437
+ understandings, or agreements concerning use of licensed material. For
438
+ the avoidance of doubt, this paragraph does not form part of the
439
+ public licenses.
440
+
441
+ Creative Commons may be contacted at creativecommons.org.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycmplot
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: Multi-track circular and linear Manhattan plot generation for GWAS summary statistics
5
5
  Author: Kevin Esoh
6
6
  Author-email: Kevin Esoh <kesohku1@jhmi.edu>
@@ -8,6 +8,7 @@ License: MIT
8
8
  Requires-Python: >=3.9
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
+ License-File: LICENSE.mit
11
12
  Requires-Dist: pandas>=1.5
12
13
  Requires-Dist: numpy>=1.23
13
14
  Requires-Dist: matplotlib>=3.6
@@ -34,6 +35,49 @@ Multi-track **circular** and **linear** Manhattan plot generation for GWAS summa
34
35
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
35
36
  ```
36
37
 
38
+ This package will take any number of per SNP/variant summary statistics, be it GWAS,
39
+ selection scans (e.g. iHS, EHH, FST), etc and generate Manhattan plots. If given a single
40
+ file, a single one-track Manhattan plot will be generated. Multiple files with results in
41
+ the generation of a multi-track stacked Manhattan plot.
42
+
43
+ In the process, the package will generate a **hits summary table** for variants with p-value
44
+ (or whatever statistic for significance is used) below the user-specified significance threshold.
45
+ This hits summary table will contain annotated gene names, in addition to other annotations, that
46
+ would then be used to annotate the plots.
47
+
48
+ Importantly, the package allows for conversion of hg19 genomic coordinates to hg38 coordinates.
49
+ This ensures that summary stats obtained using different imputation panels, for instance, can be
50
+ processed in the same run. That is, users can simply concatenate multiple summary stats files together,
51
+ such as those for the same trait but analysed using different imputation panels. Users only need to
52
+ add a new column specifying the genome build (hg19 or hg38) of the variants. Then the `--build_column`
53
+ option of the package should be used to indicate the column and then the package will liftover all
54
+ postions in hg19 to hg38 ensuring that hits table generation and plotting are done with one unified
55
+ corrdinate system.
56
+
57
+ A key functionality of the package is its ability to auto-detect certain columns if ommited on the
58
+ command-line or python API:
59
+ - Chromosome column: `-chr, --chrom_column` or ommited
60
+ - Basepair position column: `-pos, --pos_column` or ommited
61
+ - SNP or Marker ID column: `-snp, --snp_column` or ommited
62
+ - P-value (or whatever value) column: `-p, --pval_column` or ommited
63
+ - Build version column: `-b, --build_column` or ommited
64
+
65
+
66
+ Candidate names for each of the columns is shown below.
67
+
68
+ ```python
69
+ # Resolve column names
70
+ chr_candidates = [chrom, 'CHR', 'CHROM', 'Chromosome', '#CHROM', '#CHR', 'Chrom', 'chrom', 'chr', 'chromosome', '#chr', '#chrom']
71
+ pos_candidates = [pos, 'BP', 'POS', 'bp', 'pos', 'Basepair']
72
+ snp_candidates = [snp, 'SNP', 'RSID', 'rsID', 'MarkerName', 'MarkerID', 'Predictor', 'Marker', 'SNPID', 'ID']
73
+ pvl_candidates = [pcol, 'P', 'P-value', 'Wald_P', 'pvalue', 'p_val', 'pval']
74
+ bld_candidates = [build, 'BUILD', 'Genome', 'Genome_Build', 'Genome-build']
75
+ ```
76
+
77
+ Since GWAS summary stats files can be very large, to improve speed and memory efficiency, it is
78
+ **highly recommended** to use `-tp, --trim_pval` with a value to exclude variants with p-value above a
79
+ certain threshold, e.g. `0.01 (1e-2)` or `0.001 (1e-3)`.
80
+
37
81
  ---
38
82
 
39
83
  ## Installation
@@ -114,6 +158,7 @@ pycmplot \
114
158
  --sum_stats HbF.tsv.gz,MCV.tsv.gz \
115
159
  --labels HbF,MCV \
116
160
  --mode cm \
161
+ --trim_pval 0.01 \
117
162
  --logp \
118
163
  --signif_threshold \
119
164
  --plot_title "RBC Traits" \
@@ -131,8 +176,8 @@ pycmplot \
131
176
  | `-qq, --qq_plot` | Also generate a QQ-plot | off (coming soon...) |
132
177
  | `--logp` | Plot -log10(p) | off |
133
178
  | `-sig, --signif_threshold` | Genome-wide significance threshold | off (auto 0.05/N) |
134
- | `-sigl, --signif_line` | Value for genome-wide significance line if different from `-sig` | `-sig` |
135
- | `-sug, --suggest_threshold` | Suggestive significance line | off |
179
+ | `-sigl, --signif_line` | Value for genome-wide significance line if different from `-sig` | 5e-8 |
180
+ | `-sug, --suggest_threshold` | Threshold for suggestive signals | off |
136
181
  | `-hl, --highlight` | Highlight significant loci | off |
137
182
  | `-a, --annotate` | Annotate with `SNP` or `GENE` | `SNP` |
138
183
  | `-tp, --trim_pval` | Trim variants above this p-value for speed | off |
@@ -168,4 +213,26 @@ plot_linear(
168
213
 
169
214
  ---
170
215
 
171
- _Under development_
216
+ ## Package structure
217
+
218
+ ```
219
+ pycmplot/
220
+ ├── pyproject.toml
221
+ ├── setup.py
222
+ ├── setup.cfg
223
+ ├── README.md
224
+ └── pycmplot/
225
+ ├── __init__.py # public API exports
226
+ ├── __main__.py # python -m pycmplot
227
+ ├── _core.py # main() orchestration
228
+ ├── cli.py # argparse definitions
229
+ ├── constants.py # chromosome lengths, biotype weights
230
+ ├── resources.py # external resource path config
231
+ ├── io.py # sumstat loading, delimiter detection
232
+ ├── stats.py # get_lead_snps, get_highlight_snps
233
+ ├── liftover.py # lazy hg19→hg38 liftover
234
+ ├── annotation.py # nearest-gene annotation, hits table
235
+ └── plotting/
236
+ ├── __init__.py
237
+ ├── linear.py # plot_linear
238
+ └── circular.py # plot_circular, compute_track_radii_dict
@@ -0,0 +1,213 @@
1
+ # pycmplot
2
+
3
+ Multi-track **circular** and **linear** Manhattan plot generation for GWAS summary statistics.
4
+
5
+ ```
6
+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
7
+ | PACKAGE FOR CIRCULAR AND LINEAR MANHATTAN PLOTTING |
8
+ | Kevin Esoh, 2026 |
9
+ | kesohku1@jh.edu |
10
+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
11
+ ```
12
+
13
+ This package will take any number of per SNP/variant summary statistics, be it GWAS,
14
+ selection scans (e.g. iHS, EHH, FST), etc and generate Manhattan plots. If given a single
15
+ file, a single one-track Manhattan plot will be generated. Multiple files with results in
16
+ the generation of a multi-track stacked Manhattan plot.
17
+
18
+ In the process, the package will generate a **hits summary table** for variants with p-value
19
+ (or whatever statistic for significance is used) below the user-specified significance threshold.
20
+ This hits summary table will contain annotated gene names, in addition to other annotations, that
21
+ would then be used to annotate the plots.
22
+
23
+ Importantly, the package allows for conversion of hg19 genomic coordinates to hg38 coordinates.
24
+ This ensures that summary stats obtained using different imputation panels, for instance, can be
25
+ processed in the same run. That is, users can simply concatenate multiple summary stats files together,
26
+ such as those for the same trait but analysed using different imputation panels. Users only need to
27
+ add a new column specifying the genome build (hg19 or hg38) of the variants. Then the `--build_column`
28
+ option of the package should be used to indicate the column and then the package will liftover all
29
+ postions in hg19 to hg38 ensuring that hits table generation and plotting are done with one unified
30
+ corrdinate system.
31
+
32
+ A key functionality of the package is its ability to auto-detect certain columns if ommited on the
33
+ command-line or python API:
34
+ - Chromosome column: `-chr, --chrom_column` or ommited
35
+ - Basepair position column: `-pos, --pos_column` or ommited
36
+ - SNP or Marker ID column: `-snp, --snp_column` or ommited
37
+ - P-value (or whatever value) column: `-p, --pval_column` or ommited
38
+ - Build version column: `-b, --build_column` or ommited
39
+
40
+
41
+ Candidate names for each of the columns is shown below.
42
+
43
+ ```python
44
+ # Resolve column names
45
+ chr_candidates = [chrom, 'CHR', 'CHROM', 'Chromosome', '#CHROM', '#CHR', 'Chrom', 'chrom', 'chr', 'chromosome', '#chr', '#chrom']
46
+ pos_candidates = [pos, 'BP', 'POS', 'bp', 'pos', 'Basepair']
47
+ snp_candidates = [snp, 'SNP', 'RSID', 'rsID', 'MarkerName', 'MarkerID', 'Predictor', 'Marker', 'SNPID', 'ID']
48
+ pvl_candidates = [pcol, 'P', 'P-value', 'Wald_P', 'pvalue', 'p_val', 'pval']
49
+ bld_candidates = [build, 'BUILD', 'Genome', 'Genome_Build', 'Genome-build']
50
+ ```
51
+
52
+ Since GWAS summary stats files can be very large, to improve speed and memory efficiency, it is
53
+ **highly recommended** to use `-tp, --trim_pval` with a value to exclude variants with p-value above a
54
+ certain threshold, e.g. `0.01 (1e-2)` or `0.001 (1e-3)`.
55
+
56
+ ---
57
+
58
+ ## Installation
59
+
60
+ ### From PyPI
61
+ ```bash
62
+ pip install pycmplot
63
+ ```
64
+
65
+
66
+ ### From GitHub
67
+ ```bash
68
+ git clone https://github.com/esohkevin/pycmplot.git
69
+
70
+ cd pycmplot
71
+
72
+ pip install -e .
73
+
74
+ # or
75
+
76
+ pip install -e . --break-system-packages
77
+ ```
78
+
79
+
80
+ ### Use python virtual environment if local installation is not possible
81
+ ```bash
82
+ python -m venv ~/bin/pycmplot
83
+
84
+ source ~/bin/pycmplot/bin/activate
85
+
86
+ pip install --upgrade pip setuptools wheel
87
+
88
+ # then follow any of the installation steps above
89
+ ```
90
+
91
+
92
+ # Test the installation
93
+ ```bash
94
+ pycmplot -h
95
+ ```
96
+
97
+ ### Dependencies
98
+
99
+ | Package | Purpose |
100
+ |---------|---------|
101
+ | pandas, numpy | Data loading & statistics |
102
+ | matplotlib | Plotting backend |
103
+ | pycirclize | Circular (Circos-style) tracks |
104
+ | natsort | Natural chromosome sorting |
105
+ | adjustText | Label collision avoidance |
106
+ | pyliftover | hg19 to hg38 coordinate conversion |
107
+ | Pillow | Image utilities |
108
+
109
+ ---
110
+
111
+
112
+ ## Command-line usage
113
+
114
+ ### Linear Manhattan (default)
115
+
116
+ ```bash
117
+ pycmplot \
118
+ --sum_stats HbF.tsv.gz,MCV.txt.gz,MCH.tsv.gz \
119
+ --labels HbF,MCV,MCH \
120
+ --logp \
121
+ --signif_line \
122
+ --highlight \
123
+ --annotate GENE \
124
+ --output_dir ./results \
125
+ --output_format png \
126
+ --dpi 300
127
+ ```
128
+
129
+ ### Circular Manhattan
130
+
131
+ ```bash
132
+ pycmplot \
133
+ --sum_stats HbF.tsv.gz,MCV.tsv.gz \
134
+ --labels HbF,MCV \
135
+ --mode cm \
136
+ --trim_pval 0.01 \
137
+ --logp \
138
+ --signif_threshold \
139
+ --plot_title "RBC Traits" \
140
+ --output_dir ./results
141
+ ```
142
+
143
+ ### Key options
144
+
145
+ | Flag | Description | Default |
146
+ |------|-------------|---------|
147
+ | `-s, --sum_stats` | Comma-separated sumstats files | **required** |
148
+ | `-l, --labels` | Comma-separated track labels | **required** |
149
+ | `-b, --build_column` | Genome build column name (containing hg18/hg19/hg38) | **required** |
150
+ | `-m, --mode` | `lm` linear or `cm` circular | `lm` |
151
+ | `-qq, --qq_plot` | Also generate a QQ-plot | off (coming soon...) |
152
+ | `--logp` | Plot -log10(p) | off |
153
+ | `-sig, --signif_threshold` | Genome-wide significance threshold | off (auto 0.05/N) |
154
+ | `-sigl, --signif_line` | Value for genome-wide significance line if different from `-sig` | 5e-8 |
155
+ | `-sug, --suggest_threshold` | Threshold for suggestive signals | off |
156
+ | `-hl, --highlight` | Highlight significant loci | off |
157
+ | `-a, --annotate` | Annotate with `SNP` or `GENE` | `SNP` |
158
+ | `-tp, --trim_pval` | Trim variants above this p-value for speed | off |
159
+ | `-st, --sort_track` | Sort tracks by `label` or `chrom_len` | input order |
160
+ | `-od, --output_dir` | Output directory | `.` |
161
+ | `-of, --output_format` | Output format (`png`, `pdf`, `svg`, `jpg`) | `png` |
162
+
163
+ Run `pycmplot -h` for the full option list.
164
+
165
+ ---
166
+
167
+ ## Python API
168
+
169
+ ```python
170
+ from pycmplot import plot_linear
171
+ import pandas as pd
172
+
173
+ df1 = pd.read_csv("HbF.tsv.gz", sep="\t")
174
+ df2 = pd.read_csv("MCV.tsv.gz", sep="\t")
175
+
176
+ plot_linear(
177
+ tracks=[df1, df2],
178
+ track_labels=["HbF", "MCV"],
179
+ chr_col="CHR",
180
+ pos_col="POS",
181
+ p_col="P",
182
+ logp=True,
183
+ highlight=True,
184
+ plot_title="results/HbF_MCV.png",
185
+ figsize=(15, 8),
186
+ )
187
+ ```
188
+
189
+ ---
190
+
191
+ ## Package structure
192
+
193
+ ```
194
+ pycmplot/
195
+ ├── pyproject.toml
196
+ ├── setup.py
197
+ ├── setup.cfg
198
+ ├── README.md
199
+ └── pycmplot/
200
+ ├── __init__.py # public API exports
201
+ ├── __main__.py # python -m pycmplot
202
+ ├── _core.py # main() orchestration
203
+ ├── cli.py # argparse definitions
204
+ ├── constants.py # chromosome lengths, biotype weights
205
+ ├── resources.py # external resource path config
206
+ ├── io.py # sumstat loading, delimiter detection
207
+ ├── stats.py # get_lead_snps, get_highlight_snps
208
+ ├── liftover.py # lazy hg19→hg38 liftover
209
+ ├── annotation.py # nearest-gene annotation, hits table
210
+ └── plotting/
211
+ ├── __init__.py
212
+ ├── linear.py # plot_linear
213
+ └── circular.py # plot_circular, compute_track_radii_dict
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycmplot
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: Multi-track circular and linear Manhattan plot generation for GWAS summary statistics
5
5
  Author: Kevin Esoh
6
6
  Author-email: Kevin Esoh <kesohku1@jhmi.edu>
@@ -8,6 +8,7 @@ License: MIT
8
8
  Requires-Python: >=3.9
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
+ License-File: LICENSE.mit
11
12
  Requires-Dist: pandas>=1.5
12
13
  Requires-Dist: numpy>=1.23
13
14
  Requires-Dist: matplotlib>=3.6
@@ -34,6 +35,49 @@ Multi-track **circular** and **linear** Manhattan plot generation for GWAS summa
34
35
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
35
36
  ```
36
37
 
38
+ This package will take any number of per SNP/variant summary statistics, be it GWAS,
39
+ selection scans (e.g. iHS, EHH, FST), etc and generate Manhattan plots. If given a single
40
+ file, a single one-track Manhattan plot will be generated. Multiple files with results in
41
+ the generation of a multi-track stacked Manhattan plot.
42
+
43
+ In the process, the package will generate a **hits summary table** for variants with p-value
44
+ (or whatever statistic for significance is used) below the user-specified significance threshold.
45
+ This hits summary table will contain annotated gene names, in addition to other annotations, that
46
+ would then be used to annotate the plots.
47
+
48
+ Importantly, the package allows for conversion of hg19 genomic coordinates to hg38 coordinates.
49
+ This ensures that summary stats obtained using different imputation panels, for instance, can be
50
+ processed in the same run. That is, users can simply concatenate multiple summary stats files together,
51
+ such as those for the same trait but analysed using different imputation panels. Users only need to
52
+ add a new column specifying the genome build (hg19 or hg38) of the variants. Then the `--build_column`
53
+ option of the package should be used to indicate the column and then the package will liftover all
54
+ postions in hg19 to hg38 ensuring that hits table generation and plotting are done with one unified
55
+ corrdinate system.
56
+
57
+ A key functionality of the package is its ability to auto-detect certain columns if ommited on the
58
+ command-line or python API:
59
+ - Chromosome column: `-chr, --chrom_column` or ommited
60
+ - Basepair position column: `-pos, --pos_column` or ommited
61
+ - SNP or Marker ID column: `-snp, --snp_column` or ommited
62
+ - P-value (or whatever value) column: `-p, --pval_column` or ommited
63
+ - Build version column: `-b, --build_column` or ommited
64
+
65
+
66
+ Candidate names for each of the columns is shown below.
67
+
68
+ ```python
69
+ # Resolve column names
70
+ chr_candidates = [chrom, 'CHR', 'CHROM', 'Chromosome', '#CHROM', '#CHR', 'Chrom', 'chrom', 'chr', 'chromosome', '#chr', '#chrom']
71
+ pos_candidates = [pos, 'BP', 'POS', 'bp', 'pos', 'Basepair']
72
+ snp_candidates = [snp, 'SNP', 'RSID', 'rsID', 'MarkerName', 'MarkerID', 'Predictor', 'Marker', 'SNPID', 'ID']
73
+ pvl_candidates = [pcol, 'P', 'P-value', 'Wald_P', 'pvalue', 'p_val', 'pval']
74
+ bld_candidates = [build, 'BUILD', 'Genome', 'Genome_Build', 'Genome-build']
75
+ ```
76
+
77
+ Since GWAS summary stats files can be very large, to improve speed and memory efficiency, it is
78
+ **highly recommended** to use `-tp, --trim_pval` with a value to exclude variants with p-value above a
79
+ certain threshold, e.g. `0.01 (1e-2)` or `0.001 (1e-3)`.
80
+
37
81
  ---
38
82
 
39
83
  ## Installation
@@ -114,6 +158,7 @@ pycmplot \
114
158
  --sum_stats HbF.tsv.gz,MCV.tsv.gz \
115
159
  --labels HbF,MCV \
116
160
  --mode cm \
161
+ --trim_pval 0.01 \
117
162
  --logp \
118
163
  --signif_threshold \
119
164
  --plot_title "RBC Traits" \
@@ -131,8 +176,8 @@ pycmplot \
131
176
  | `-qq, --qq_plot` | Also generate a QQ-plot | off (coming soon...) |
132
177
  | `--logp` | Plot -log10(p) | off |
133
178
  | `-sig, --signif_threshold` | Genome-wide significance threshold | off (auto 0.05/N) |
134
- | `-sigl, --signif_line` | Value for genome-wide significance line if different from `-sig` | `-sig` |
135
- | `-sug, --suggest_threshold` | Suggestive significance line | off |
179
+ | `-sigl, --signif_line` | Value for genome-wide significance line if different from `-sig` | 5e-8 |
180
+ | `-sug, --suggest_threshold` | Threshold for suggestive signals | off |
136
181
  | `-hl, --highlight` | Highlight significant loci | off |
137
182
  | `-a, --annotate` | Annotate with `SNP` or `GENE` | `SNP` |
138
183
  | `-tp, --trim_pval` | Trim variants above this p-value for speed | off |
@@ -168,4 +213,26 @@ plot_linear(
168
213
 
169
214
  ---
170
215
 
171
- _Under development_
216
+ ## Package structure
217
+
218
+ ```
219
+ pycmplot/
220
+ ├── pyproject.toml
221
+ ├── setup.py
222
+ ├── setup.cfg
223
+ ├── README.md
224
+ └── pycmplot/
225
+ ├── __init__.py # public API exports
226
+ ├── __main__.py # python -m pycmplot
227
+ ├── _core.py # main() orchestration
228
+ ├── cli.py # argparse definitions
229
+ ├── constants.py # chromosome lengths, biotype weights
230
+ ├── resources.py # external resource path config
231
+ ├── io.py # sumstat loading, delimiter detection
232
+ ├── stats.py # get_lead_snps, get_highlight_snps
233
+ ├── liftover.py # lazy hg19→hg38 liftover
234
+ ├── annotation.py # nearest-gene annotation, hits table
235
+ └── plotting/
236
+ ├── __init__.py
237
+ ├── linear.py # plot_linear
238
+ └── circular.py # plot_circular, compute_track_radii_dict
@@ -1,4 +1,5 @@
1
1
  LICENSE
2
+ LICENSE.mit
2
3
  README.md
3
4
  pyproject.toml
4
5
  setup.cfg
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pycmplot"
7
- version = "0.1.3"
7
+ version = "0.1.5"
8
8
  description = "Multi-track circular and linear Manhattan plot generation for GWAS summary statistics"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = pycmplot
3
- version = 0.1.3
3
+ version = 0.1.5
4
4
  author = Kevin Esoh
5
5
  author_email = kesohku1@jhmi.edu
6
6
  description = Multi-track circular and linear Manhattan plot generation for GWAS summary statistics
pycmplot-0.1.3/README.md DELETED
@@ -1,147 +0,0 @@
1
- # pycmplot
2
-
3
- Multi-track **circular** and **linear** Manhattan plot generation for GWAS summary statistics.
4
-
5
- ```
6
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
7
- | PACKAGE FOR CIRCULAR AND LINEAR MANHATTAN PLOTTING |
8
- | Kevin Esoh, 2026 |
9
- | kesohku1@jh.edu |
10
- #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
11
- ```
12
-
13
- ---
14
-
15
- ## Installation
16
-
17
- ### From PyPI
18
- ```bash
19
- pip install pycmplot
20
- ```
21
-
22
-
23
- ### From GitHub
24
- ```bash
25
- git clone https://github.com/esohkevin/pycmplot.git
26
-
27
- cd pycmplot
28
-
29
- pip install -e .
30
-
31
- # or
32
-
33
- pip install -e . --break-system-packages
34
- ```
35
-
36
-
37
- ### Use python virtual environment if local installation is not possible
38
- ```bash
39
- python -m venv ~/bin/pycmplot
40
-
41
- source ~/bin/pycmplot/bin/activate
42
-
43
- pip install --upgrade pip setuptools wheel
44
-
45
- # then follow any of the installation steps above
46
- ```
47
-
48
-
49
- # Test the installation
50
- ```bash
51
- pycmplot -h
52
- ```
53
-
54
- ### Dependencies
55
-
56
- | Package | Purpose |
57
- |---------|---------|
58
- | pandas, numpy | Data loading & statistics |
59
- | matplotlib | Plotting backend |
60
- | pycirclize | Circular (Circos-style) tracks |
61
- | natsort | Natural chromosome sorting |
62
- | adjustText | Label collision avoidance |
63
- | pyliftover | hg19 to hg38 coordinate conversion |
64
- | Pillow | Image utilities |
65
-
66
- ---
67
-
68
-
69
- ## Command-line usage
70
-
71
- ### Linear Manhattan (default)
72
-
73
- ```bash
74
- pycmplot \
75
- --sum_stats HbF.tsv.gz,MCV.txt.gz,MCH.tsv.gz \
76
- --labels HbF,MCV,MCH \
77
- --logp \
78
- --signif_line \
79
- --highlight \
80
- --annotate GENE \
81
- --output_dir ./results \
82
- --output_format png \
83
- --dpi 300
84
- ```
85
-
86
- ### Circular Manhattan
87
-
88
- ```bash
89
- pycmplot \
90
- --sum_stats HbF.tsv.gz,MCV.tsv.gz \
91
- --labels HbF,MCV \
92
- --mode cm \
93
- --logp \
94
- --signif_threshold \
95
- --plot_title "RBC Traits" \
96
- --output_dir ./results
97
- ```
98
-
99
- ### Key options
100
-
101
- | Flag | Description | Default |
102
- |------|-------------|---------|
103
- | `-s, --sum_stats` | Comma-separated sumstats files | **required** |
104
- | `-l, --labels` | Comma-separated track labels | **required** |
105
- | `-b, --build_column` | Genome build column name (containing hg18/hg19/hg38) | **required** |
106
- | `-m, --mode` | `lm` linear or `cm` circular | `lm` |
107
- | `-qq, --qq_plot` | Also generate a QQ-plot | off (coming soon...) |
108
- | `--logp` | Plot -log10(p) | off |
109
- | `-sig, --signif_threshold` | Genome-wide significance threshold | off (auto 0.05/N) |
110
- | `-sigl, --signif_line` | Value for genome-wide significance line if different from `-sig` | `-sig` |
111
- | `-sug, --suggest_threshold` | Suggestive significance line | off |
112
- | `-hl, --highlight` | Highlight significant loci | off |
113
- | `-a, --annotate` | Annotate with `SNP` or `GENE` | `SNP` |
114
- | `-tp, --trim_pval` | Trim variants above this p-value for speed | off |
115
- | `-st, --sort_track` | Sort tracks by `label` or `chrom_len` | input order |
116
- | `-od, --output_dir` | Output directory | `.` |
117
- | `-of, --output_format` | Output format (`png`, `pdf`, `svg`, `jpg`) | `png` |
118
-
119
- Run `pycmplot -h` for the full option list.
120
-
121
- ---
122
-
123
- ## Python API
124
-
125
- ```python
126
- from pycmplot import plot_linear
127
- import pandas as pd
128
-
129
- df1 = pd.read_csv("HbF.tsv.gz", sep="\t")
130
- df2 = pd.read_csv("MCV.tsv.gz", sep="\t")
131
-
132
- plot_linear(
133
- tracks=[df1, df2],
134
- track_labels=["HbF", "MCV"],
135
- chr_col="CHR",
136
- pos_col="POS",
137
- p_col="P",
138
- logp=True,
139
- highlight=True,
140
- plot_title="results/HbF_MCV.png",
141
- figsize=(15, 8),
142
- )
143
- ```
144
-
145
- ---
146
-
147
- _Under development_
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes