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

Custom cell typing as input #2

Open
Jwong684 opened this issue Dec 17, 2024 · 1 comment
Open

Custom cell typing as input #2

Jwong684 opened this issue Dec 17, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Jwong684
Copy link

Hi clustSIGNAL devs,

I have been trying to test your tool out on my CosMx spatial transcriptomics dataset. The initial results I get from your pipeline seem pretty promising but I was wondering if there is a way for me to integrate my own cell-typing as input.

I noticed from your step-by-step pipe that clustSIGNAL::p1_clustering(spe, dimRed = "PCA") returns a column that will give initialClusters. What do these values necessarily mean? If I just replace these values with discrete names, ex. T-cell, malignant B cell, etc., would that be sufficient to run the rest of the pipeline?

Thank you!

@PratibhaPanwar
Copy link
Collaborator

PratibhaPanwar commented Dec 18, 2024

Hi @Jwong684, thanks for trying out the method and for the positive feedback!

Yes, it is possible to use your own cell-typing with ClustSIGNAL through the step-by-step run. The custom clusters will need to be saved in the metadata of your SpatialExperiment object (colData()) and the column name would need to be 'initCluster'. Then the following steps, like neighbour detection, entropy calculation, etc., should run with no problems - essentially, you would be skipping the clustSIGNAL::p1_clustering() step.

The initClusters are obtained after we cluster all cells in the dataset, and then sub-cluster the clusters - we want to get down to small groups of cells that likely have very similar gene expression. These are just cluster labels so even if you replace them with custom cell type names, the following method steps should run fine.

The initClusters affect the entropy measurement and what space could be defined as homogeneous/heterogeneous. So, when using custom clusters as input, it would be good to ensure that the cells in each cluster have similar gene expression pattern, and that the clusters are reliable.

@PratibhaPanwar PratibhaPanwar added the question Further information is requested label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants