Learn R Programming

SoupX (version 1.6.2)

SoupChannel: Construct a SoupChannel object

Description

Creates a SoupChannel object that contains everything related to the soup estimation of a single channel.

Usage

SoupChannel(tod, toc, metaData = NULL, calcSoupProfile = TRUE, ...)

Value

A SoupChannel object.

Arguments

tod

Table of droplets. A matrix with columns being each droplet and rows each gene.

toc

Table of counts. Just those columns of tod that contain cells.

metaData

Meta data pertaining to the cells. Optional. Must be a data-frame with rownames equal to column names of toc.

calcSoupProfile

By default, the soup profile is calculated using estimateSoup with default values. If you want to do something other than the defaults, set this to FALSE and call estimateSoup manually.

...

Any other named parameters to store.

See Also

SoupChannelList estimateSoup setSoupProfile setClusters

Examples

Run this code
#Load droplet and count tables
tod = Seurat::Read10X(system.file('extdata','toyData','raw_gene_bc_matrices','GRCh38',
                                  package='SoupX'))
toc = Seurat::Read10X(system.file('extdata','toyData','filtered_gene_bc_matrices','GRCh38',
                                  package='SoupX'))
#Default calculates soup profile
sc = SoupChannel(tod,toc)
names(sc)
#This can be suppressed
sc = SoupChannel(tod,toc,calcSoupProfile=FALSE)
names(sc)

Run the code above in your browser using DataLab