cbg-ethz / BnpC

Bayesian non-parametric clustering (BnpC) of binary data with missing values and uneven error rates
MIT License
18 stars 4 forks source link

heatmap genoCluster_posterior_mean.png lost tracks of original mutation and cell ID? #22

Open jeffchen2000 opened 2 years ago

jeffchen2000 commented 2 years ago

Hi BnpC support genoCluster_posterior_mean.png are only show sequential numbers on x-axis and y-axis, how can I track back to original cell ID and mutation ID? or in other words, are the sequential numbers the orders of original mutation and cell input? Thanks Xianfeng Chen

NBMueller commented 2 years ago

Dear Xianfeng Chen,

Yes, if your input data does not contain an index row and/or header column, rows and columns are labeled 1, 2, ..., n.

For more meaningful labels, try adding an index row/header column to the input data, it should be used automatically for labeling.

Hope that helps

jeffchen2000 commented 2 years ago

Thanks for the quick response!

it worked when I used the input format like below (tab delimited), it seems BnpC can auto-detect the column/row names

ID cell1 cell2 cell3 mutation1 0 1 3 mutation2 1 1 0 mutation3 0 0 1

monicaSudarsanam commented 2 years ago

Hi Nico,

This doesnt really work. I tried with Cell ID and row IDs and the heatmap indeed shows the same labels in the same order as the input. But the rows in the heatmaps are shuffled and it does not reflect the correct row IDs. The Rows IDs stays same as the input given. Do you happen to have a solution for this?