lioness {lionessR}R Documentation

LIONESS

Description

This function uses the LIONESS equation to estimate single-sample networks. The input supports numeric matrix or a SummerizedExperiment object.

Usage

lioness(x, f = netFun)

Arguments

x

Numeric matrix with samples in columns or SummerizedExperiment object

f

Network reconstruction function. Defaults to Pearson correlation.

Value

SummerizedExperiment object for single-sample association network. The rowData contains the information about the regulators and their targets, while the colData contains the information about the samples. The edge weights of sample specific networks can be accessed through the lioness assay of the object.

Examples

exp <- matrix(sample(1000,1000)/1000, 100, 10)
genes <- paste("gene", c(1:nrow(exp)), sep="_")
samples <- paste("sample", c(1:ncol(exp)), sep="_")

rowData <- S4Vectors::DataFrame(row.names = genes, gene = genes)
colData <- S4Vectors::DataFrame(col.names = samples, sample = samples)

se <- SummarizedExperiment::SummarizedExperiment(assays = list(counts = exp), 
                                                 colData = colData, rowData = rowData)

lionessResults <- lioness(se, netFun)

[Package lionessR version 1.6.0 Index]