【10X空間轉錄組Visium】(七)思考新版Seurat V3.2作者在Github給予的回答

舊號無故被封,小號再發一次

更多空間轉錄組文章:

1. 新版10X Visium
2. 舊版Sptial

問題描述:

在對自己跑出來的空間轉錄組數據用Seurat V3.2進行分析時取子集遇到一個問題,我不知道該如何選取像素點坐標,以及用官網給的字段會出現報錯的情況,于是我在Github上作者大神提問,不出意外,下面也有一個跟我遇到的情況類似的。

github issue地址:https://github.com/satijalab/seurat/issues/2454

提問原文(biejiaodeyingwen)

Hi~I meet some problem in Subset out anatomical regions

I use the dataset: Mouse Brain Section (Coronal), and run sapceranger successfully,and get clustering_visualization img.


#Subset out anatomical regions
cortex <- subset(brain, idents = c(0, 1, 2, 5, 10, 11, 12 ))
# now remove additional cells, use SpatialDimPlots to visualize what to remove
# SpatialDimPlot(cortex,cells.highlight = WhichCells(cortex, expression = image_imagerow > 400 |
# image_imagecol < 150))
cortex <- subset(cortex, imgine_imagerow > 400 | image_imagecol < 150, invert = TRUE)
cortex <- subset(cortex, image_imagerow > 275 & image_imagecol > 370, invert = TRUE)
cortex <- subset(cortex, image_imagerow > 250 & image_imagecol > 440, invert = TRUE)

then, the error occur:

> #Subset out anatomical regions
> cortex <- subset(brain, idents = c(0, 1, 2, 5, 10, 11, 12 ))
> # now remove additional cells, use SpatialDimPlots to visualize what to remove
> # SpatialDimPlot(cortex,cells.highlight = WhichCells(cortex, expression = image_imagerow > 400 |
> # image_imagecol < 150))
> cortex <- subset(cortex, imgine_imagerow > 400 | image_imagecol < 150, invert = TRUE)
Error in FetchData(object = object, vars = expr.char[vars.use], cells = cells,  : 
  None of the requested variables were found: 
> cortex <- subset(cortex, image_imagerow > 275 & image_imagecol > 370, invert = TRUE)
Error in FetchData(object = object, vars = expr.char[vars.use], cells = cells,  : 
  None of the requested variables were found: 
> cortex <- subset(cortex, image_imagerow > 250 & image_imagecol > 440, invert = TRUE)
Error in FetchData(object = object, vars = expr.char[vars.use], cells = cells,  : 
  None of the requested variables were found: 

And I have try to use the solution: #1212 (comment) for subsetting on features that have a dash in their name. But it doesn't work.

So,I wonder the structure of seurat may be the key to solve the problem.
I tape:

cortex@images

and saw:

attr(,"class")
[1] "scalefactors"

Slot "coordinates":
                   tissue row col imagerow imagecol
AAACAATCTACTAGCA-1      1   3  43     1611     4170
AAACACCAATAACTGC-1      1  59  19     8315     2519
AAACAGAGCGACTCCT-1      1  14  94     2927     7679

I try change the imgine_imagerow into imagerow, and change the image_imagecol into the imagecol,but it doesn't work again.

And another question is : How can I further segment based on exact positions?

Because I don't know exactly about the coordinates of cortex.How the example in official website actually do in this step?

thanks!

下面有一個小哥給我的問題點了個贊,居然有些小開心。

作者的回答

Hi,

Please try replacing image_imagerow and image_imagecol with anterior1_imagerow and anterior1_imagecol.

This is still under active development but the do.identify parameter of SpatialDimPlot should allow you to select cells manually or at least give you a sense of where you could start to draw some cutoffs.

我的思考

  • 感覺取子集這部分,有點像舊的空間轉錄組的流程的ST viewer這步生成坐標映射關系表的感覺
  • 作者也說了,這個版本還在開發中,需要但是可以嘗試用下他的輸入參數

最近暫時還沒有空嘗試,不過出于Github的社交禮儀,還是想先對作者表示感謝~

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容

  • 本文轉載自知乎 作者:季子烏 筆記版權歸筆記作者所有 其中英文語句取自:英語流利說-懂你英語 ——————————...
    Danny_Edward閱讀 43,953評論 4 38
  • 早飯沒吃。午飯沒吃,晚飯兩張餅,兩根黃瓜, 沒有做運動,幾乎沒有走動, 聽歌兩小時。 看極限挑戰,看到他們跳崖的那...
    我是咳咳閱讀 126評論 0 1
  • 早春美景 2月17日 陰 收拾好行囊,準備好要告說的祝福,我就要去拜...
    杜金銘小同學閱讀 201評論 0 0
  • 騎了大約小半個時辰,張五厘到達了山腳,還沒下馬就聽到前面鬧哄哄的,定睛一看,原來是個小集市,三五處攤販在販賣...
    老虎奶酪閱讀 520評論 0 1
  • 機遇,時光、佳人! 蒹葭蒼蒼,白露為霜.所謂伊人,在水一方.溯洄從之,道阻且長.溯游從之,宛在水中央! 等了你,好...
    百合_b1fc閱讀 246評論 0 3