sc.pl.tsne()
https://scanpy.readthedocs.io/en/stable/api/generated/scanpy.pl.tsne.html#scanpy.pl.tsne
Cell embeding and clustering
sc.pl.tsne(adata, use_raw=, layer=, color=, size=, palette=, legend_fontsize=, legend_loc=, show=)
use_raw=: use the.rawdata for plot or not;default=None, the.rawwill be used for plotting
layer=:keyin.layerused for plot;de fault=None,.Xwill be used for plot
color=: the key of.obsor.varused for color the plot
size=: size of the scatter;7is good
palette=: colors used for plot;'Set1','Set2'and'Set3'can be choosed
legend_fontsize=: 指定图例中字体大小;选择7比较合适
legend_loc=:cluster标记显示的位置;on data表示标记在图中;legend_loc=None表示不绘制legend
show=: if plot the figure;default=True, plot the figure rather than return for plot; for return plot, it should beFalse
sc.pl.tsne(integration_of_Chem_FCA_and_AD_FCA, color="data", legend_fontsize='7')![]()
Gene expression level
sc.pl.tsne(adata, use_raw=, layer=, color=, size=, color_map=, legend_fontsize=, legend_loc=, show=, title=)
use_raw=: use the.rawdata for plot or not;default=None, the.rawwill be used for plotting
layer=:keyin.layerused for plot;de fault=None,.Xwill be used for plot
color=: the key of.obsor.varused for color the plot
size=: size of the scatter;7is good
color_map=: 当用基因表达进行配色时,改变配色方案;viridis为经典配色;viridis_r为反向经典配色,比较常用;其他配色包括magma和magma_r
legend_fontsize=: 指定图例中字体大小;选择7比较合适
legend_loc=:cluster标记显示的位置;on data表示标记在图中;legend_loc=None表示不绘制legend
show=: if plot the figure;default=True, plot the figure rather than return for plot; for return plot, it should beFalse
title=: title of this plot
sc.pl.tsne(scanpy_object, layer='normalized', color='', color_map='viridis_r', size=6, title='Krt14')![]()





网友评论