seurat icon indicating copy to clipboard operation
seurat copied to clipboard

Blending gene expression in SpatialFeaturePlot

Open AnjaK88 opened this issue 1 year ago • 1 comments

Hi Team,

this issue came up in #6095 already. I wanted to ask whether you are planning to include the "blend" option (if possible at all) in the SpatialFeaturePlot? As the ImageFeaturePlot function does not seem to be compatible with 10x Visium data.

Cheers

AnjaK88 avatar Jul 12 '23 03:07 AnjaK88

Hi, I have now written a function to do this, see here: https://github.com/satijalab/seurat/issues/6095#issuecomment-1973063131.

Thanks, George

george-hall-ucl avatar Mar 01 '24 12:03 george-hall-ucl

Hi, I have now written a function to do this, see here: #6095 (comment).

Thanks, George

hi, i use it to plot my ST data, but find error :

SpatialFeaturePlotBlend(object = ST2, features = c("HSPB1",'CD79A')) Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'nrow': no slot of name "coordinates" for this object of class "VisiumV2" Called from: h(simpleError(msg, call)) Browse[1]>

can you fix it?

dfeng4127 avatar Jul 12 '24 13:07 dfeng4127

Hi, I have now written a function to do this, see here: #6095 (comment). Thanks, George

hi, i use it to plot my ST data, but find error :

SpatialFeaturePlotBlend(object = ST2, features = c("HSPB1",'CD79A')) Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'nrow': no slot of name "coordinates" for this object of class "VisiumV2" Called from: h(simpleError(msg, call)) Browse[1]>

can you fix it?

Hi,

It looks like the image slot "VisiumV2" does not have an associated coordinates slot. Do you have multiple images present, and if so, is this one that you want to plot? If you are able to plot it using SpatialDimPlot, then I guess it must have some form of coordinates? It might just be a case of renaming that slot to "coordinates", which is what SpatialDimPlotBlend expects.

P.S. now that there is a repository for this function, please submit any issues on there.

Thanks, George

george-hall-ucl avatar Jul 15 '24 08:07 george-hall-ucl

Ok,thanks , maybe the the Seurat version problem , I have got the same error

发件人: George Hall @.> 日期: 星期一, 2024年7月15日 16:12 收件人: satijalab/seurat @.> 抄送: dfeng4127 @.>, Comment @.> 主题: Re: [satijalab/seurat] Blending gene expression in SpatialFeaturePlot (Issue #7553)

Hi, I have now written a function to do this, see here: #6095 (comment)https://github.com/satijalab/seurat/issues/6095#issuecomment-1973063131. Thanks, George

hi, i use it to plot my ST data, but find error :

SpatialFeaturePlotBlend(object = ST2, features = c("HSPB1",'CD79A')) Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'nrow': no slot of name "coordinates" for this object of class "VisiumV2" Called from: h(simpleError(msg, call)) Browse[1]>

can you fix it?

Hi,

It looks like the image slot "VisiumV2" does not have an associated coordinates slot. Do you have multiple images present, and if so, is this one that you want to plot? If you are able to plot it using SpatialDimPlot, then I guess it must have some form of coordinates? It might just be a case of renaming that slot to "coordinates", which is what SpatialDimPlotBlend expects.

Thanks, George

― Reply to this email directly, view it on GitHubhttps://github.com/satijalab/seurat/issues/7553#issuecomment-2227928447, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW2GD54TQV4WEJTRLBTPBYDZMN77XAVCNFSM6AAAAAA2G3ZHRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRXHEZDQNBUG4. You are receiving this because you commented.Message ID: @.***>

dfeng4127 avatar Jul 15 '24 09:07 dfeng4127