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

plotMarkerHeatmap #649

Open
l-magnificence opened this issue Mar 24, 2021 · 3 comments
Open

plotMarkerHeatmap #649

l-magnificence opened this issue Mar 24, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@l-magnificence
Copy link

When I run the code in tutorial data, I found the different heatmap whose marker genes in each cluster was not ordered?What happened? How can I draw the figure like in manual chapter 7.4?

markersGS <- getMarkerFeatures(
  ArchRProj = projHeme2, 
  useMatrix = "GeneScoreMatrix", 
  groupBy = "Clusters",
  bias = c("TSSEnrichment", "log10(nFrags)"),
  testMethod = "wilcoxon"
)
markerGenes  <- c(
  "CD34", #Early Progenitor
  "GATA1", #Erythroid
  "PAX5", "MS4A1", "EBF1", "MME", #B-Cell Trajectory
  "CD14", "CEBPB", "MPO", #Monocytes
  "IRF8", 
  "CD3D", "CD8A", "TBX21", "IL7R" #TCells
)
heatmapGS <- plotMarkerHeatmap(
  seMarker = markersGS, 
  cutOff = "FDR <= 0.01 & Log2FC >= 1.25", 
  labelMarkers = markerGenes,
  transpose = TRUE,
  binaryClusterRows = T, clusterCols = T 
)
ComplexHeatmap::draw(heatmapGS, heatmap_legend_side = "bot", annotation_legend_side = "bot")

image

@boberrey
Copy link

I've been having the same issue. It occurs regardless of which cluster flags are passed to plotMarkerHeatmap and seems to occur on both R 3.6 and 4.0.

@boberrey boberrey added the bug Something isn't working label Apr 17, 2021
@rcorces
Copy link
Collaborator

rcorces commented Apr 19, 2021

This is not a bug in ArchR. Perhaps the code in the manual is a little outdated though. Just use the row_order argument to ComplexHeatmap::draw to re-order your rows manually.

@rcorces rcorces closed this as completed Apr 19, 2021
@alekseybelikov
Copy link

same problem
#2222 (comment)

@immanuelazn immanuelazn reopened this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants