PaulingLiu / scibet

A portable and fast single cell type identifier
BSD 3-Clause "New" or "Revised" License
62 stars 11 forks source link

Marker_heatmap() plot Failed #15

Open myshu2017-03-14 opened 1 week ago

myshu2017-03-14 commented 1 week ago

Hi, Recently, I encountered the following error while using the Marker_heatmap function to plot: image

Here is the code I used to run it:

pdf(file = filepath3,width = 15,height = 5)
Marker_heatmap(preddata_df, etest_gene)
dev.off()

Upon reviewing the source code, I found that the error occurred in the get_label function within the Marker_heatmap() function. This function is supposed to calculate the cell type corresponding to the maximum value in the current row. However, in my data, the maximum value in the fifth row corresponds to two cell types, which led to the final error. How should I resolve this situation? Here is the error information: image

Looking forward to your reply.