deconv: DECONVOLUTION function

View source: R/Deconv.R

deconvR Documentation

DECONVOLUTION function

Description

Function that generates massive deconvolution plots with the CIBERSORT, EPIC and FARDEEP methods, and returns a list of df's resulting from the deconvolutions.

Usage

deconv(
  matrix,
  sig.matrix,
  method,
  type,
  fraccionate.samples = FALSE,
  fractions = NULL,
  results_dir,
  height = NULL,
  name = FALSE
)

Arguments

matrix

expression matrix, this matrix must be in .txt format, organized in tabulated columns with one column containing the list of genes, with the name Gene.symbol, Gene.Symbol or Geneid, and in the rest of the columns the names of the samples and the expression values for the genes. (Example. Counts.HUMAN_nodup_Sal_Veh_IPs_INPUTs.txt).

sig.matrix

Signature matrix, this matrix must be in .txt format, organized in tabulated columns with one column containing the list of genes, with the name Gene.symbol, Gene.Symbol or Geneid, and in the rest of the columns the cell types and the expression values for the genes. (Example. Monaco-ABIS_Immune11_Microarray.txt).

method

keyword to choose the deconvolution method, accept "CIBERSORT", "EPIC", "FARDEEP" and "ALL".

type

Keyword allowing to choose the type of evolution, relative ("rel"), absolute ("abs") or both ("abs_rel").

fraccionate.samples

Parameter that accepts TRUE or FALSE to split or not the samples of the expression matrix in different graphs.

fractions

Vector that identifies the fractions of the sample list to be used to fractionate the samples in different graphs.

results_dir

Directory to which the graphics will be generated.

height

Number that defines the height of the graph, to increase or decrease the height, which has a default value of 10.

name

Alternative name for the chart, which by default has the structure Sig_type_method.matrixName_Plot.png (Example. "graph_1")

Value

The function returns the deconvolution graphics in .png format to the working directory, and a list of the df's resulting from the deconvolution.

Author(s)

Nidia Barco Armengol

Examples

deconv("Counts.HUMAN_nodup_Sal_Veh_IPs_INPUTs.txt", "Monaco-ABIS_Immune11_Microarray.txt", "ALL", "rel", fraccionate.samples=TRUE, fractions= f, results_dir = "/bicoh/nidia/Deconv/Brain_MMartin/test", height= 8, name= "MONACO")

margenomics/Deconvolution documentation built on March 19, 2022, 5:44 a.m.