ModDotPlot 0.9.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.
- ModDotPlot-0.9.0.dist-info/LICENSE +21 -0
- ModDotPlot-0.9.0.dist-info/METADATA +421 -0
- ModDotPlot-0.9.0.dist-info/RECORD +14 -0
- ModDotPlot-0.9.0.dist-info/WHEEL +5 -0
- ModDotPlot-0.9.0.dist-info/entry_points.txt +2 -0
- ModDotPlot-0.9.0.dist-info/top_level.txt +1 -0
- moddotplot/__init__.py +1 -0
- moddotplot/__main__.py +11 -0
- moddotplot/const.py +293 -0
- moddotplot/estimate_identity.py +537 -0
- moddotplot/interactive.py +1755 -0
- moddotplot/moddotplot.py +1127 -0
- moddotplot/parse_fasta.py +156 -0
- moddotplot/static_plots.py +1264 -0
moddotplot/const.py
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
VERSION = "0.9.0"
|
|
2
|
+
COLS = [
|
|
3
|
+
"#query_name",
|
|
4
|
+
"query_start",
|
|
5
|
+
"query_end",
|
|
6
|
+
"reference_name",
|
|
7
|
+
"reference_start",
|
|
8
|
+
"reference_end",
|
|
9
|
+
"perID_by_events",
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
ASCII_ART = """
|
|
13
|
+
__ __ _ _____ _ _____ _ _
|
|
14
|
+
| \/ | | | | __ \ | | | __ \| | | |
|
|
15
|
+
| \ / | ___ __| | | | | | ___ | |_ | |__) | | ___ | |_
|
|
16
|
+
| |\/| |/ _ \ / _` | | | | |/ _ \| __| | ___/| |/ _ \| __|
|
|
17
|
+
| | | | (_) | (_| | | |__| | (_) | |_ | | | | (_) | |_
|
|
18
|
+
|_| |_|\___/ \__,_| |_____/ \___/ \__| |_| |_|\___/ \__|
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
DIVERGING_PALETTES = [
|
|
22
|
+
"BrBG_3",
|
|
23
|
+
"BrBG_4",
|
|
24
|
+
"BrBG_5",
|
|
25
|
+
"BrBG_6",
|
|
26
|
+
"BrBG_7",
|
|
27
|
+
"BrBG_8",
|
|
28
|
+
"BrBG_9",
|
|
29
|
+
"BrBG_10",
|
|
30
|
+
"BrBG_11",
|
|
31
|
+
"PRGn_3",
|
|
32
|
+
"PRGn_4",
|
|
33
|
+
"PRGn_5",
|
|
34
|
+
"PRGn_6",
|
|
35
|
+
"PRGn_7",
|
|
36
|
+
"PRGn_8",
|
|
37
|
+
"PRGn_9",
|
|
38
|
+
"PRGn_10",
|
|
39
|
+
"PRGn_11",
|
|
40
|
+
"PiYG_3",
|
|
41
|
+
"PiYG_4",
|
|
42
|
+
"PiYG_5",
|
|
43
|
+
"PiYG_6",
|
|
44
|
+
"PiYG_7",
|
|
45
|
+
"PiYG_8",
|
|
46
|
+
"PiYG_9",
|
|
47
|
+
"PiYG_10",
|
|
48
|
+
"PiYG_11",
|
|
49
|
+
"PuOr_3",
|
|
50
|
+
"PuOr_4",
|
|
51
|
+
"PuOr_5",
|
|
52
|
+
"PuOr_6",
|
|
53
|
+
"PuOr_7",
|
|
54
|
+
"PuOr_8",
|
|
55
|
+
"PuOr_9",
|
|
56
|
+
"PuOr_10",
|
|
57
|
+
"PuOr_11",
|
|
58
|
+
"RdBu_3",
|
|
59
|
+
"RdBu_4",
|
|
60
|
+
"RdBu_5",
|
|
61
|
+
"RdBu_6",
|
|
62
|
+
"RdBu_7",
|
|
63
|
+
"RdBu_8",
|
|
64
|
+
"RdBu_9",
|
|
65
|
+
"RdBu_10",
|
|
66
|
+
"RdBu_11",
|
|
67
|
+
"RdGy_3",
|
|
68
|
+
"RdGy_4",
|
|
69
|
+
"RdGy_5",
|
|
70
|
+
"RdGy_6",
|
|
71
|
+
"RdGy_7",
|
|
72
|
+
"RdGy_8",
|
|
73
|
+
"RdGy_9",
|
|
74
|
+
"RdGy_10",
|
|
75
|
+
"RdGy_11",
|
|
76
|
+
"RdYlBu_3",
|
|
77
|
+
"RdYlBu_4",
|
|
78
|
+
"RdYlBu_5",
|
|
79
|
+
"RdYlBu_6",
|
|
80
|
+
"RdYlBu_7",
|
|
81
|
+
"RdYlBu_8",
|
|
82
|
+
"RdYlBu_9",
|
|
83
|
+
"RdYlBu_10",
|
|
84
|
+
"RdYlBu_11",
|
|
85
|
+
"RdYlGn_3",
|
|
86
|
+
"RdYlGn_4",
|
|
87
|
+
"RdYlGn_5",
|
|
88
|
+
"RdYlGn_6",
|
|
89
|
+
"RdYlGn_7",
|
|
90
|
+
"RdYlGn_8",
|
|
91
|
+
"RdYlGn_9",
|
|
92
|
+
"RdYlGn_10",
|
|
93
|
+
"RdYlGn_11",
|
|
94
|
+
"Spectral_3",
|
|
95
|
+
"Spectral_4",
|
|
96
|
+
"Spectral_5",
|
|
97
|
+
"Spectral_6",
|
|
98
|
+
"Spectral_7",
|
|
99
|
+
"Spectral_8",
|
|
100
|
+
"Spectral_9",
|
|
101
|
+
"Spectral_10",
|
|
102
|
+
"Spectral_11",
|
|
103
|
+
]
|
|
104
|
+
|
|
105
|
+
QUALITATIVE_PALETTES = [
|
|
106
|
+
"Accent_3",
|
|
107
|
+
"Accent_4",
|
|
108
|
+
"Accent_5",
|
|
109
|
+
"Accent_6",
|
|
110
|
+
"Accent_7",
|
|
111
|
+
"Accent_8",
|
|
112
|
+
"Dark2_3",
|
|
113
|
+
"Dark2_4",
|
|
114
|
+
"Dark2_5",
|
|
115
|
+
"Dark2_6",
|
|
116
|
+
"Dark2_7",
|
|
117
|
+
"Dark2_8",
|
|
118
|
+
"Paired_3",
|
|
119
|
+
"Paired_4",
|
|
120
|
+
"Paired_5",
|
|
121
|
+
"Paired_6",
|
|
122
|
+
"Paired_7",
|
|
123
|
+
"Paired_8",
|
|
124
|
+
"Paired_9",
|
|
125
|
+
"Paired_10",
|
|
126
|
+
"Paired_11",
|
|
127
|
+
"Paired_12",
|
|
128
|
+
"Pastel1_3",
|
|
129
|
+
"Pastel1_4",
|
|
130
|
+
"Pastel1_5",
|
|
131
|
+
"Pastel1_6",
|
|
132
|
+
"Pastel1_7",
|
|
133
|
+
"Pastel1_8",
|
|
134
|
+
"Pastel1_9",
|
|
135
|
+
"Pastel2_3",
|
|
136
|
+
"Pastel2_4",
|
|
137
|
+
"Pastel2_5",
|
|
138
|
+
"Pastel2_6",
|
|
139
|
+
"Pastel2_7",
|
|
140
|
+
"Pastel2_8",
|
|
141
|
+
"Set1_3",
|
|
142
|
+
"Set1_4",
|
|
143
|
+
"Set1_5",
|
|
144
|
+
"Set1_6",
|
|
145
|
+
"Set1_7",
|
|
146
|
+
"Set1_8",
|
|
147
|
+
"Set1_9",
|
|
148
|
+
"Set2_3",
|
|
149
|
+
"Set2_4",
|
|
150
|
+
"Set2_5",
|
|
151
|
+
"Set2_6",
|
|
152
|
+
"Set2_7",
|
|
153
|
+
"Set2_8",
|
|
154
|
+
"Set3_3",
|
|
155
|
+
"Set3_4",
|
|
156
|
+
"Set3_5",
|
|
157
|
+
"Set3_6",
|
|
158
|
+
"Set3_7",
|
|
159
|
+
"Set3_8",
|
|
160
|
+
"Set3_9",
|
|
161
|
+
"Set3_10",
|
|
162
|
+
"Set3_11",
|
|
163
|
+
"Set3_12",
|
|
164
|
+
]
|
|
165
|
+
|
|
166
|
+
SEQUENTIAL_PALETTES = [
|
|
167
|
+
"Blues_3",
|
|
168
|
+
"Blues_4",
|
|
169
|
+
"Blues_5",
|
|
170
|
+
"Blues_6",
|
|
171
|
+
"Blues_7",
|
|
172
|
+
"Blues_8",
|
|
173
|
+
"Blues_9",
|
|
174
|
+
"BuGn_3",
|
|
175
|
+
"BuGn_4",
|
|
176
|
+
"BuGn_5",
|
|
177
|
+
"BuGn_6",
|
|
178
|
+
"BuGn_7",
|
|
179
|
+
"BuGn_8",
|
|
180
|
+
"BuGn_9",
|
|
181
|
+
"BuPu_3",
|
|
182
|
+
"BuPu_4",
|
|
183
|
+
"BuPu_5",
|
|
184
|
+
"BuPu_6",
|
|
185
|
+
"BuPu_7",
|
|
186
|
+
"BuPu_8",
|
|
187
|
+
"BuPu_9",
|
|
188
|
+
"GnBu_3",
|
|
189
|
+
"GnBu_4",
|
|
190
|
+
"GnBu_5",
|
|
191
|
+
"GnBu_6",
|
|
192
|
+
"GnBu_7",
|
|
193
|
+
"GnBu_8",
|
|
194
|
+
"GnBu_9",
|
|
195
|
+
"Greens_3",
|
|
196
|
+
"Greens_4",
|
|
197
|
+
"Greens_5",
|
|
198
|
+
"Greens_6",
|
|
199
|
+
"Greens_7",
|
|
200
|
+
"Greens_8",
|
|
201
|
+
"Greens_9",
|
|
202
|
+
"Greys_3",
|
|
203
|
+
"Greys_4",
|
|
204
|
+
"Greys_5",
|
|
205
|
+
"Greys_6",
|
|
206
|
+
"Greys_7",
|
|
207
|
+
"Greys_8",
|
|
208
|
+
"Greys_9",
|
|
209
|
+
"OrRd_3",
|
|
210
|
+
"OrRd_4",
|
|
211
|
+
"OrRd_5",
|
|
212
|
+
"OrRd_6",
|
|
213
|
+
"OrRd_7",
|
|
214
|
+
"OrRd_8",
|
|
215
|
+
"OrRd_9",
|
|
216
|
+
"Oranges_3",
|
|
217
|
+
"Oranges_4",
|
|
218
|
+
"Oranges_5",
|
|
219
|
+
"Oranges_6",
|
|
220
|
+
"Oranges_7",
|
|
221
|
+
"Oranges_8",
|
|
222
|
+
"Oranges_9",
|
|
223
|
+
"PuBu_3",
|
|
224
|
+
"PuBu_4",
|
|
225
|
+
"PuBu_5",
|
|
226
|
+
"PuBu_6",
|
|
227
|
+
"PuBu_7",
|
|
228
|
+
"PuBu_8",
|
|
229
|
+
"PuBu_9",
|
|
230
|
+
"PuBuGn_3",
|
|
231
|
+
"PuBuGn_4",
|
|
232
|
+
"PuBuGn_5",
|
|
233
|
+
"PuBuGn_6",
|
|
234
|
+
"PuBuGn_7",
|
|
235
|
+
"PuBuGn_8",
|
|
236
|
+
"PuBuGn_9",
|
|
237
|
+
"PuRd_3",
|
|
238
|
+
"PuRd_4",
|
|
239
|
+
"PuRd_5",
|
|
240
|
+
"PuRd_6",
|
|
241
|
+
"PuRd_7",
|
|
242
|
+
"PuRd_8",
|
|
243
|
+
"PuRd_9",
|
|
244
|
+
"Purples_3",
|
|
245
|
+
"Purples_4",
|
|
246
|
+
"Purples_5",
|
|
247
|
+
"Purples_6",
|
|
248
|
+
"Purples_7",
|
|
249
|
+
"Purples_8",
|
|
250
|
+
"Purples_9",
|
|
251
|
+
"RdPu_3",
|
|
252
|
+
"RdPu_4",
|
|
253
|
+
"RdPu_5",
|
|
254
|
+
"RdPu_6",
|
|
255
|
+
"RdPu_7",
|
|
256
|
+
"RdPu_8",
|
|
257
|
+
"RdPu_9",
|
|
258
|
+
"Reds_3",
|
|
259
|
+
"Reds_4",
|
|
260
|
+
"Reds_5",
|
|
261
|
+
"Reds_6",
|
|
262
|
+
"Reds_7",
|
|
263
|
+
"Reds_8",
|
|
264
|
+
"Reds_9",
|
|
265
|
+
"YlGn_3",
|
|
266
|
+
"YlGn_4",
|
|
267
|
+
"YlGn_5",
|
|
268
|
+
"YlGn_6",
|
|
269
|
+
"YlGn_7",
|
|
270
|
+
"YlGn_8",
|
|
271
|
+
"YlGn_9",
|
|
272
|
+
"YlGnBu_3",
|
|
273
|
+
"YlGnBu_4",
|
|
274
|
+
"YlGnBu_5",
|
|
275
|
+
"YlGnBu_6",
|
|
276
|
+
"YlGnBu_7",
|
|
277
|
+
"YlGnBu_8",
|
|
278
|
+
"YlGnBu_9",
|
|
279
|
+
"YlOrBr_3",
|
|
280
|
+
"YlOrBr_4",
|
|
281
|
+
"YlOrBr_5",
|
|
282
|
+
"YlOrBr_6",
|
|
283
|
+
"YlOrBr_7",
|
|
284
|
+
"YlOrBr_8",
|
|
285
|
+
"YlOrBr_9",
|
|
286
|
+
"YlOrRd_3",
|
|
287
|
+
"YlOrRd_4",
|
|
288
|
+
"YlOrRd_5",
|
|
289
|
+
"YlOrRd_6",
|
|
290
|
+
"YlOrRd_7",
|
|
291
|
+
"YlOrRd_8",
|
|
292
|
+
"YlOrRd_9",
|
|
293
|
+
]
|