Skip to contents

This function returns all the molecular complexes where an input set of genes participate. User can choose to retrieve every complex where any of the input genes participate or just retrieve these complexes where all the genes in input set participate together.

Usage

get_complex_genes(
  complexes = import_omnipath_complexes(),
  select_genes,
  total_match = FALSE
)

Arguments

complexes

complexes data frame (obtained using import_omnipath_complexes)

select_genes

vector containing the genes for whom complexes will be retrieved (hgnc format).

total_match

[default=FALSE] logical indicating if the user wants to get all the complexes where any of the input genes participate (FALSE) or to get only the complexes where all the input genes participate together (TRUE).

Value

Data frame of complexes

Examples

complexes <- import_omnipath_complexes(
    filter_databases = c("CORUM", "hu.MAP")
)
query_genes <- c("LMNA", "BANF1")
complexes_query_genes <- get_complex_genes(complexes, query_genes)