Giter Club home page Giter Club logo

Comments (4)

DingWB avatar DingWB commented on June 11, 2024

What do you mean by "0 should be on the right and 1 should be on the right"?
Did you follow this documentation?

If you want to change the side of the ticks from left to right, you can try the parameter label_side (see here), if you set label_side to the right (or bottom), then the ticks will be put on the left (or top), and vice versa.

from pycomplexheatmap.

DingWB avatar DingWB commented on June 11, 2024

I checked again. I didn't find any problem, could you please look into the documentation and confirm? @Jieran-S

from pycomplexheatmap.

Jieran-S avatar Jieran-S commented on June 11, 2024

Hey DingWB thanks for the quick response! ☺️ Let me explain my question a bit more clearly.

Say I have a heatmap as below, with the left annotation containing the boxplot. The boxplot dataframe is essentially the heatmap dataframe, I am projecting the heatmap row-wise to generate a boxplot.

Since the annotation is a left annotation, I would assume the boxplot to be orientated towards left, meaning the y-axis should be projecting towards left. (i.e. the minimal value of y-axis should be on the right, and the maximum y-axis value should be on the left). Whereas in this heatmap, the minimal y-axis value (0) is on the left and the max (1) is on the right, making the boxplot facing not left but right.

image

Here is how I coded the left annotation:

box = anno_boxplot(results, cmap="cividis", height=30, legend=False)
row_ha = HeatmapAnnotation(sample=anno_label(row_split, merge=True, rotation=0), 
                           domains=anno_simple(row_anno.domains), 
                           samples=anno_simple(row_anno.samples),
                           all_method_result=box, 
                           axis=0, orientation='left')

Could you help me check a bit which might be the problem? I tried almost everything but it just dosen't work...

from pycomplexheatmap.

DingWB avatar DingWB commented on June 11, 2024

Hi @Jieran-S ,

Thanks for your explanation. Is there any problem if you run this example code?
If not, something might be wrong with your code or data.
Could you please tell me which version you are using? If it is not the latest version, please upgrade to the newest version and try again.

If you are still facing the same issue with the latest version, please upload your data and paste your code, and I will debug it.

from pycomplexheatmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.