deconvolve_cellularity {tidybulk} | R Documentation

## Get cell type proportions from samples

### Description

deconvolve_cellularity() takes as imput a 'tbl' formatted as | <SAMPLE> | <TRANSCRIPT> | <COUNT> | <...> | and returns a 'tbl' with the estimated cell type abundance for each sample

### Usage

    deconvolve_cellularity(
      .data,
      .sample = NULL,
      .transcript = NULL,
      .abundance = NULL,
      reference = X_cibersort,
      method = "cibersort",
      action = "add",
      ...
    )

### Arguments

`.data` | A 'tbl' formatted as | <SAMPLE> | <TRANSCRIPT> | <COUNT> | <...> |
`.sample` | The name of the sample column
`.transcript` | The name of the transcript/gene column
`.abundance` | The name of the transcript/gene abundance column
`reference` | A data frame. The transcript/cell_type data frame of integer transcript abundance
`method` | A character string. The method to be used. At the moment Cibersort (default) and llsr (linear least squares regression) are available.
`action` | A character string. Whether to join the new information to the input tbl (add), or just get the non-redundant tbl with the new information (get).
`...` | Further parameters passed to the function Cibersort

### Details

This function infers the cell type composition of our samples (with the algorithm Cibersort; Newman et al., 10.1038/nmeth.3337).

### Value

A 'tbl' object including additional columns for each cell type estimated

### Examples

    deconvolve_cellularity(tidybulk::counts, sample, transcript, `count`, cores = 2)

[Package tidybulk version 0.99.23 Index]