stuart-lab / signac

R toolkit for the analysis of single-cell chromatin data
https://stuartlab.org/signac/
Other
330 stars 88 forks source link

RegionHeatmap order #1745

Open umutcakir opened 4 months ago

umutcakir commented 4 months ago

Dear community,

I plot fragment counts using RegionHeatmap. This is my code and the output is attached:

RM <- RegionMatrix( ATAC, range, key = 'key', assay = 'peaks', upstream = 3000, downstream = 3000 )

heatmap <- RegionHeatmap( RM, key = 'key', assay = 'peaks', normalize = TRUE, upstream = 3000, downstream = 3000, max.cutoff = "q95", cols = NULL, min.counts = 1, window = 6000/30, order = TRUE, nrow = 1 )

How can I change the order of identities? (Like 0,1,2,3,4,5,6,7,8, etc. instead of 0,1,10,11)

image

Thank you in advance for your help.