Learn R Programming

rmangal (version 2.2.2)

get_collection: Get a collection of networks

Description

Retrieve a set of networks based on the results of one of the search_*() function. The function also accepts a numeric vector of Mangal network IDs.

Usage

get_collection(x, ...)

# S3 method for default get_collection(x, ...)

# S3 method for mgSearchDatasets get_collection(x, ...)

# S3 method for mgSearchNetworks get_collection(x, ...)

# S3 method for mgSearchReferences get_collection(x, ...)

# S3 method for mgSearchNodes get_collection(x, ...)

# S3 method for mgSearchTaxonomy get_collection(x, ...)

# S3 method for mgSearchInteractions get_collection(x, ...)

Value

Returns a object of class mgNetworksCollection which is a collection (actually, a list) of mgNetwork objects get_network_by_id()).

Arguments

x

numeric vector of Mangal network IDs or an object returned from any search_*() function.

...

arguments to be passed on to get_network_by_id().

Methods (by class)

  • get_collection(default): Get a collection of networks (default).

  • get_collection(mgSearchDatasets): Get a collection of networks from a mgSearchDatasets object.

  • get_collection(mgSearchNetworks): Get a collection of networks from a mgSearchNetworks object.

  • get_collection(mgSearchReferences): Get a collection of networks from a mgSearchReferences object.

  • get_collection(mgSearchNodes): Get a collection of networks from a mgSearchNodes object.

  • get_collection(mgSearchTaxonomy): Get a collection of networks from a mgSearchTaxonomy object.

  • get_collection(mgSearchInteractions): Get a collection of networks from a mgSearchInteractions object.

See Also

search_datasets(), search_interactions(), search_networks(), search_nodes(), search_references(), search_taxonomy().

Examples

Run this code
# \donttest{
mg_2 <- get_collection(c(1076:1077))
mg_anemone <- get_collection(search_networks(query = "anemone%"))
# }

Run the code above in your browser using DataLab