Render Omics Profiles in Functional Network Space

Tools for transforming gene-level omics profiles into pathway-level scores using methods of network enrichment (Alexeyenko et al., 2012, ), random walks, over-representation, network texture (Alexeyenko, 2026 ), spectral graph analysis (Chung, 1997 ), and gene-set variation methods (Hänzelmann et al., 2013 ), with optional enrichment adjustment for restricted gene universes (pathway enrichment of small diagnostic panels, targeted sequencing etc.). Input uses on original gene/protein vs. sample matrices; output is pathway vs. sample matrices, i.e. the sample dimension is preserved. Main downstream applications of the rendered sample space include: 1) using the pathway profiles as predictor variables, where the advantages are dimensionality reduction and predictor robustness (Franco et al. ); 2) discovery of cancer drivers (Petrov and Alexeyenko, 2022 ); 3) differential pathway enrichment, as a more sensitive and informative alternative differential gene expression (Alexeyenko et al., 2022 ). The package maintains network objects in igraph, custom, and sparse matrix formats, parallelized computations, and provides rich functionality for API access to pathway and network databases as well as gene/protein ID management and compatibility.


NEArender

Network enrichment analysis. Renders original gene profile matrices "N genes x M samples" into the network-based space of gene set (typically pathway) scores of dimensionality "P sets x M samples" via analysis of:

  • altered gene sets,
  • textural features (a-la Haralick et al., 1973),
  • spectral analysis (Rayleigh quotient). Differential enrichment analysis of reducted, functionally enriched gene matrices (diagnostic panels, targeted sequencing data etc.). Analysis of topological features of global network versions. Evaluation of network quality by ability to recapitulate higher-order functional relations. Compatibility functions w.r.t. igraph and other network formats.

Development status

The repository is being migrated from the legacy NEArender v2.0 research script into an R package. Numerical behavior will be protected with regression tests before analytical functions are refactored. The current architecture is described in the repository file docs/design.md.

Initial development commands are:

Rscript -e 'testthat::test_local()'
R CMD build .
R CMD check NEArender_*.tar.gz

The package currently exposes input preparation with samples2ags() and mutations2ags(), sparse network enrichment with nea.render(), over-representation analysis with ora.render(), network texture features with texture.render(), spectral network features with spectral.render(), and GSVA-family methods with gsva.render(). These functions are covered by synthetic regression and compatibility tests. Renderers return the uniform multi-score result object described in the design document. Master score matrices occur identically in scores and statistics; all other statistical outputs occur only in statistics, never at the top level. The ear() layer calibrates NEA or ORA against a restricted-universe random reference bank shared by AGSs of the same size. Network investigation now includes node-degree and second-order topology diagnostics, member-recovery benchmarking, ROC and precision-recall curves, and exact network-overlap plots. Gene-set export and shared real-world example data are documented separately. The set.heat() visualization provides variable-area score or Jaccard heat maps with optional clustering. It accepts gene-set lists, explicit size vectors, or a score matrix alone; score-only calls use equal row and column sizes.

Local tabular data can be read with import_gene_sets() and import_network(). Explicit remote access includes a fixed Reactome release, selected human and mouse MSigDB 2026.1 collections, STRING 12.0 and FunCoup 6.0 networks for every supported species, the GeneMANIA human combined network, and the 381,279-edge IntAct fraction of Pathway Commons v14. The integrated Pathway Commons HGNC source contains 1,573,878 unique endpoint pairs. NEArender retains all of them and uses the number of distinct linked PubMed records plus a 0.5 pseudocount as the edge weight, so relations without linked publications have weight 0.5 rather than disappearing. Inspect available_databases(), including its source_score_column, score_semantics, expected_edges, and collection_annotation fields, call download_network_database(), then parse the verified cache with load_network_database(). Loaded data can be passed directly to renderers; use manifest() to inspect its provenance. Generic download_database() and load_database() entry points remain available.

Arbitrary public, unlisted, or authenticated NDEx networks use a separate live catalog and snapshot API. search_ndex_networks() returns a stable data frame for command-line or web-service use, ndex_network_summary() inspects one resource before transfer, and download_ndex_network() stores a checksummed CX2 or CX snapshot. load_ndex_network() is strictly offline and projects an explicit node attribute and optional numeric edge attribute into NEArender's simple undirected network model. The acquisition manifest records the NDEx server, UUID, modification time, rights metadata, byte count, digest, and the projection choices. Authentication, access keys, storage, and download limits are explicit inputs so the same functions can sit behind a future website without embedding website policy in the analytical package. Licensed, user-supplied KEGG pathway tables are supported for every species in the package catalog through import_kegg_pathways(). Its default selects gene symbols from column 2; column 1 Ensembl identifiers are available explicitly with gene_column = "ensembl" and a current identifier mapping. Network imports and database loaders return undirected igraph objects by default; output_network_format = "sparse" and "legacy" are available. Use convert_network(from, to), its as_*_network() convenience wrappers, read_network(), and export_network() for conversion and graph-file interchange. Top-edge filtering includes every boundary-score tie by default; use greedy = FALSE to keep only edges strictly above the boundary, or greedy = NULL for an exact, deterministically tie-broken edge count when benchmarks require size-matched networks.

reduce_network() applies minimum-score, ranked top-edge, or random fixed-size selection to an in-memory weighted network through one select list. merge_networks() accepts a union, intersection, or minimum input-network multiplicity and drops edge scores by default. Score preservation must be requested explicitly and is allowed only for inputs with compatible score provenance (or an explicit shared score_format declaration). Both functions attach transformation manifests.

The same deterministic import, mapping, conversion, and export functions are intended to support future eviNet web services. Website concerns such as PostgreSQL storage, authentication, uploads, quotas, and response serialization will remain adapters around the package API; the R package itself does not acquire a web-server or database dependency.

Every user-data boundary requires species, which has no default and is never guessed from identifier strings. It accepts a scientific or common name, package species ID, three-letter KEGG style organism ID, or NCBI taxonomy ID. For example, "Homo sapiens", "human", "hsapiens", "hsa", and "9606" all select the same catalog entry. Use explicit species = NULL only for unsupported organisms or non-biological node IDs.

The public master_id_format(species) helper reports the default submitted namespace; for example, master_id_format("9606") returns "HGNC". input_id_format defaults to that master format. Supply it explicitly for non-master input, for example input_id_format = "ensembl_gene_id", and when using species = NULL. Normalization stops before analysis if declared output namespaces disagree.

import_gene_sets(), import_network(), read_network(), samples2ags(), and mutations2ags() accept an optional object from load_id_mappings(). When it is supplied, identifiers are converted at that boundary under explicit ambiguous, unmapped, and, for matrices, duplicate_ids policies. Inspect the recorded canonical species, input/output namespaces, mapping release, and mapping statistics with normalization_info(). GeneMANIA loading requires an explicit edge score threshold or top-edge count, and its source-dependent terms require explicit acceptance at download time. Renderers remain offline. The provider and caching policy is documented in the repository file docs/data-access.md.

Identifier mappings are also prepared explicitly rather than at package installation. Use available_id_formats() to inspect the offline species catalog and prepare_id_mappings(c("human", "rat")) to cache only the required species. Curated network loaders then apply the cached mapping to master IDs by default; load_id_mappings("rat") remains available for custom imports and gene descriptions. Eukaryotic mappings use release-resolved BioMart data; E. coli K-12 MG1655 uses the strain-specific NCBI Gene table, supplemented with reviewed UniProtKB accessions for FunCoup node mapping. The three-letter KEGG style organism IDs hsa, mmu, rno, dme, cel, sce, ath, and eco are also accepted and are reported in the catalog's species column.

Imported and prepared datasets carry identifier-normalization metadata, inspectable with normalization_info(). Renderers reuse objects whose case policy already matches and continue to normalize unmarked legacy inputs.

A catalogued source edge score is retained as the network's canonical edge weight, but may still measure evidence rather than define a transition model. Random-walk and PageRank renderers therefore ignore stored weights by default; set use_edge_weights = TRUE only when they can defensibly determine transition probabilities. Spectral rendering exposes binary rlq/dir and weighted rlw/diw features explicitly.

Use ?NEArender for a package overview, help(package = "NEArender") for the complete help index, and ?nearender_result for the common renderer return structure. ORA, personalized PageRank, Haralick, and spectral renderers accept n_cores for opt-in parallel execution; sparse NEA and RWR are already vectorized across sets.

For release copy-editing, all Rd pages can be reviewed in one tracked-changes Word document and imported back into man/. See the repository file docs/word-review.md.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("NEArender")

2.0 by Andrey Alexeyenko, 9 hours ago


https://github.com/andreyalexeyenko/NEArender


Report a bug at https://github.com/andreyalexeyenko/NEArender/issues


Browse source code at https://github.com/cran/NEArender


Authors: Andrey Alexeyenko [aut, cph, cre] (ORCID: , Ashwini Jeggari [ctb]


Documentation:   PDF Manual  


GPL-3 license


Imports curl, igraph, jsonlite, Matrix, methods, parallel

Suggests GSVA, knitr, KernSmooth, MASS, rmarkdown, testthat, venn


See at CRAN