Learn R Programming

PGSEA (version 1.46.0)

readSmc: Read SMC files

Description

This function reads in SMCs (simple molecular concepts) from individual text files.

Usage

readSmc(files)

Arguments

files
a character vector of file names

Value

A list of SMC objects

References

??

See Also

writeSmc

Examples

Run this code


datadir <- system.file("extdata", package = "PGSEA")
sample <- readGmt(file.path(datadir, "sample.gmt"))
str(sample)
sample[[1]]@reference <- "fileName"

## Not run: 
# 	writeSmc(sample[[1]])
# 	smc <- readSmc("fileName-0.txt")
# ## End(Not run)

Run the code above in your browser using DataLab