singleOutput: Analysis results for single pair: visualization outputs

Description Usage Arguments Value Examples

View source: R/singleOutput.R

Description

Analysis results for single pair: visualization outputs for each pathway The singleOutput is function to generate visualization outputs for single pair: including heatmap of gene posterior mean, kegg pathway topology for each pathway

Usage

1
2
3
singleOutput(mcmc.merge.list, dataset.names, select.pathway.list,
  output = c("genePM", "keggView"), kegg_pathname = NULL,
  hs_gene_id = NULL)

Arguments

mcmc.merge.list:

a list of merged MCMC output matrices.

select.pathway.list:

a list of selected pathways (containing gene components).

dataset.names:

a vector of dataset names.

output:

two options: "genePM" (generating heatmap of gene posterior mean),"keggView" (generating kegg pathway topology, human KEGG only). cannot be empty.

kegg_pathname:

KEGG pathway name list. For "keggView" only.

hs_gene_id:

Human sapiens gene id. For "keggView" only.

Value

stored output in created folders.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
#mcmc.merge.list from the merge step
#select.pathway.list from the pathSelect step
dataset.names = c("hb","mb")
library(KEGG.db)
kegg_pathname <- unlist(as.list(KEGGPATHID2NAME))
library("org.Hs.eg.db")
hs_gene_id <- unlist(mget(x=rownames(mcmc.merge.list[[1]]),
envir=org.Hs.egALIAS2EG))
singleOutput(mcmc.merge.list,dataset.names,select.pathway.list,
output=c("genePM","keggView"))

## End(Not run)

matianzhou/CAMO documentation built on May 21, 2019, 10:12 a.m.