Learn R Programming

ActivePathways (version 1.0.1)

prepareCytoscape: Prepare files for building an Enrichment Map in Cytoscape

Description

This function writes four files that are used to build an network using Cytoscape and the EnrichmentMap app. The four files written are:

pathways.txt

A list of significant terms and the associated p-value. Only terms with adjusted.p.val <= significant are written to this file

subgroups.txt

A matrix indicating whether the significant pathways are found to be significant when considering only one column from scores. A 1 indicates that that term is significant using only that column to test for enrichment analysis

pathways.gmt

A Shortened version of the supplied gmt file, containing only the terms in pathways.txt

legend.pdf

A legend with colours matching contributions from columns in scores

Usage

prepareCytoscape(terms, gmt, file_dir, col.significance)

Arguments

terms

a data.table with columns 'term.id', 'term.name', 'adjusted.p.val'

gmt

an abridged gmt object containing only the pathways that were found to be significant

file_dir

user defined directory to write output files

col.significance

a data.table with a column 'term.id' and a column for each test indicating whether a pathway is signficiant (TRUE) or not (FALSE) when considering only that column. If contribution==TRUE, use col.significance=NULL and this will be skipped

Value

None