Comments (5)
I've been playing around with the function on my own data, and it works great so far!
Of course the clustermaps do not align anymore if one provides different number of row or column annotations
from pycomplexheatmap.
Yeah, you are right. Sorry for the mistake. I have already fixed it in the latest GitHub push. Please install it using pip install git+https://github.com/DingWB/PyComplexHeatmap
Please kindly test it and give me feedback if there are any bugs.
from pycomplexheatmap.
Thanks for the quick fix!
I would also recommend the option to pass height_ratios and width_ratios to the function. Something like:
if axis == 1: # horizontally
wspace = col_gap * mm2inch * ax.figure.dpi / (ax.get_window_extent().width / n)
nrows = 1
ncols = n
width_ratios = [cm.data2d.shape[1] for cm in cmlist] if width_ratios is None else width_ratios
height_ratios = None
else: # vertically
hspace = row_gap * mm2inch * ax.figure.dpi / (ax.get_window_extent().height / n)
nrows = n
ncols = 1
width_ratios = None
height_ratios = [cm.data2d.shape[0] for cm in cmlist] if height_ratios is None else height_ratios
from pycomplexheatmap.
That's a good idea. Could you please make a pull request?
from pycomplexheatmap.
Just did
from pycomplexheatmap.
Related Issues (20)
- Possible bug? 'lightgray' is not a valid color value. HOT 9
- Thick white lines appearning in clustermap when large genesets used HOT 3
- Missing annotation HOT 2
- Try to save results from ClusterMapPlotter as pdf, but the heatmap is a figure not in vector HOT 6
- cluster_between_groups and col_split_order: allow custom col_split_order after clustering the groups specified with col_split HOT 10
- MatplotlibDeprecationWarning HOT 1
- optimizing and sorting dendrogram HOT 10
- Unexpected grid potential caused by seaborn or scanpy
- Adjusting width/height of heatmap? HOT 1
- Missing annot when using composite HOT 1
- Centering custom annotation HOT 5
- Displaying images in place of text labels for heatmaps HOT 9
- Cluster mitake occur in pyHeatmap HOT 2
- How to remove arrows for anno_label HOT 4
- Re-order labels in legend HOT 1
- Boxplot orientation for `left_annotation` HOT 4
- Missing annotations, and functionality to add line colors for row annotations HOT 2
- Legends not saved properly when using plt.savefig() HOT 11
- anno_boxplot AttributeError for colors parameter usage due to .copy() in check_colors HOT 1
- How to set vmax and vmin of cmap in ClusterMapPlotter() HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycomplexheatmap.