Skip to content

determine.background.to.remove error in readme #6

@CebolaLab

Description

@CebolaLab

Hi,

I think the suggested command on your readme page may have an error? It reads:

ambientProfile = determine.background.to.remove(fullMatrix, cellMatrix, emptyDropletCutoff, contaminationChanceCutoff)
cellMatrix     = remove.background(cellMatrix, ambientProfile)

Yet when I look at the determine.background.to.remove function, I see:

function (fullCellMatrix, emptyDropletCutoff, contaminationChanceCutoff) 
{
    backGroundMax = as.vector(qlcMatrix::rowMax(fullCellMatrix[, 
        Matrix::colSums(fullCellMatrix) < emptyDropletCutoff]))
    names(backGroundMax) = rownames(fullCellMatrix)
    nEmpty = table((Matrix::colSums(fullCellMatrix) < emptyDropletCutoff) & 
        (Matrix::colSums(fullCellMatrix) > 0))[2]
    occurences = Matrix::rowSums(fullCellMatrix[, Matrix::colSums(fullCellMatrix) < 
        emptyDropletCutoff] != 0)
    probabiltyCellContaminationPerGene = occurences/nEmpty
    backGroundMax[probabiltyCellContaminationPerGene < contaminationChanceCutoff] = 0
    return(backGroundMax)
}

Which does not have cellMatrix as an input?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions