Skip to content

Commit

Permalink
Removed hardcoded colors logic. Color map is provided if wanted speci…
Browse files Browse the repository at this point in the history
…fic colors
  • Loading branch information
airenzp authored and xzhou82 committed Jan 15, 2025
1 parent acfd4c5 commit e84aa3b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions client/plots/singleCellPlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -721,12 +721,7 @@ class singleCellPlot {
}
const cat2Color = getColors(plot.clusters.length + 2) //Helps to use the same color scheme in different samples
for (const cluster of plot.clusters)
colorMap[cluster] =
cluster == 'ref' || cluster == 'No'
? '#F2F2F2'
: plot.colorMap?.[cluster]
? plot.colorMap[cluster]
: cat2Color(cluster)
colorMap[cluster] = plot.colorMap?.[cluster] ? plot.colorMap[cluster] : cat2Color(cluster)

plot.colorMap = colorMap

Expand Down

0 comments on commit e84aa3b

Please sign in to comment.