## Not run:
#
# ### Integrate miRNAs to KEGG pathway graphs ###
#
# ## get hsa-specificd miRNA-target interactions ##
# expMir2Tar <- GetK2riData(K2riData="expMir2Tar")
# row1 <- which(expMir2Tar[["LowTHExps"]]=="YES")
# row2 <- which(expMir2Tar[["Species"]]=="hsa")
# relations <- unique(expMir2Tar[intersect(row1,row2),c(2:3)])
#
# # get user-interested miRNAs and genes sets.
# moleculeList <- c(getBackground(type="gene")[1:1000],
# getBackground(type="miRNA")[1:2000])
#
# ## get direct KEGG metabolic pathway graphs ##
# graphList <- GetK2riData(K2riData="MetabolicGEGEEMGraph")
# # get reconstructed pathway graph list.
# InteGraphList <- getInteGraphList(graphList, relations)
# # get locate subpathways.
# subGraphList <- getLocSubGraph(moleculeList,InteGraphList,
# type="gene_miRNA",n=1,s=10)
# # visualize the located subpathways.
# plotGraph(subGraphList[[1]],layout=layout.random)
#
#
# ## get undirect KEGG metabolic pathway graphs ##
# graphList <- GetK2riData(K2riData="MetabolicGEGEUEMGraph")
# # get reconstructed pathway graph list.
# InteGraphList <- getInteGraphList(graphList, relations)
# # get locate subpathways.
# subGraphList <- getLocSubGraph(moleculeList,InteGraphList,
# type="gene_miRNA",n=1,s=10)
# # visualize the located subpathways.
# plotGraph(subGraphList[[1]],layout=layout.random)
# ## End(Not run)
Run the code above in your browser using DataLab