adjustCounts: Adjust counts to remove soup

Description Usage Arguments Value See Also

View source: R/adjustCounts.R


Explicitly drop counts from the count matrix in order of most likely to be soup to least likely until we have removed as many counts as we expect there to be soup molecules in each cell. The actual removal criteria is to calculate the probability of each count being from the soup in each cell, pMol, and the probability of removing another soup molecule from this cell, pSoup, and keep sequentially removing counts until pSoup*pMol<pCut. That is, pSoup makes sure we don't throw out many more than we expect to be present in each cell and pMol makes sure we don't throw out any molecule that is unlikely to be soup.


adjustCounts(scl, pCut = 0.01, verbose = TRUE)



A SoupChannel or SoupChannelList object for which rho has been calculated.


The threshold for excluding counts.


By default, this method prints out the 100 most removed genes by channel. If this is set to FALSE, these are not printed.


A modified version of scl with the corrected count matrix stored in atoc.

See Also


constantAmateur/SoupX documentation built on July 23, 2018, 9:20 a.m.