geneConnector: Generate sub-network mapping from a list of candidate genes

Description Usage Arguments Details Value Author(s) Examples

View source: R/geneConnector.R

Description

This function generates sub-network mapping from a list of candidate genes

Usage

1
2
3
4
5
6
7
8
9
geneConnector(
  geneList,
  networkGraph,
  directed = FALSE,
  pValueAdj = "BH",
  pValueCutoff = 0.05,
  communityMethod = "ebc",
  keepIsolatedNodes = FALSE
)

Arguments

geneList

character vector containing a list of candidate genes

networkGraph

igraph network graph object. This igraph object contains curated network information

directed

boolean value indicating whether the input network is directed or undirected (default = FALSE)

pValueAdj

string for p-value correction method c("BH", "Bonferroni") as described in the details section (default = "BH")

pValueCutoff

numeric value of p-value cutoff for linker nodes (default = 0.05)

communityMethod

string for community detection method c("ebc","lec") as described in the details section (default = "ebc")

keepIsolatedNodes

A boolean value indicating whether to keep isolated nodes in the netboxr result (default = FALSE)

Details

P-value correction methods include the Bonferroni correction ("bonferroni") or Benjamini & Hochberg ("BH"). Community detection methods include using edge betweeness score ("ebc") or using leading eigenvector method ("lec)

Value

a list of returned netboxr results

Author(s)

Eric Minwei Liu, emliu.research@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
data(netbox2010)

sifNetwork<-netbox2010$network
graphReduced <- networkSimplify(sifNetwork,directed = FALSE) 

geneList<-as.character(netbox2010$geneList)

results<-geneConnector(geneList=geneList,networkGraph=graphReduced,
                      pValueAdj='BH',pValueCutoff=0.05,
                      communityMethod='lec',keepIsolatedNodes=FALSE)


names(results)

plot(results$netboxGraph, layout = layout_with_fr)


write.table(results$netboxOutput,
  file = "network.sif", sep = "	",
  quote = FALSE, col.names = FALSE, row.names = FALSE
)

write.table(results$neighborData,
  file = "neighborList.txt", sep = "	",
  quote = FALSE, col.names = TRUE, row.names = FALSE
)

write.table(results$moduleMembership,
  file = "memb.ebc.txt", sep = "	",
  quote = FALSE, col.names = FALSE, row.names = FALSE
)
#
write.table(results$nodeType,
  file = "nodeType.txt", sep = "	", quote = FALSE,
  col.names = FALSE, row.names = FALSE
)
#

netboxr documentation built on Nov. 8, 2020, 5:01 p.m.