Add Filter-2-adjusted depth matrix to a redeemR object
Source:R/filter2.R
Add_DepthMatrix_filter2.RdThis function reads the “QualifiedTotalCts” matrix from disk (if not already supplied),
applies the Filter-2 adjustment—subtracting counts for UMIs removed by edge trimming
(zeros and unaffected entries remain unchanged)—then reshapes the result into a matrix
matching the dimensions of object@Cts.Mtx.bi and stores it in
object@Ctx.Mtx.depth.