mixDGIE: Mixed DGIE score for dynamic gene regulatory network

Description Usage Arguments Value Examples

View source: R/mixDGIE.R

Description

This function returns mixed DGIE score for dynamic gene regulatory network

Usage

1
mixDGIE(mixnet, flag, tf)

Arguments

mixnet

mixnet is dynamic gene regulatory network.

flag

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

tf

A vector of gene names.

Value

index

A numberical matrix, stands for DGIE score for DGRN

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
##---- 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 (mixnet, flag, tf)
{
    pnet <- mixnet
    nnet <- mixnet
    for (i in c(1:length(mixnet))) {
        pnet[[i]][pnet[[i]] < 0] <- 0
        nnet[[i]][nnet[[i]] > 0] <- 0
    }
    index <- matrix(0, 3, length(mixnet))
    index[1, ] <- DGIE(mixnet, flag, tf)
    index[2, ] <- DGIE(pnet, flag, tf)
    index[3, ] <- DGIE(nnet, flag, tf)
    return(index)
  }

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