scanpy icon indicating copy to clipboard operation
scanpy copied to clipboard

show the mean of several genes in spatial scanpy figure

Open sophieRAIBAUD opened this issue 2 years ago • 4 comments

... Hello

I would like to plot the "log1p_total_counts" of a visium transcriptomic dataset (AnnData object with n_obs × n_vars) using sc.pl.spatial

sc.pl.spatial(adatal, img_key="hires", color=["gene1", "gene2", "gene3"]) --> gives 3 images (the 3 genes are plotted stacked on 3 images)

But instead of I would like to plot the mean of the 3 genes on 1 image

is it possible ?? I hope the question is clear :) Manys thanks for your help Sophie

sophieRAIBAUD avatar May 06 '22 19:05 sophieRAIBAUD

I am looking for the same thing. Did you find a way to do that?

MertDemirdizen avatar Jun 04 '22 14:06 MertDemirdizen

unfortunatly not :(

sophieRAIBAUD avatar Jun 06 '22 09:06 sophieRAIBAUD

Check this out. It helped me a lot. https://github.com/Teichlab/limbcellatlas/issues/1#issuecomment-1146685471

MertDemirdizen avatar Jun 07 '22 20:06 MertDemirdizen

many thanks !!

sophieRAIBAUD avatar Jun 08 '22 07:06 sophieRAIBAUD

hi @MertDemirdizen @sophieRAIBAUD sorry for late reply. This type of functionality is planned to be added to squidpy (there is an issue also there discussing the same). I'd close this here since the scanpy spatial plot will be deprecated, feel free to reopen/ping me in the squidpy repo directly

giovp avatar Sep 16 '22 16:09 giovp

OK thanks @giovp when do you plan to add this new fonctionnality ? @MertDemirdizen : I don't understand how to add the intensity according to the post (https://github.com/Teichlab/limbcellatlas/issues/1#issuecomment-1146685471) could you help me ? many thanks !

sophieRAIBAUD avatar Sep 19 '22 08:09 sophieRAIBAUD