Closed liuxiawei closed 5 months ago
Hello @liuxiawei – first of all, sorry for the late response to your issue! I know there seems to be some bugs appearing around the spatial properties when converting back and forth between Seurat and semla objects.
As a workaround for now I'd recommend to,
SubsetSTData()
(if you want, you can also use the FeatureViewer
to annotate your two sections using an interactive lasso tool and create a metadata column by which you can split your objects – this could be handy if your sections aren't directly separable by single x/y coordinates), GetStaffli()
) from your two new subsetted semla objects, tA@tools$Staffli <- staffli_A
).Hopefully that should solve your plotting issues, but I know it's not an ideal solution. If that works we would however know that the issue is related to the transfer of the spatial coordinates, especially when subsetting has been applied to the original seurat object.
Let me know if this seems to help somewhat or if your issues still persists!
Kind regards, Lovisa
I am very pleased that you have replied to me. I will try to manually correct the coordinates and carry on with my research using the method you mentioned. Thank you for your support!
Semla is wonderful tools ! but When I used it I met some problem. I have a seurat object (S4). Which is consist with two sample in one slice.
I split it in two object by code folloed:
It could show rightly with any plot function in seurat ( center and scaled) Then I tansformed it into semla by
UpdateSeuratForSemla
function It showed with raw coordinate and part object I tried to useoverride_plot_dims
to auto scale the image area, But it error:I tried with merged object( by
brain.merge <- merge(tA, tB)
) and split object (only tA or tB), it always wrong. What should I do to correct the visualization? and is there any method to usecrop_area
to merged object?And Thanks for any help!