list2xml: Convert metabolite set / list to XML format

Description Usage Arguments Details Value Author(s) Examples

Description

This function converts metabolite set (list to XML format).

Usage

1
list2xml(filepath, M)

Arguments

filepath

file path of metabolite set (original file)

M

list of metabolite set and metabolite IDs

Details

The "filepath" is only used for writing a original path in XML.

Value

XML format of metabolite set

Author(s)

Hiroyuki Yamamoto

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
	# ---------------------------------
	#  Convert KEGG's tar.gz to list
	# ---------------------------------
	# filepath <- "C:/hsa.tar.gz"		# location of original files of metabolite set
	# Z <- pathway_class(filepath)		# making metabolite set list
	# L <- list2xml(filepath, Z)		# xml format

	# ----------------------
	#  Convert csv to list
	# ----------------------
	# filepath <- "C:/pathway.csv"		# csv file
	# Z <- csv2list(filepath)		# csv file to list
	# L <- list2xml(filepath, Z)		# xml format

	# ----------------------
	#  Convert list to xml
	# ----------------------
	# savefile <- "kegg_test.xml"		# set filename (XML)
	# fullpath <- paste(dirname(filepath),savefile,sep="/")	# fullpath of saved XML file
	# saveXML(L,fullpath)			# save XML

mseapca documentation built on May 1, 2019, 7:31 p.m.

Related to list2xml in mseapca...