parseList2Dataframe: Convert list class of node info to dataframe

Description Usage Arguments Value Examples

Description

Convert list class of node info to dataframe

Usage

1
parseList2Dataframe(nodeList, nodeDF)

Arguments

nodeList

list class of node info

nodeDF

output dataframe

Value

dataframe class of node info

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
path<-system.file(package = "Key2Enrich")
xmlPath<-paste(path,"/extdata",sep="")
xmlFile<-paste(xmlPath,sep="","/hsa04012.xml")
r<-parseKGMLFile(xmlFile)
kegg.nodes <- lapply(r[childIsEntry(r)], parseEntry)
nodeDF<-data.frame(KEGG_GeneID="NA",type=NA,link=NA,graphicName=NA,
                  graphicType=NA,graphicX=NA,graphicY=NA,
                  graphicWidth=NA,graphicHeight=NA)
nodeDF<-parseList2Dataframe(kegg.nodes,nodeDF)
head(nodeDF)

ppdragondw/Key2Enrich documentation built on May 29, 2019, 7:39 a.m.