View source: R/data-access-io-prepare.R
| load_database | R Documentation |
Parsing is offline and verifies every cached artifact before use. Large
network adapters parse in chunks and may require an explicit edge filter.
For pathwaycommons_hgnc, the edge weight is the number of distinct
supporting PubMed publications plus a 0.5 pseudocount. Thus uncited
curated relations remain edges with weight 0.5; use min_score = 2.5 to
require at least two publications. Selected source edge scores are stored
as the canonical network edge weight.
load_database(
id,
version = NULL,
cache_dir = NULL,
case_sensitive = FALSE,
min_score = NULL,
n_top = NULL,
greedy = TRUE,
map_to_symbols = NULL,
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
)
id |
Catalog identifier from |
version |
Database release specified by the catalog. By default, the
release associated with |
cache_dir |
Cache root. Download functions require an explicit path;
read-only loaders use the package user cache when it is |
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 |
map_to_symbols |
Convert network identifiers to the species master
identifier format. The default, |
chunk_size |
Number of network rows parsed per chunk. |
id_mappings |
Optional object from |
ambiguous, unmapped |
Identifier-mapping policies passed to
|
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 |
verbose |
Report validation, parsing progress, and final object sizes. |
The loaded network or gene-set collection. Use manifest() to
inspect its provenance and loading statistics.
available_databases(), download_database(), import_network(),
import_gene_sets()
## Not run:
download_database("string12_human")
loaded <- load_database("string12_human", n_top = 1000000)
loaded
manifest(loaded)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.