This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to row normalize a matrixplot?

Hello,

I made a heatmap with the command shown below. I was told that some of the genes are more lowly expressed that other so it s hard to see them on the same scale and was asked to row normalize the heatmap. How can I do that? For the heatmap I have already produced I used the normalized and logarithmized data.

sc.pl.matrixplot(adata, markers, groupby='leiden_0.4', cmap="Oranges", use_raw=True, swap_axes = True)

Thank you

scrna-seq rna-seq single-cell scanpy

You can give a try with the standard_scale argument. From the documentation:

standard_scale : Optional[Literal['var', 'group']] (default: None)

Whether or not to standardize the given dimension between 0 and 1, meaning for each variable or group, subtract the minimum and divide each by its maximum.

Thank you. That is what I ended up doing.

0 answers

No answers yet.

Log in to answer this question.