lioness: LIONESS

Description Usage Arguments Value Examples

View source: R/lioness.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

lionessR documentation built on Nov. 8, 2020, 8:08 p.m.