STRINGdb_network: STRING Network from Gene List

View source: R/genes.R

STRINGdb_networkR Documentation

STRING Network from Gene List

Description

Maps a vector of gene symbols to STRINGdb and plots the resulting protein-protein interaction network.

Usage

STRINGdb_network(
  gene_vector,
  species = 9606,
  version = "11.5",
  score_threshold = 400,
  remove_unmapped = TRUE,
  plot = TRUE
)

Arguments

gene_vector

A character vector of gene symbols (e.g., DE genes).

species

Numeric: NCBI taxonomy ID for the species (default: 9606 for Homo sapiens).

version

Character: STRING database version (default: "11.5").

score_threshold

Numeric: Minimum interaction confidence score (default: 400).

remove_unmapped

Logical: Whether to remove unmapped genes (default: TRUE).

plot

Logical: Whether to display the STRING network plot (default: TRUE).

Value

A data frame of mapped genes with STRING IDs. Optionally displays the network plot.

Examples

de_genes <- c("CD3D", "IL2", "FOXP3", "CD28")
result <- plot_string_network(de_genes, species = 9606)

eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.