deepTools icon indicating copy to clipboard operation
deepTools copied to clipboard

Output kmeans clusters

Open giardine opened this issue 3 years ago • 1 comments

deeptools 3.5.1 Python 2.7.5

computeMatrix reference-point -R h3SummMerged.bed -S $h3bbws -o matrixH3.gz --outFileNameMatrix matrixH3.tsv --outFileSortedRegions sortedPeaksH3.bed --upstream 1000 --downstream 1000 --binSize 10 --blackListFileName blacklist.bed --samplesLabel $labels3b --referencePoint center plotHeatmap -m matrixH3.gz -o metaHeatmapH3.pdf --kmeans 3 --colorMap coolwarm

The heatmap is generated successfully. The problem is that sortedPeaksH3.bed does not include the cluster numbers. How do I know which regions are in each cluster?

#chrom start end name score strand thickStart thickEnd itemRGB blockCount blockSizes blockStart deepTools_group chr2L 2502 2767 chr2L:2502-2767 . . 2502 2767 0 1 265 2500 genes

Thanks, Belinda

giardine avatar Jan 05 '23 13:01 giardine

Hi, When plotting your heatmap, you can output the regions using the --outFileSortedRegions option. You will get an output file with the deepTools_group identifying the clusters.

Best, Julie.

JSegueni avatar Apr 13 '23 10:04 JSegueni