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

[Enhancement suggestion]: Generalise overlapping cell type classification #124

Open
ejh243 opened this issue Apr 30, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@ejh243
Copy link
Owner

ejh243 commented Apr 30, 2024

Contact Details

@ejh243

Enhancement suggestion

For the section in clusterCellTypes.r that handles overlap of NeuN+ and SATB2+ predictions, generalise to handle other types of user specified overlapping cell types.

For neuronal cell type checks, make conditional on dataset having Neuronal samples -

# As two different antibodies used for neuronal cells used, accept if either predicted as the other
neunIndex<-which(QCmetrics$Cell_Type %in% neunCT)
closestLabelledCellType[neunIndex[closestCellTypePCA[neunIndex] %in% neunCT]]<-TRUE
# SATB2- are a composition of non neuronal cells; accept so long as predicted as non-neuronal
satb2NegIndex<-which(QCmetrics$Cell_Type == "SATB2-")
closestLabelledCellType[satb2NegIndex[!closestCellTypePCA[satb2NegIndex] %in% neunCT]]<-TRUE
QCmetrics<-cbind(QCmetrics, closestCellTypePCA, closestLabelledCellType)
write.csv(QCmetrics[which(closestLabelledCellType == "FALSE"),], paste0(qcOutFolder, "/SamplesPredictedDiffCellTypePCAMahDist.csv"))

@ejh243 ejh243 added the enhancement New feature or request label Apr 30, 2024
@ejh243 ejh243 changed the title [Enhancement suggestion]: Add conditional check for neuronal cell types [Enhancement suggestion]: Generalise overlapping cell type classification Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant