Learn R Programming

GOplot (version 1.0.2)

chord_dat: Creates a binary matrix.

Description

The function creates a matrix which represents the binary relation (1= is related to, 0= is not related to) between selected genes (row) and processes (column). The resulting matrix can be visualized with the GOChord function.

Usage

chord_dat(data, genes, process)

Arguments

data
A data frame with at least two coloumns: GO ID|term and genes. Each row contains exactly one GO ID|term and one gene. A column containing logFC values is optional and might be used if genes is missing.
genes
A character vector of selected genes OR data frame with coloumns for gene ID and logFC.
process
A character vector of selected processes

Value

A binary matrix

Details

If more than one logFC value for each gene is at disposal, only one should be used to create the binary matrix. The other values have to be added manually later.

See Also

GOChord

Examples

Run this code
## Not run: 
# # Load the included dataset
# data(EC)
# 
# # Building the circ object
# circ <- circle_dat(EC$david, EC$genelist)
# 
# # Building the binary matrix
# chord <- chord_dat(circ, EC$genes, EC$process)
# 
# ## End(Not run)

Run the code above in your browser using DataLab