Learn R Programming

inferCSN

Introduction

inferCSN is an R package for inferring Cell-Specific gene regulatory Network from single-cell RNA data.

Installation

You can install the released version from CRAN use:

install.packages("inferCSN")
# or
if (!require("pak", quietly = TRUE)) {
  install.packages("pak")
}
pak::pak("inferCSN")

You can install the development version from GitHub use pak:

if (!require("pak", quietly = TRUE)) {
  install.packages("pak")
}
pak::pak("mengxu98/inferCSN")

Usage

Examples

library(inferCSN)
data(example_matrix)

network <- inferCSN(
  example_matrix
)

More functions and usages about inferCSN? Please reference here.

Citation

If you use inferCSN in your work, please cite it reference here.

Copy Link

Version

Install

install.packages('inferCSN')

Monthly Downloads

225

Version

1.2.0

License

MIT + file LICENSE

Maintainer

Meng Xu

Last Published

October 16th, 2025

Functions in inferCSN (1.2.0)

example_matrix

Example matrix data
network_format

Format network table
plot_static_networks

Plot dynamic networks
plot_scatter

Plot expression data in a scatter plot
example_meta_data

Example meta data
plot_coefficient

Plot coefficients
plot_coefficients

Plot coefficients for multiple targets
subsampling

Subsampling function
single_network

Construct network for single target gene
plot_histogram

Plot histogram
network_sift

Sifting network
prepare_binary_predictions

Prepare Binary Predictions
weight_sift

Weight sift
plot_network_heatmap

Plot network heatmap
print.infercsn_logo

Print logo
plot_dynamic_networks

Plot dynamic networks
plot_embedding

Plot embedding
plot_edges_comparison

Network Edge Comparison Visualization
calculate_recall

Calculate Recall Metric
calculate_f1

Calculate F1 Score
calculate_accuracy

Calculate Accuracy
calculate_auc

Calculate AUC Metrics
calculate_gene_rank

Rank TFs and genes in network
calculate_auprc

Calculate AUPRC Metric
calculate_ji

Calculate Jaccard Index
calculate_precision

Calculate Precision Metric
calculate_auroc

Calculate AUROC Metric
calculate_metrics

Calculate Network Prediction Performance Metrics
fit_srm

Sparse regression model
filter_sort_matrix

Filter and sort matrix
inferCSN

inferring cell-type specific gene regulatory network
inferCSN-package

Inferring Cell-Specific Gene Regulatory Network
calculate_si

Calculate Set Intersection
example_ground_truth

Example ground truth data
infercsn_logo

The logo of inferCSN
meta_cells

Detection of metacells from single-cell gene expression matrix
plot_contrast_networks

Plot contrast networks