list2Matrix: Converts list into matrix

Description Usage Arguments Value Author(s)

View source: R/hyperGraphs.R

Description

Converts a named list representation of a graph into matrix

Usage

1
list2Matrix(namedList, type="interaction")

Arguments

namedList

Named list.

type

Character: either interaction or complex

Value

A matrix. A bait-prey matrix if type is "interaction" with baits indexing the columns and prey the rows or a protein complex incidence graph with complexes indexing the columns and proteins, the rows.

If type is interaction, the names of the list are the baits and the entries of the list correspond the prey found by each bait.

If type is complex, the names of the list are the names of the protein complex and the entries are the members of each corresponding complex.

Author(s)

Tony Chiang <tchiang@ebi.ac.uk>


Accio/RpsiXML documentation built on May 7, 2021, 12:08 a.m.