Skip to content

Commit c4dc67c

Browse files
committed
Plot UCell/Gene correlations
1 parent 0d9a845 commit c4dc67c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

singlecell/resources/chunks/CustomUCell.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ for (datasetId in names(seuratObjects)) {
1313
}
1414

1515
seuratObj <- UCell::AddModuleScore_UCell(seuratObj, features = toCalculate, storeRanks = storeRanks, assay = assayName)
16+
corData <- RIRA::PlotUcellCorrelation(seuratObj, toCalculate)
17+
saveRDS(corData, file = paste0(datasetId, '.ucellcorr.rds'))
18+
1619
for (n in names(toCalculate)) {
1720
print(Seurat::FeaturePlot(seuratObj, features = paste0(n, '_UCell'), min.cutoff = 'q02', max.cutoff = 'q98'))
1821
}

0 commit comments

Comments
 (0)