Learn R Programming

mseapca (version 2.0.3)

csv2list: Convert metabolite set / csv to list

Description

This function converts your own metabolite set (csv file to list).

Usage

csv2list(filepath)

Value

list of metabolite set name and metabolite IDs

Arguments

filepath

file path of metabolite set (csv file)

Author

Hiroyuki Yamamoto

Details

The first row of csv file are "metabolite set name" and "metabolite IDs" as header. The first column must be metabolite IDs and second column must be metabolite set name.

Examples

Run this code
if (FALSE) {
	# ---------------------------
	#  Convert csv file to list
	# ---------------------------
	filepath <- "C:/pathway.csv"	# filepath of csv file
	N <- csv2list(filepath)	# convert csv file to list
  }

Run the code above in your browser using DataLab