ComplexHeatmap-py 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.
- ComplexHeatmap.py +7 -0
- complexheatmap/__init__.py +221 -0
- complexheatmap/_base.py +56 -0
- complexheatmap/_options.py +165 -0
- complexheatmap/anno_funcs.py +2781 -0
- complexheatmap/annotations.py +1611 -0
- complexheatmap/colors.py +848 -0
- complexheatmap/data/dmr_summary/cgi_anno.csv +9 -0
- complexheatmap/data/dmr_summary/dist_tss.csv +9 -0
- complexheatmap/data/dmr_summary/gene_anno.csv +9 -0
- complexheatmap/data/dmr_summary/label.csv +9 -0
- complexheatmap/data/dmr_summary/mat_enrich_gf.csv +9 -0
- complexheatmap/data/dmr_summary/mat_enrich_st.csv +9 -0
- complexheatmap/data/dmr_summary/mat_pct_st.csv +9 -0
- complexheatmap/data/dmr_summary/mean_meth.csv +9 -0
- complexheatmap/data/dmr_summary/n_corr.csv +9 -0
- complexheatmap/data/dmr_summary/n_gr.csv +9 -0
- complexheatmap/data/gene_expression.csv +156 -0
- complexheatmap/data/gr.csv +2416 -0
- complexheatmap/data/measles.csv +60 -0
- complexheatmap/data/meth/enhancer.csv +1001 -0
- complexheatmap/data/meth/expr.csv +1001 -0
- complexheatmap/data/meth/meth.csv +1001 -0
- complexheatmap/data/meth/row_meta.csv +1001 -0
- complexheatmap/data/rand_mat.csv +19 -0
- complexheatmap/data/random_meth_expr_data/anno.csv +21 -0
- complexheatmap/data/random_meth_expr_data/anno_states.csv +1001 -0
- complexheatmap/data/random_meth_expr_data/mat_expr.csv +1001 -0
- complexheatmap/data/random_meth_expr_data/mat_meth.csv +1001 -0
- complexheatmap/data/random_meth_expr_data/row_meta.csv +1001 -0
- complexheatmap/data/sample_order.txt +172 -0
- complexheatmap/data/tcga_lung_adenocarcinoma.csv +27 -0
- complexheatmap/decorate.py +159 -0
- complexheatmap/dendrogram.py +937 -0
- complexheatmap/density.py +276 -0
- complexheatmap/genomic.py +348 -0
- complexheatmap/grid.py +1580 -0
- complexheatmap/heatmap.py +2244 -0
- complexheatmap/heatmap_list.py +1569 -0
- complexheatmap/legend.py +992 -0
- complexheatmap/oncoprint.py +488 -0
- complexheatmap/text.py +655 -0
- complexheatmap/three_d.py +188 -0
- complexheatmap/translate.py +338 -0
- complexheatmap/units.py +718 -0
- complexheatmap/upset.py +886 -0
- complexheatmap/utils.py +183 -0
- complexheatmap_py-0.1.0.dist-info/METADATA +96 -0
- complexheatmap_py-0.1.0.dist-info/RECORD +52 -0
- complexheatmap_py-0.1.0.dist-info/WHEEL +5 -0
- complexheatmap_py-0.1.0.dist-info/licenses/LICENSE +24 -0
- complexheatmap_py-0.1.0.dist-info/top_level.txt +2 -0
complexheatmap/utils.py
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"""Utility functions, R-compatible helpers, and bundled dataset loaders."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
from typing import Any, Sequence
|
|
7
|
+
|
|
8
|
+
import numpy as np
|
|
9
|
+
import pandas as pd
|
|
10
|
+
|
|
11
|
+
from .annotations import HeatmapAnnotation, c_HeatmapAnnotation
|
|
12
|
+
from .colors import ColorMapping, c_ColorMapping
|
|
13
|
+
from .units import Unit, is_unit, unit_c
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
_DATA_DIR = Path(__file__).resolve().parent / "data"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def pindex(m: Any, i: Any, j: Any) -> np.ndarray:
|
|
20
|
+
"""Pairwise element indexing `m[i[k], j[k]]` for 2D or 3D arrays (`pindex.Rd`)."""
|
|
21
|
+
arr = np.asarray(m)
|
|
22
|
+
ii = np.asarray(i, dtype=int)
|
|
23
|
+
jj = np.asarray(j, dtype=int)
|
|
24
|
+
if len(ii) == 1 and len(jj) > 1:
|
|
25
|
+
ii = np.repeat(ii, len(jj))
|
|
26
|
+
elif len(jj) == 1 and len(ii) > 1:
|
|
27
|
+
jj = np.repeat(jj, len(ii))
|
|
28
|
+
if len(ii) != len(jj):
|
|
29
|
+
raise ValueError("`i` and `j` must have equal length or length 1.")
|
|
30
|
+
if arr.ndim == 2:
|
|
31
|
+
return arr[ii, jj]
|
|
32
|
+
if arr.ndim == 3:
|
|
33
|
+
return arr[ii, jj, :]
|
|
34
|
+
raise ValueError(f"`pindex` expects 2D or 3D array, got {arr.ndim}D.")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def restore_matrix(j: Any, i: Any, x: Any, y: Any) -> np.ndarray:
|
|
38
|
+
"""Reconstruct 2D slice position index matrix inside `layer_fun` (`restore_matrix.Rd`)."""
|
|
39
|
+
x_vals = x.to_mm("x") if isinstance(x, Unit) else np.asarray(x, dtype=float)
|
|
40
|
+
y_vals = y.to_mm("y") if isinstance(y, Unit) else np.asarray(y, dtype=float)
|
|
41
|
+
# Round slightly to group identical coordinates cleanly
|
|
42
|
+
xu = np.sort(np.unique(np.round(x_vals, 6)))
|
|
43
|
+
yu = np.sort(np.unique(np.round(y_vals, 6)))[::-1] # top-to-bottom descending y
|
|
44
|
+
x_map = {v: idx for idx, v in enumerate(xu)}
|
|
45
|
+
y_map = {v: idx for idx, v in enumerate(yu)}
|
|
46
|
+
out = np.full((len(yu), len(xu)), -1, dtype=int)
|
|
47
|
+
for pos in range(len(x_vals)):
|
|
48
|
+
r = y_map[float(np.round(y_vals[pos], 6))]
|
|
49
|
+
c = x_map[float(np.round(x_vals[pos], 6))]
|
|
50
|
+
out[r, c] = pos
|
|
51
|
+
return out
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def c(*args: Any, **kwargs: Any) -> Any:
|
|
55
|
+
"""Polymorphic R-like concatenation for Units, ColorMappings, HeatmapAnnotations, or sequences."""
|
|
56
|
+
if not args:
|
|
57
|
+
return []
|
|
58
|
+
first = args[0]
|
|
59
|
+
if isinstance(first, HeatmapAnnotation) or any(isinstance(a, HeatmapAnnotation) for a in args if a is not None):
|
|
60
|
+
return c_HeatmapAnnotation(*[a for a in args if a is not None], **kwargs)
|
|
61
|
+
if isinstance(first, ColorMapping) and all(isinstance(a, ColorMapping) for a in args):
|
|
62
|
+
return c_ColorMapping(*args, **kwargs)
|
|
63
|
+
if is_unit(first) or any(is_unit(a) for a in args):
|
|
64
|
+
return unit_c(*args)
|
|
65
|
+
out: list[Any] = []
|
|
66
|
+
for a in args:
|
|
67
|
+
if a is None:
|
|
68
|
+
continue
|
|
69
|
+
if isinstance(a, (str, bytes)):
|
|
70
|
+
out.append(a)
|
|
71
|
+
elif isinstance(a, np.ndarray):
|
|
72
|
+
out.extend(a.ravel().tolist())
|
|
73
|
+
elif isinstance(a, (list, tuple, pd.Series, pd.Index)):
|
|
74
|
+
out.extend(list(a))
|
|
75
|
+
else:
|
|
76
|
+
out.append(a)
|
|
77
|
+
return out
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def t(x: Any) -> Any:
|
|
81
|
+
"""Transpose matrix, DataFrame, or CombMat (`UpSet` orientation switch)."""
|
|
82
|
+
if hasattr(x, "t") and callable(x.t):
|
|
83
|
+
return x.t()
|
|
84
|
+
if isinstance(x, pd.DataFrame):
|
|
85
|
+
return x.T
|
|
86
|
+
return np.asarray(x).T
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def names(x: Any) -> Any:
|
|
90
|
+
if hasattr(x, "names"):
|
|
91
|
+
nm = x.names
|
|
92
|
+
return nm() if callable(nm) else nm
|
|
93
|
+
if isinstance(x, pd.DataFrame):
|
|
94
|
+
return list(x.columns)
|
|
95
|
+
if isinstance(x, pd.Series):
|
|
96
|
+
return list(x.index)
|
|
97
|
+
if isinstance(x, dict):
|
|
98
|
+
return list(x.keys())
|
|
99
|
+
return None
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def set_names(x: Any, value: Sequence[str]) -> Any:
|
|
103
|
+
cp = x.copy_all() if hasattr(x, "copy_all") else x
|
|
104
|
+
if hasattr(cp, "names"):
|
|
105
|
+
cp.names = list(value)
|
|
106
|
+
return cp
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
def width(x: Any) -> Any:
|
|
110
|
+
if hasattr(x, "width"):
|
|
111
|
+
return x.width
|
|
112
|
+
return None
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def height(x: Any) -> Any:
|
|
116
|
+
if hasattr(x, "height"):
|
|
117
|
+
return x.height
|
|
118
|
+
return None
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def size(x: Any) -> Any:
|
|
122
|
+
if hasattr(x, "size"):
|
|
123
|
+
return x.size
|
|
124
|
+
return None
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def nrow(x: Any) -> int:
|
|
128
|
+
if hasattr(x, "nrow"):
|
|
129
|
+
v = x.nrow
|
|
130
|
+
return int(v() if callable(v) else v)
|
|
131
|
+
return int(np.asarray(x).shape[0])
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def ncol(x: Any) -> int:
|
|
135
|
+
if hasattr(x, "ncol"):
|
|
136
|
+
v = x.ncol
|
|
137
|
+
return int(v() if callable(v) else v)
|
|
138
|
+
arr = np.asarray(x)
|
|
139
|
+
return int(arr.shape[1]) if arr.ndim >= 2 else 1
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def dim(x: Any) -> tuple[int, ...]:
|
|
143
|
+
if hasattr(x, "shape"):
|
|
144
|
+
return tuple(x.shape)
|
|
145
|
+
return tuple(np.asarray(x).shape)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
def summary(x: Any) -> Any:
|
|
149
|
+
if hasattr(x, "summary") and callable(x.summary):
|
|
150
|
+
return x.summary()
|
|
151
|
+
return repr(x)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
def load_dataset(name: str) -> Any:
|
|
155
|
+
"""Load bundled reference datasets exported from ComplexHeatmap `inst/extdata/`."""
|
|
156
|
+
nm = name.strip().lower()
|
|
157
|
+
if nm == "measles":
|
|
158
|
+
df = pd.read_csv(_DATA_DIR / "measles.csv", index_col=0)
|
|
159
|
+
return df
|
|
160
|
+
if nm == "rand_mat":
|
|
161
|
+
return pd.read_csv(_DATA_DIR / "rand_mat.csv", index_col=0)
|
|
162
|
+
if nm in ("tcga", "tcga_lung_adenocarcinoma"):
|
|
163
|
+
return pd.read_csv(_DATA_DIR / "tcga_lung_adenocarcinoma.csv", index_col=0, keep_default_na=False)
|
|
164
|
+
if nm in ("gene_expression", "expr"):
|
|
165
|
+
return pd.read_csv(_DATA_DIR / "gene_expression.csv", index_col=0)
|
|
166
|
+
if nm == "gr":
|
|
167
|
+
return pd.read_csv(_DATA_DIR / "gr.csv")
|
|
168
|
+
if nm == "sample_order":
|
|
169
|
+
txt = (_DATA_DIR / "sample_order.txt").read_text().strip()
|
|
170
|
+
return [line.strip() for line in txt.splitlines() if line.strip()]
|
|
171
|
+
if nm == "meth":
|
|
172
|
+
d = _DATA_DIR / "meth"
|
|
173
|
+
return {p.stem: pd.read_csv(p, index_col=0) for p in sorted(d.glob("*.csv"))}
|
|
174
|
+
if nm == "dmr_summary":
|
|
175
|
+
d = _DATA_DIR / "dmr_summary"
|
|
176
|
+
return {p.stem: pd.read_csv(p, index_col=0) for p in sorted(d.glob("*.csv"))}
|
|
177
|
+
if nm == "random_meth_expr_data":
|
|
178
|
+
d = _DATA_DIR / "random_meth_expr_data"
|
|
179
|
+
return {p.stem: pd.read_csv(p, index_col=0) for p in sorted(d.glob("*.csv"))}
|
|
180
|
+
raise KeyError(
|
|
181
|
+
f"Unknown bundled dataset {name!r}. Available: 'measles', 'rand_mat', 'tcga_lung_adenocarcinoma', "
|
|
182
|
+
"'gene_expression', 'gr', 'sample_order', 'meth', 'dmr_summary', 'random_meth_expr_data'."
|
|
183
|
+
)
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ComplexHeatmap-py
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python port of the ComplexHeatmap R/Bioconductor package for making complex heatmaps, annotations, oncoPrints, UpSet plots, and density heatmaps.
|
|
5
|
+
Author-email: Xiaowei Zhan <zhanxw@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/zhanxw/ComplexHeatmap-py
|
|
8
|
+
Project-URL: Repository, https://github.com/zhanxw/ComplexHeatmap-py
|
|
9
|
+
Project-URL: Issues, https://github.com/zhanxw/ComplexHeatmap-py/issues
|
|
10
|
+
Keywords: heatmap,complexheatmap,bioinformatics,genomics,oncoprint,upset,matplotlib,visualization
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
22
|
+
Requires-Python: >=3.10
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: numpy>=1.24
|
|
26
|
+
Requires-Dist: scipy>=1.10
|
|
27
|
+
Requires-Dist: matplotlib>=3.7
|
|
28
|
+
Requires-Dist: pandas>=2.0
|
|
29
|
+
Requires-Dist: pillow>=10.0
|
|
30
|
+
Provides-Extra: dev
|
|
31
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# ComplexHeatmap-py
|
|
35
|
+
|
|
36
|
+
Complete standalone Python port of the R/Bioconductor **ComplexHeatmap** (v2.25.3) package, powered by NumPy, SciPy, Pandas, Pillow, and Matplotlib.
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install ComplexHeatmap-py
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Or install from source:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
git clone https://github.com/zhanxw/ComplexHeatmap-py.git
|
|
48
|
+
cd ComplexHeatmap-py
|
|
49
|
+
pip install -e .
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Both `import complexheatmap as ch` and `import ComplexHeatmap as ch` are supported.
|
|
53
|
+
|
|
54
|
+
## Quick Example
|
|
55
|
+
|
|
56
|
+
```python
|
|
57
|
+
import matplotlib
|
|
58
|
+
matplotlib.use("Agg")
|
|
59
|
+
import numpy as np
|
|
60
|
+
import pandas as pd
|
|
61
|
+
import complexheatmap as ch
|
|
62
|
+
|
|
63
|
+
rng = np.random.default_rng(123)
|
|
64
|
+
mat = pd.DataFrame(
|
|
65
|
+
rng.standard_normal((12, 10)),
|
|
66
|
+
index=[f"gene_{i}" for i in range(12)],
|
|
67
|
+
columns=[f"sample_{j}" for j in range(10)],
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
ha_top = ch.HeatmapAnnotation(
|
|
71
|
+
Group=["Ctrl"] * 5 + ["Treat"] * 5,
|
|
72
|
+
Score=ch.anno_barplot(rng.uniform(0, 1, 10)),
|
|
73
|
+
col={"Group": {"Ctrl": "#4DAF4A", "Treat": "#E41A1C"}},
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
ht1 = ch.Heatmap(mat, name="Expr", row_km=2, top_annotation=ha_top, border=True)
|
|
77
|
+
ht2 = ch.Heatmap(mat.iloc[:, :4] * 2, name="Delta")
|
|
78
|
+
ch.draw(ht1 + ht2, save="heatmap.png", width=9, height=6.5, dpi=150)
|
|
79
|
+
|
|
80
|
+
# Post-draw decoration (just like R's decorate_heatmap_body)
|
|
81
|
+
with ch.decorate_heatmap_body("Expr", row_slice=1, column_slice=1):
|
|
82
|
+
ch.grid.rect(gp=ch.gpar(fill="transparent", col="gold", lwd=2))
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Implemented Modules & Features
|
|
86
|
+
|
|
87
|
+
- **Core Graphics & Units (`units.py`, `grid.py`, `text.py`, `colors.py`)**: Vectorized `Unit` arithmetic (`mm`, `cm`, `inches`, `pt`, `npc`, `snpc`, `native`, `lines`, `char`, `grobwidth`/`grobheight`), `gpar`, nested Matplotlib viewports (`Viewport`, `pushViewport`, `popViewport`, `seekViewport`, `grid.*`), `GridText` (`gt_render` rich markup), `textbox_grob`, `smartAlign2`, and `colorRamp2` (LAB/XYZ/sRGB/HSV) + `ColorMapping`.
|
|
88
|
+
- **Clustering & Dendrograms (`dendrogram.py`)**: `dist`, `dist2`, `hclust`, `Dendrogram`, `cut_dendrogram`, `adjust_dend_by_x`, `merge_dendrogram`, `color_branches`, `cluster_within_group`, `cluster_between_groups`, `grid_dendrogram`, Path A cutree & Path B slice-first + consensus k-means clustering.
|
|
89
|
+
- **Annotations (`annotations.py`, `anno_funcs.py`)**: All 21 `anno_*` (`anno_simple`, `anno_empty`, `anno_points`, `anno_lines`, `anno_barplot`, `anno_boxplot`, `anno_histogram`, `anno_density`, `anno_joyplot`, `anno_horizon`, `anno_text`, `anno_numeric`, `anno_mark`, `anno_zoom`, `anno_link`, `anno_block`, `anno_summary`, `anno_image`, `anno_customize`, `anno_textbox`, `anno_oncoprint_barplot`) + 6 `row_anno_*` aliases, `HeatmapAnnotation`, `rowAnnotation`, `columnAnnotation`, `SingleAnnotation`, `AnnotationFunction`, `attach_annotation`.
|
|
90
|
+
- **Multi-Heatmap Lists & Legends (`heatmap.py`, `heatmap_list.py`, `legend.py`, `decorate.py`)**: Horizontal (`+`) and vertical (`%v%` / `/`) concatenation, `auto_adjust`, `main_heatmap` alignment, `Legend`/`packLegend` discrete + continuous + unequal-break legends, legend deduplication/`c_ColorMapping`, all 11 `decorate_*` viewport decorators, and slice/subsetting indexing (`ht[i, j]`, `ht_list[i, j]`).
|
|
91
|
+
- **High-Level Genomics & Plots (`oncoprint.py`, `upset.py`, `density.py`, `three_d.py`, `genomic.py`, `translate.py`)**: `oncoPrint` (with memoSort & alteration polygons), `make_comb_mat` / `UpSet` (`distinct`, `intersect`, `union`, genomic intervals, `t(m)`), `densityHeatmap`, `frequencyHeatmap`, `ks_dist`, `bar3D`, `Heatmap3D`, `IRanges`/`GRanges`/`bin_genome`/`normalize_genomic_signals_to_bins`, and drop-in translations `pheatmap`, `heatmap`, `heatmap_2`, `compare_*`.
|
|
92
|
+
- **Examples & Verification**: Complete ports of all **102 executable `.Rd` examples** ([examples/run_all_rd_examples.py](https://github.com/zhanxw/ComplexHeatmap-py/blob/main/examples/run_all_rd_examples.py)), publication gallery ([examples/showcase_gallery.py](https://github.com/zhanxw/ComplexHeatmap-py/blob/main/examples/showcase_gallery.py)), R-to-Python guide ([examples/r_to_python_guide.md](https://github.com/zhanxw/ComplexHeatmap-py/blob/main/examples/r_to_python_guide.md)), and `pytest` suite.
|
|
93
|
+
|
|
94
|
+
## License & Attribution
|
|
95
|
+
|
|
96
|
+
Released under the [MIT License](https://github.com/zhanxw/ComplexHeatmap-py/blob/main/LICENSE). Ported from the R/Bioconductor [ComplexHeatmap](https://github.com/jokergoo/ComplexHeatmap) package (v2.25.3), Copyright (c) 2020 Zuguang Gu (MIT License).
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
ComplexHeatmap.py,sha256=XYxhr_XntDnMXAGc41Zw6BloaRcmTjaYh3ptLa5H6WE,236
|
|
2
|
+
complexheatmap/__init__.py,sha256=zx1Qo-XFknzptUNZFP_7ywa48Pqc05zm7hu0lQC56xE,4689
|
|
3
|
+
complexheatmap/_base.py,sha256=wePNfbDPWR_lZDcWb28XKIvDXlQ10oPjLphTyzS3T9U,1748
|
|
4
|
+
complexheatmap/_options.py,sha256=qzniNf5S1gL4gpU8P8VDxQXjJVxvyBOgjC8uQoeVC_g,5292
|
|
5
|
+
complexheatmap/anno_funcs.py,sha256=ur5b4ibrpYh2heSeZdYGrmOwV5wzcJ6T-wmKFdMstdw,125463
|
|
6
|
+
complexheatmap/annotations.py,sha256=C2ey-hZjJrsEDJdPEy-FgQpkv1p-IuO3U7dOYs1K83g,64467
|
|
7
|
+
complexheatmap/colors.py,sha256=_eNMe9m_bMMvv__wW-laW83ztfORBiFxNJMO3FGaYjg,31372
|
|
8
|
+
complexheatmap/decorate.py,sha256=7JhfLeq2NORHzfOpHfwp9sxqZEgv-uWLw84ZJjqV_Rc,5023
|
|
9
|
+
complexheatmap/dendrogram.py,sha256=m9DykVJBHHWVYrRyqPZxhcvE_LI_IvBpRFFY4Xu66eA,33311
|
|
10
|
+
complexheatmap/density.py,sha256=EUtX-V3wi9PfQgksSp4_8d37rpkUBn90-B2DObxUDyc,10693
|
|
11
|
+
complexheatmap/genomic.py,sha256=DFYFQ9jUJGBMit7i8OoE_de-A2eWw2APPSRE86m7Voo,14117
|
|
12
|
+
complexheatmap/grid.py,sha256=qUs9m6E4M_PRYh432d7C2VVXRYK72XRENbic7ObYDfA,63406
|
|
13
|
+
complexheatmap/heatmap.py,sha256=Uuevb2Ic_N6OHf2Ss3tluVqAdFmiUkVZgQlL8LrPVZE,102778
|
|
14
|
+
complexheatmap/heatmap_list.py,sha256=nqbshNsdr-uxPh0yOohHGUfmkJdH0F-LZWQkrHWFkBs,80503
|
|
15
|
+
complexheatmap/legend.py,sha256=BGH349B_Vp4vBvT4ef2cEWvrXhAowDWA7lOEZTUyPqs,38346
|
|
16
|
+
complexheatmap/oncoprint.py,sha256=v-WKiMgQaK3kLsL61rasSB-ieHTh69ngvdHRyMamOc4,18941
|
|
17
|
+
complexheatmap/text.py,sha256=y68PYjpZTgkK7bSAhTTdlQIcVaKW7JNXUkUzTzomP7E,24474
|
|
18
|
+
complexheatmap/three_d.py,sha256=Te55uTOhiG06B9U0FZlcXNnRfQVpcM0ScYNRuuFS7Lo,6320
|
|
19
|
+
complexheatmap/translate.py,sha256=wKATF0eIiOwnSfNf5UidyUdaJBvIVxTro5NOYNGdJ6w,13528
|
|
20
|
+
complexheatmap/units.py,sha256=AxZv1nluWpf_OKd4qr01FadTQ9H04YUPjNeMFbgh0qI,25926
|
|
21
|
+
complexheatmap/upset.py,sha256=bf9bi5v30EO7li70BoJsVIGX0Vlem91Q_n7KWbmp4Ck,36355
|
|
22
|
+
complexheatmap/utils.py,sha256=KFHDQpTfSstDojOaAq9vVdkPaI5SWAocInQAf6JEvx4,6158
|
|
23
|
+
complexheatmap/data/gene_expression.csv,sha256=JqHsSkMLZczwDtsXgbmFjnd1oh-L16bdmxokfQSBbnU,69251
|
|
24
|
+
complexheatmap/data/gr.csv,sha256=-3teaikyjJMB5N3h7yoC6jUNfxPqjs9fNBx_cwUlbI0,1153227
|
|
25
|
+
complexheatmap/data/measles.csv,sha256=VlZ-d4_0hy7A5R7CFKdIkIxGKykXciJedf4qSxhw_Js,16874
|
|
26
|
+
complexheatmap/data/rand_mat.csv,sha256=0sOwvbf2p5roBoGyree__gaAAT2uqAxyOuIkmLsMtGo,8172
|
|
27
|
+
complexheatmap/data/sample_order.txt,sha256=mJvChl5Fdud043d460YUqpkkfkAcmWf9ru4ozPRkxQE,2752
|
|
28
|
+
complexheatmap/data/tcga_lung_adenocarcinoma.csv,sha256=GyqQ2Fd9Ij7KCl3nc431_L4fziKDFr3zYibqpk-Xzmk,17777
|
|
29
|
+
complexheatmap/data/dmr_summary/cgi_anno.csv,sha256=WasKlS8O_GVReGiCmGG5bFhizBtH5B73-gdpMnGWHGA,402
|
|
30
|
+
complexheatmap/data/dmr_summary/dist_tss.csv,sha256=ebeVsdvDgtz6MctV5W7xnELCxqsOo-M9RF4xE7O0sbs,703
|
|
31
|
+
complexheatmap/data/dmr_summary/gene_anno.csv,sha256=Hs7gpYZOslw0i9tgV7aOCBLdz_4rIjEMO_Lsk-sm-5U,383
|
|
32
|
+
complexheatmap/data/dmr_summary/label.csv,sha256=6FKc2dDv1AV7VUqM1CB0JnbvdofgeXIHes4fhlUq5RA,76
|
|
33
|
+
complexheatmap/data/dmr_summary/mat_enrich_gf.csv,sha256=ZC1TTBx3fMK1bZGMR0NXgYbg0xotVJ9nT35EJEifzr8,1402
|
|
34
|
+
complexheatmap/data/dmr_summary/mat_enrich_st.csv,sha256=x5IzTSte4nsfu0ER7paO0krM4RL0ejQ6-OQq1jx-9k4,1141
|
|
35
|
+
complexheatmap/data/dmr_summary/mat_pct_st.csv,sha256=PLW69IbIbSspRI08RSswp4HbhgduR1HK4Vbtkq3zvA0,1206
|
|
36
|
+
complexheatmap/data/dmr_summary/mean_meth.csv,sha256=nrR6ezsxCV8VSPiJcjwh3K0KWdshApB82Ig1IN0HKgE,381
|
|
37
|
+
complexheatmap/data/dmr_summary/n_corr.csv,sha256=rv5DoZ-4SXuYtWAC9Y-7t75yFBd3OMb6saqjs8vYN_E,378
|
|
38
|
+
complexheatmap/data/dmr_summary/n_gr.csv,sha256=0_CyvgVBkQctGZ78rEyMhNshzJkOcLpx4K0rZTR6RsA,60
|
|
39
|
+
complexheatmap/data/meth/enhancer.csv,sha256=shszfv3t8vIqaI2YV_dYC7R6lk3QeNKjBpEKZLGBayY,20513
|
|
40
|
+
complexheatmap/data/meth/expr.csv,sha256=N_KlqVvrPOSfdBYCOWW5valLEDA5EMg82YN_4qK5Ee4,363165
|
|
41
|
+
complexheatmap/data/meth/meth.csv,sha256=qySiIn2NjUHHikZXPwNyHgikkhnCLjcvlWJhpSGTmpA,357927
|
|
42
|
+
complexheatmap/data/meth/row_meta.csv,sha256=Awg0lkVfHEq66_8M3kp5LZdjNNkL_5PXj9Heumcyzqs,58706
|
|
43
|
+
complexheatmap/data/random_meth_expr_data/anno.csv,sha256=NshCPbHMv-41q1mo2OP9osHPdew8_rwwJj57-sHKlBw,959
|
|
44
|
+
complexheatmap/data/random_meth_expr_data/anno_states.csv,sha256=mWrcZz2OinWL8jlZnOdyja6FcErMr7Q4nqq5WgL9OCs,26974
|
|
45
|
+
complexheatmap/data/random_meth_expr_data/mat_expr.csv,sha256=jw_MG_kPidrB2dTyjFIxsBx-SkfCJTe-QDdnFz1fEio,363152
|
|
46
|
+
complexheatmap/data/random_meth_expr_data/mat_meth.csv,sha256=Q2i72wa3Az26PFyx452FLJOpwhqZmNPPFwwZeItM01E,357926
|
|
47
|
+
complexheatmap/data/random_meth_expr_data/row_meta.csv,sha256=Wle7tTBKxi2M6OsW5JQy6W9mZjxxAyECJGomxj4FwcM,60472
|
|
48
|
+
complexheatmap_py-0.1.0.dist-info/licenses/LICENSE,sha256=wpeEcqXIoi4mkKxDjLCG_w6NqRRBZDH42okN2tj2O2s,1249
|
|
49
|
+
complexheatmap_py-0.1.0.dist-info/METADATA,sha256=GBO6VuC9Q9GOty8Te3sbbOoKte-Uib4BYk2ipOD39Zw,5810
|
|
50
|
+
complexheatmap_py-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
51
|
+
complexheatmap_py-0.1.0.dist-info/top_level.txt,sha256=B7M8MH6nisthEA88PvCYbk4xBJ8PYtGZ_4ysy03-1h4,30
|
|
52
|
+
complexheatmap_py-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Xiaowei Zhan and ComplexHeatmap-py Contributors
|
|
4
|
+
|
|
5
|
+
Ported from the R/Bioconductor ComplexHeatmap package, Copyright (c) 2020 Zuguang Gu
|
|
6
|
+
(MIT License, https://github.com/jokergoo/ComplexHeatmap).
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|