idCombin: Identify the combination of key regulators.

Description Usage Arguments Value Examples

View source: R/idCombin.R

Description

This function identifies the combination of key regulators.

Usage

1
idCombin(net, flag, tf)

Arguments

net

Dynamic gene regulatroy network, computed by scPADGRN, a list of numerical matrix.

flag

Indicator of functional genes, a zero-one vector of length m, where m is gene number.

tf

A vector of gene names.

Value

'sd' is the standard derivation of each combination, and it ranks from low to high.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (net, flag, tf)
{
    keyNodes <- idNodes(net, flag, tf)[1:5, ]
    keyNames <- rownames(keyNodes)
    keyFlag <- rep(0, length(keyNames))
    sd <- rep(0, length(keyNames))
    for (i in c(1:length(keyNames))) {
        keyFlag[i] <- tf[keyNames[i], 2]
    }
    for (j in c(1:length(keyNames))) {
        fflag <- flag
        fflag[keyFlag[1:j]] <- 0
        sd[j] <- sd(DGIE(net, fflag, tf))
    }
    sd <- as.matrix(sd)
    rownames(sd) <- keyNames
    return(sd)
  }

xzheng-ac/scPADGRN documentation built on July 26, 2020, 12:41 a.m.