Skip to contents

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, ...)

Arguments

x

numeric vector of Mangal network IDs or an object returned by by one of the search_*() functions.

...

arguments to be passed on to get_network_by_id().

Value

Returns a object of class mgNetworksCollection which is a collection (actually, a list) of mgNetwork objects 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 mgSearchTaxa object.

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

Examples

# \donttest{
 mg_2 <- get_collection(c(1076:1077), verbose = FALSE)
#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

 mg_anemone <- get_collection(search_networks(query='anemone%'), verbose = FALSE)
#> Data retrieval 100%   

#>                                                                              

#> Found 16 networks
#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

#> Processing id: 75 	1/1  

#>                                                                              

# }