Learn R Programming

genefu (version 2.4.2)

write.m.file: Function to write a 'csv' file containing gene lists (aka gene signatures)

Description

This function allows for writing a 'csv' file containing gene signatures. Each gene signature is composed of at least four columns: "gene.list" is the name of the signature on the first line and empty fields below, "probes" are the probe names, "EntrezGene.ID" are the EntrezGene IDs and "coefficient" are the coefficients of each probe.

Usage

write.m.file(obj, file, ...)

Arguments

obj
List of gene signatures.
file
Filename of the 'csv' file.
...
Additional parameters for read.csv function.

Value

  • None.

Examples

Run this code
## load gene modules published by Demsedt et al 2009
data(mod1)
## write these gene modules in a 'csv' file
write.m.file(obj=mod1, file="desmedt2009_genemodules.csv")

Run the code above in your browser using DataLab