sample2response: sample2response

Description Usage Arguments Value Author(s) References Examples

View source: R/sample2response.R

Description

Probabilistic sample-response assignments for given subnet.

Usage

1
sample2response(model, subnet.id, mode = 'soft')

Arguments

model

Result from NetResponse (detect.responses function).

subnet.id

Subnet identifier. A natural number which specifies one of the subnetworks within the 'model' object.

mode

soft: gives samples x responses probabilistic assignment matrix; hard: gives the most likely response for each sample

Value

A matrix of probabilities. Sample-response assignments for given subnet, listing the probability of each response, given a sample.

Author(s)

Leo Lahti leo.lahti@iki.fi

References

Leo Lahti et al.: Global modeling of transcriptional responses in interaction networks. Bioinformatics (2010). See citation('netresponse') for citation details.

Examples

1
2
3
4
5
6
7
8
9
data( toydata )        # Load toy data set
D    <- toydata$emat   # Response matrix (for example, gene expression)
netw <- toydata$netw   # Network

# Detect network responses
model <- detect.responses(D, netw, verbose = FALSE)

# Assign samples to responses (soft, probabilistic assignments sum to 1)
response.probabilities <- sample2response(model, subnet.id = 'Subnet-1')

netresponse documentation built on Nov. 8, 2020, 5:04 p.m.