Hi,
DiffBind is great and a heat map of counting reads is very helpful (e.g. the attached figure). However, I would like to run a hierarchical clustering using other graphical tools that I can swap different groups. Therefore, I need each sample's affinity scores for each consensus peak. The best way is that (1) every row is a sample; (2) every column is a consensus peak with affinity scores. Could you tell me how to get this kind of data? Many thanks.
Best,
Gary
Hi Rory,
Thank you so much. May I have a stupid question? After getting the scores as the attached figure, how can I save it as a .txt file on a directory I want? Many thanks.
Best,
Gary
You can use the
write.table()
function in R to write out the transposed data frame, or you can write the original data frame out directly:-R