pinellolab / STREAM

STREAM: Single-cell Trajectories Reconstruction, Exploration And Mapping of single-cell data
http://stream.pinellolab.org
GNU Affero General Public License v3.0
173 stars 48 forks source link

Heatmap colors for plot_stream #97

Closed macros29 closed 4 years ago

macros29 commented 4 years ago

Is it possible to customize the heatmap colors for the plot_stream function when plotting pseudotime/variables? Such as the ones below:

heatmap_colors

huidongchen commented 4 years ago

Yes. The color palette can be specified within the function st.set_figure_params()

By default, STREAM is using

st.set_figure_params(dpi=80,style='white',figsize=[5.4,4.8], rc={'image.cmap': 'viridis'}).

It is also illustrated in our tutorial .

You can simply replace 'viridis' with whatever palette you prefer.

macros29 commented 4 years ago

Thanks a lot, @huidongchen! Sorry I missed that detail going through the tutorial.