Description Usage Arguments Value Examples
Generate the plot of groupGO network result of
getGroupGO
function, and the integrated network of genes, GOs
and TFs.
1 2 3 4 5 6 7 8 9 10 11 12 |
netCond |
Network of a specific condition. Can be found in
result of |
resultsGO |
Dataframe with the results of |
netGO |
Dataframe with the results of |
anno |
Annotation of gene or TFs. Can be found in result of
|
groupBy |
Which variables do you want to group in GO type? The options are: 'pathways', 'TFs' and 'genes' (default: 'pathways'). |
TFs |
A character with selected TFs. |
genes |
A character with selected genes. |
keyTFs |
TFs identified as importants by |
size |
Size of nodes labels (default: 0.5). |
type |
Type of plot selected (GO or Integrated). If GO will plot the associated GO grouped by some variable, and if Integrated will plot a integrated network with genes, GO and TFs. |
Returns a list with the plot of the network for GO or integrated output under a condition and the table used to plot the network.
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 38 39 40 41 42 43 44 45 46 47 | ## Not run:
# load the annotation package
library(org.Hs.eg.db)
# load the CeTF class object resulted from runAnalysis function
data(CeTFdemo)
# getting the genes in network of condition 1
genes <- unique(c(as.character(NetworkData(CeTFdemo, 'network1')[, 'gene1']),
as.character(NetworkData(CeTFdemo, 'network1')[, 'gene2'])))
# performing getGroupGO analysis
cond1 <- getGroupGO(genes = genes,
ont = 'BP',
keyType = 'ENSEMBL',
annoPkg = org.Hs.eg.db,
level = 3)
# selecting only first 12 pathways
t1 <- head(cond1$results, 12)
# subsetting the network to have only the first 12 pathways
t2 <- subset(cond1$netGO, cond1$netGO$gene1 %in% as.character(t1[, 'ID']))
# generate the GO plot grouping by pathways
pt <- netGOTFPlot(netCond = NetworkData(CeTFdemo, 'network1'),
resultsGO = t1,
netGO = t2,
anno = NetworkData(CeTFdemo, 'annotation'),
groupBy = 'pathways',
keyTFs = NetworkData(CeTFdemo, 'keytfs'),
type = 'GO')
pt$plot
head(pt$tab$`GO:0006807`)
# generate the Integrated plot
pt <- netGOTFPlot(netCond = NetworkData(CeTFdemo, 'network1'),
resultsGO = t1,
netGO = t2,
anno = NetworkData(CeTFdemo, 'annotation'),
groupBy = 'pathways',
keyTFs = NetworkData(CeTFdemo, 'keytfs'),
type = 'Integrated')
pt$plot
head(pt$tab)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.