Skip to contents

Function to plot deconvolution results as barplots for each sample

Usage

results_barplot(result)

Arguments

result

A data frame containing deconvolution results. Rows must correspond to samples, columns to cell types. Row names must be sample identifiers. The data frame can originate from deconvolute(), or from any external deconvolution method, as long as it matches this structure.

Details

The input data frame must:

  • Have samples as rows and cell types as columns

  • Have row names set to sample identifiers

  • Contain only numeric values (cell type fractions or proportions)

Example of a valid input:

SampleIDCellTypeACellTypeBCellTypeC
Sample10.20.50.3
Sample20.10.70.2