Coder Social home page Coder Social logo

Comments (3)

cbravo93 avatar cbravo93 commented on July 19, 2024

Hi @cmuus !

I normally use RStudio or save to pdf/png (with default parameters), and it displays ok (with ComplexHeatmap v1.17.1). However, updating to the latest version of ComplexHeatmap (in Bioconductor, v2.0.0) gives this (I guess this is what you see right?)

image

Changing the following:

annotation <- ComplexHeatmap::HeatmapAnnotation(df = object.cell.data[,colorBy,drop=FALSE], col = colVars, which='column', width = unit(5, "mm"))

by:

annotation <- ComplexHeatmap::HeatmapAnnotation(df = object.cell.data[,colorBy,drop=FALSE], col = colVars, which='column')

seems to give the proper output:

image

Did this solve the problem for you? I will make updates on the function so it works properly with any of the versions.

An alternative option to customise better your heatmap is to extract the cell-topic matrix using the function modelMatSelection().

Thanks a ton for reporting!

C

from cistopic.

cmuus avatar cmuus commented on July 19, 2024

Thank you for looking into it so quickly @cbravo93! This is all in line with what I see, sorry I didn't post example plots. You might want to specify height? Thanks for the modelMatSelection() hint, that's exactly what I ended up doing. I also just modified cellTopicHeatmap to output the heatmap and annotation objects. It might be too much to include in the main branch, but maybe you could include a flag that, when true, allows the user to output a tuple with heatmap and annotation?

from cistopic.

yanwengong avatar yanwengong commented on July 19, 2024

@cmuus @cbravo93
I am trying to modify the arrange of cells showing on the cisTopic heatmap. Instead of having the figure below, I would like the cells arranged by my legends. Just as @cbravo93 's plot!
Screen Shot 2020-05-13 at 3 06 25 PM

I couldn't find a way to do it with cisTopic vignette. I wonder how you guys make it. Do you mind share the code or direct me to the right source?

Thanks in advance for your help.

from cistopic.

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.