getFM: getFM

Description Usage Arguments Value Note Author(s) Examples

View source: R/SCRNA.R

Description

Calls scPPIN functions to compute a steiner tree that finds the best solution to the connections in a cluster from the single cell data and returns it in functional module object. Called by getDataFiles

Usage

1
getFM(pvalues)

Arguments

pvalues

A vector containing the named pvalues for each node in a cluster

Value

Returns a functional module containing the solution to the connections of the ppi network solved by dapcstp

Note

Called by getDataFiles and getCyGraphs

Author(s)

Matt Heffernan, University of Illinois at Chicago

Examples

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

getFM(pValues)

## The function is currently defined as
function (pvalues) 
{
    ppin <- loadPPIN()
    checksum = sum(pvalues < 0) + sum(pvalues > 1)
    if (checksum > 0) {
        warning("p-values are not in (0,1]!")
    }
    FDR <- 10^{
        -2
    }
    pvalues[pvalues < 10^-308] <- 10^-308
    functionalModule <- detectFunctionalModule(ppin, pvalues, 
        FDR)
    return(functionalModule)
  }

mheffe3/SCNVC documentation built on Dec. 21, 2021, 5:52 p.m.