load_network_database: Load a cached curated network database

View source: R/data-access-io-prepare.R

load_network_databaseR Documentation

Load a cached curated network database

Description

Type-safe wrapper around load_database() with a network-specific signature and master-identifier conversion enabled by default.

Usage

load_network_database(
  id,
  version = NULL,
  cache_dir = NULL,
  case_sensitive = FALSE,
  min_score = NULL,
  n_top = NULL,
  greedy = TRUE,
  map_to_symbols = TRUE,
  chunk_size = 100000L,
  id_mappings = NULL,
  ambiguous = c("drop", "error", "first", "expand"),
  unmapped = c("drop", "keep", "error"),
  output_network_format = c("igraph", "sparse", "legacy"),
  network_format = NULL,
  verbose = TRUE
)

Arguments

id

Catalog identifier from available_databases().

version

Database release specified by the catalog. By default, the release associated with id is used.

cache_dir

Cache root. Download functions require an explicit path; read-only loaders use the package user cache when it is NULL.

case_sensitive

Preserve identifier case.

min_score

Optional minimum network edge score.

n_top

Optional number of highest-scoring unique network edges.

greedy

Boundary-tie policy used with n_top. The default, TRUE, includes every edge tied at the score of the n_topth edge and can therefore return more than n_top edges. FALSE keeps only edges strictly above that boundary score and can return fewer edges. NULL returns exactly n_top edges by filling a boundary tie in alphanumeric canonical-endpoint order. The strict-size NULL mode is useful when benchmarked networks must contain consistent edge counts.

map_to_symbols

Convert network identifiers to the species master identifier format. The default, NULL, enables conversion for networks and disables this network-only option for gene-set resources. GeneMANIA uses its bundled release-matched mapping. STRING and FunCoup use a cached mapping prepared by prepare_id_mappings(). Set this to FALSE only to retain provider-native identifiers.

chunk_size

Number of network rows parsed per chunk.

id_mappings

Optional object from load_id_mappings() used to convert native STRING or FunCoup identifiers. When omitted, the loader uses the verified local mapping cache and tells the user to run prepare_id_mappings() first if it is absent.

ambiguous, unmapped

Identifier-mapping policies passed to import_network().

output_network_format

Return curated networks as igraph objects, sparse networks, or legacy NEArender adjacency lists. Gene set databases are unaffected.

network_format

Deprecated alias for output_network_format.

verbose

Report validation, parsing progress, and final object sizes.

Value

The loaded network. Use manifest() for provenance.

See Also

download_network_database(), import_network()

Examples

## Not run: 
network <- load_network_database("string12_human", n_top = 1000000)
manifest(network)$filters

## End(Not run)

NEArender documentation built on Nov. 28, 2026, 5:10 p.m.