- Home
- Skills
- Starlitnightly
- Omicverse
- Single Scenic Grn
single-scenic-grn_skill
- Python
866
GitHub Stars
2
Bundled Files
2 months ago
Catalog Refreshed
3 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill starlitnightly/omicverse --skill single-scenic-grn- reference.md3.4 KB
- SKILL.md8.6 KB
Overview
This skill implements SCENIC gene regulatory network analysis inside OmicVerse for bulk, single-cell, and spatial RNA-seq. It infers TF→target links with RegDiffusion, prunes regulons by cisTarget motif enrichment, and scores regulon activity per cell with AUCell. The output includes regulons, AUCell activity matrices, RSS for cell-type specificity, and visualizations for embedding and GRN graphs.
How this skill works
The pipeline runs three stages: (1) GRN inference using RegDiffusion on raw count data to predict TF→target importance, (2) regulon pruning with cisTarget motif rankings and motif-to-TF annotations to keep direct targets, and (3) AUCell scoring to quantify regulon activity in each cell. The skill validates database presence, checks raw-count layers and gene-name conventions, and stores adjacencies, regulons, AUCell matrices, and intermediate modules for downstream analysis.
When to use it
- Inferring transcription factor regulatory networks from single-cell or bulk RNA-seq counts.
- Identifying regulons (TF + direct target gene sets) and master regulators for cell types.
- Scoring regulon activity per cell for regulon-based clustering or cell-type annotation.
- Comparing regulon specificity across annotated cell types using RSS.
- Visualizing TF activity on embeddings and plotting TF→target networks for interpretation.
Best practices
- Provide raw (non-log) counts in a named layer (e.g., adata.layers['counts']) — RegDiffusion requires count-level variance.
- Download species-appropriate cisTarget .feather ranking databases and motif .tbl files before running; missing DBs are the most common failure.
- Filter HVGs to ~2000–3000 genes for tractable runtime and memory; reduce HVGs if pruning causes MemoryError.
- Ensure gene name case matches the database species (mouse mixed-case, human uppercase) to avoid empty regulons.
- Set n_jobs to match available CPU cores; reduce parallelism if memory is constrained.
- Validate existence of db_glob with glob.glob and check motif_path file before starting.
Example use cases
- Run SCENIC on mouse hematopoiesis scRNA-seq to find master regulators per annotated cell type.
- Infer GRNs from spatial transcriptomics counts and map regulon activity onto tissue embeddings.
- Score and binarize regulon activity to identify on/off programs for downstream differential activity tests.
- Prune co-expression modules to direct regulons and visualize top TF→target edges for publication figures.
- Compute RSS to rank TFs specific to rare cell populations for follow-up experiments.
FAQ
Use a layer containing raw counts (not log-transformed). Typical names: 'counts' or 'raw_count'. If max expression <20, your data may be log-transformed.
Why do I get zero or very few regulons after pruning?
Most cases are due to gene-name mismatch with the cisTarget database or using log-transformed inputs. Check gene case (mouse mixed-case, human uppercase) and ensure raw counts are supplied.