Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oncoprint with heatmap left and bottom #1219

Open
attja opened this issue Nov 8, 2024 · 0 comments
Open

Oncoprint with heatmap left and bottom #1219

attja opened this issue Nov 8, 2024 · 0 comments

Comments

@attja
Copy link

attja commented Nov 8, 2024

Thank you for the great package. I have an oncoprint and I would like to add a heatmap to the left aligned with the gene names and an additional heatmap to the bottom aligned with the samples.
My command is the following (ComplexHeatmap_2.20.0):

> draw(gh+op %v% sh)
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'object' in selecting a method for function 'draw': `nrow` of all heatmaps and `nobs` of all annotations should be the same
for horizontal heatmap list.
  heatmap 'gh': 8
  heatmap 'oncoPrint': 8
  heatmap 'sh': 6

The dimensions are right.

> dim(gh_matrix)
[1] 8 7
> dim(op_matrix)
[1]  8 10
> dim(sh_matrix)
[1]  6 10

Columns/rows are match in oncoprint and heatmaps.

> identical(rownames(gh_matrix), rownames(op_matrix))
[1] TRUE
> identical(colnames(sh_matrix), colnames(op_matrix))
[1] TRUE

How could I create such a layout?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant