genBPGraph {y2hStat} | R Documentation

## A function to generate the Y2H induced adjcency matrix or its corresponding graph

### Description

This function will take the Y2H data and generate either an adjacency matrix or an instance of the class graph.

### Usage

    genBPGraph(y2h, sym = FALSE, inNuc = FALSE, nonWeighted = FALSE, homodimer = TRUE)

### Arguments

`y2h` | A three tiered list. Names of the second tier corresponds to ID of experiment. Names of the third tier should be the bait proteins. The entries of the third tier are character vectors of proteins detected as prey
`sym` | A logical - if TRUE, only symmetric interactions will be used to generate the adjcency matrix or graph
`inNuc` | A logical - if TRUE, only those proteins annotated to the nucleus GO terms will be used.
`nonWeighted` | A logical - if TRUE, the matrix will not determine the multiplicity of the interactions, but only the binary present or absent
`homodimer` | A logical - if FALSE, the matrix will not include the presence of homodimer interactions

### Value

A list of adjaceny matrices based on the Y2H experimental data.

### Author(s)

T Chiang

### Examples

    data(y2hSysGW)
    eg=y2hSysGW[3]
    genBGGraph(eg)

[Package y2hStat version 1.2.0 Index]