Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dealing with spatial data with merged samples #31

Open
Kennyluo4 opened this issue Jul 26, 2023 · 0 comments
Open

Dealing with spatial data with merged samples #31

Kennyluo4 opened this issue Jul 26, 2023 · 0 comments

Comments

@Kennyluo4
Copy link

Hello,
I try to use CellTrek to merge my spatial and single-cell data. However, I had this error when running the traint ():

Cannot add more or fewer cell meta.data information without values being named with cell names

I found out that it is caused by st_data$coord_x <- st_data@images[[1]]@coordinates[, coord_xy[1]].

The spatial data is merged from two different samples. Therefore, the total spot number in the meta.data is larger if only images[[1]] coordinates are loaded.

The two spatial samples are replicates so I don't want to remove it. Is there a way I can load the merged st object for this analysis?

Thanks,
Ziliang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant