chord_dat {GOplot}R Documentation

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

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.

Value

A binary matrix

See Also

GOChord

Examples

## 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)

[Package GOplot version 1.0.2 Index]