Removed uniused variable

This commit is contained in:
MarijnBerg 2021-10-05 15:00:42 +02:00
parent f4b6748210
commit 0427dcc6ad
1 changed files with 0 additions and 1 deletions

View File

@ -51,7 +51,6 @@ determine.background.to.remove = function(fullCellMatrix, cellMatrix, emptyDropl
# determines the highest expression value found for every gene in the droplets that we're sure don't contain cells
backGroundMax = as.vector(rowMax(fullCellMatrix[,Matrix::colSums(fullCellMatrix) < emptyDropletCutoff]))
names(backGroundMax) = rownames(fullCellMatrix)
nCell = ncol(cellMatrix)
# droplets that are empty but not unused barcodes, unused barcodes have zero reads assigned to them.
nEmpty = table((Matrix::colSums(fullCellMatrix) < emptyDropletCutoff) &(Matrix::colSums(fullCellMatrix) > 0))[2]