Skip to contents

SecAct (Secreted protein Activity inference) is an R package for inferring intercellular signaling activity of over 1,000 secreted proteins from gene expression profiles. It supports spatial transcriptomics, single-cell RNA-seq, and bulk RNA-seq data.

๐ŸŒŸ Key Features

  • Multi-platform: Works on macOS, Linux, and Windows
  • Multi-data: Supports bulk, single-cell, and spatial transcriptomics
  • Fast: C/GSL implementation with pure R fallback
  • Comprehensive: 1,170 secreted proteins, 7,919 downstream genes
  • Statistical: Permutation-based significance testing

๐Ÿ“ฆ Installation

Prerequisites

SecAct uses GSL (GNU Scientific Library) for optimal performance. GSL is optional - a pure R fallback is available.

# macOS
brew install gsl

# Ubuntu/Debian
sudo apt-get install libgsl-dev

# RHEL/CentOS/Fedora
sudo dnf install gsl-devel

Install SecAct

# Install from GitHub
devtools::install_github("Zaoqu-Liu/SecAct")

# Windows users (if GSL not available):
devtools::install_github("Zaoqu-Liu/SecAct", configure.args = "--without-gsl")

๐Ÿš€ Quick Start

library(SecAct)

# Load example data
data_path <- system.file("extdata/GSE100093.IFNG.expr.gz", package = "SecAct")
expr <- read.table(gzfile(data_path), sep = "\t", header = TRUE, row.names = 1)

# Infer secreted protein activity
result <- SecAct.activity.inference(expr)

# Visualize results
SecAct.heatmap.plot(result$zscore[1:20, ])

๐Ÿ“š Tutorials

Tutorial Description
Quick Start Get started in 5 minutes
Algorithm Mathematical principles
Visualization Plotting guide
Spatial: Patterns ST signaling patterns
Spatial: Communication ST cell-cell communication
Single-cell: CCC scRNA-seq communication
Single-cell: State Cell state activity
Bulk: Change Treatment vs control
Bulk: Cohort Clinical relevance

๐Ÿ”ฌ Algorithm Overview

SecAct employs ridge regression with permutation testing:

ฮฒ = (X'X + ฮปI)โปยน X'Y

Where: - Y: Gene expression matrix - X: Secreted protein signature matrix (1,170 proteins) - ฮฒ: Inferred activity matrix - ฮป: Regularization parameter (default: 5ร—10โต)

Statistical significance is assessed via permutation testing with z-score transformation.

๐Ÿ“Š Workflow

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    SecAct Workflow                          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                             โ”‚
โ”‚  Expression Data โ”€โ”€โ–บ Activity Inference โ”€โ”€โ–บ Downstream      โ”‚
โ”‚  (Bulk/SC/Spatial)   (Ridge Regression)    Analysis         โ”‚
โ”‚                                                             โ”‚
โ”‚                           โ”‚                                 โ”‚
โ”‚                           โ–ผ                                 โ”‚
โ”‚              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                     โ”‚
โ”‚              โ”‚  โ€ข Cell Communication  โ”‚                     โ”‚
โ”‚              โ”‚  โ€ข Signaling Patterns  โ”‚                     โ”‚
โ”‚              โ”‚  โ€ข Survival Analysis   โ”‚                     โ”‚
โ”‚              โ”‚  โ€ข Velocity Analysis   โ”‚                     โ”‚
โ”‚              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                     โ”‚
โ”‚                                                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“– Citation

If you use SecAct in your research, please cite:

Beibei Ru, Lanqi Gong, Emily Yang, Seongyong Park, George Zaki, Kenneth Aldape, Lalage Wakefield, Peng Jiang. Inference of secreted protein activities in intercellular communication.

๐Ÿ‘ฅ Authors

๐Ÿ“„ License

GPL-3.0