Gcell Celltype

by GET-Foundation

skill

|

Skill Details

Repository Files

1 file in this skill directory


name: gcell-celltype description: | Cell type regulatory analysis using gcell. Use this skill when users ask about:

  • Loading pre-inferred cell types (GET model outputs)
  • Gene-by-motif matrices showing TF influence on genes
  • Gene Jacobian analysis for regulatory importance
  • Motif subnet visualization
  • Cell type-specific gene expression patterns Triggers: cell type, regulatory analysis, gene expression, Jacobian, motif subnet, GET model, TF influence

Cell Type Regulatory Analysis

Loading Cell Types

from gcell.cell.celltype import GETDemoLoader

# Initialize loader
loader = GETDemoLoader()

# List available pre-inferred cell types
print(loader.available_celltypes)

# Load a specific cell type
ct = loader.load_celltype('Plasma Cell')
ct = loader.load_celltype('CD4+ T Cell')
ct = loader.load_celltype('Monocyte')

Gene-by-Motif Analysis

The gene-by-motif matrix shows how transcription factor motifs influence gene expression in a cell type.

# Get gene-by-motif matrix
gbm = ct.get_gene_by_motif()

# gbm is a DataFrame with genes as rows, motifs as columns
# Values represent regulatory influence scores
print(gbm.shape)
print(gbm.loc['MYC'])  # TF influences on MYC

Gene Jacobian Analysis

Jacobian analysis reveals which regulatory elements most influence a gene's expression.

# Get Jacobian summary for a specific gene
jacobian = ct.get_gene_jacobian_summary('MYC')
jacobian = ct.get_gene_jacobian_summary('TP53')

# Jacobian shows importance of each motif for the gene
print(jacobian.sort_values(ascending=False).head(20))

Motif Subnet Visualization

Visualize the regulatory network around a specific motif/TF.

# Interactive plotly visualization
ct.plotly_motif_subnet(motif_name='STAT3', top_genes=20)
ct.plotly_motif_subnet(motif_name='PU.1', top_genes=30)
ct.plotly_motif_subnet(motif_name='GATA1', top_genes=15)

# Parameters:
# - motif_name: Name of the motif/TF to center the network on
# - top_genes: Number of most influenced genes to show

Key Classes

Class Purpose
GETDemoLoader Load pre-inferred cell types
GETCellType Cell type analysis container
GETHydraCellType Multi-cell type analysis

Data Location

Pre-inferred cell type data is downloaded automatically to ~/.gcell_data/ on first use.

Related Skills

Attack Tree Construction

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

skill

Grafana Dashboards

Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.

skill

Matplotlib

Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.

skill

Scientific Visualization

Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.

skill

Seaborn

Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.

skill

Shap

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Query Writing

For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Scientific Visualization

Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.

skill

Skill Information

Category:Skill
Last Updated:1/16/2026