Skip to content

Commit

Permalink
Plot UCell/Gene correlations
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Mar 12, 2024
1 parent 0d9a845 commit c4dc67c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions singlecell/resources/chunks/CustomUCell.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ for (datasetId in names(seuratObjects)) {
}

seuratObj <- UCell::AddModuleScore_UCell(seuratObj, features = toCalculate, storeRanks = storeRanks, assay = assayName)
corData <- RIRA::PlotUcellCorrelation(seuratObj, toCalculate)
saveRDS(corData, file = paste0(datasetId, '.ucellcorr.rds'))

for (n in names(toCalculate)) {
print(Seurat::FeaturePlot(seuratObj, features = paste0(n, '_UCell'), min.cutoff = 'q02', max.cutoff = 'q98'))
}
Expand Down

0 comments on commit c4dc67c

Please sign in to comment.