SetBiologicalZeros: Set biological zeros

Description Usage Arguments Details Value

View source: R/BiologicalZeros.R

Description

SetBiologicalZeros sets some of the entries back to zero after dropout imputation, as they likely correspond to true biological zeros (genes not expressed in given cell)

Usage

1
SetBiologicalZeros(imputation, drop_probs, thre = .2, was_zero)

Arguments

imputation

matrix; imputed values

drop_probs

matrix; dropout probabilities for each entry in imputation. 0 means certain biological zero, while 1 means certain dropout to be imputed

thre

numeric; probability threshold to classify entries as biological zeros

was_zero

matrix; logical matrix: was the corresponding entry of imputation originally a zero?

Details

Entries which were originally zero and have dropout probability below thre are considered biological zeros and, if they were imputed, are set back to 0.

Value

matrix containing likely biological zeros set back to 0.


beyergroup/ADImpute documentation built on Dec. 19, 2021, 8:48 a.m.