Scte

From swaruplab/operon · View interactive version

Scte is an AI agent skill from the GitHub repository swaruplab/operon. Quantify transposable element expression from single-cell RNA/ATAC-seq BAM files at locus or family level.

How to use this skill

Skill file

scTE

Overview

scTE allocates aligned reads from single-cell RNA-seq or ATAC-seq BAM files to a unified gene + transposable element (TE) reference, producing a per-cell count matrix that contains both protein-coding genes and individual TE loci (or TE family aggregates). It uses prebuilt or custom genome indices that encode gene/exon coordinates alongside RepeatMasker-style TE annotations, and resolves the overlap between TE elements and gene bodies via configurable allocation modes (exclusive, inclusive, nointron). Output is a CSV table by default, or an AnnData .h5ad ready for Scanpy/Seurat workflows.

When to Use This Skill

Prerequisites

git clone https://github.com/JiekaiLab/scTE.git
cd scTE
python setup.py install

# Recommended companion tools
conda install -c bioconda samtools
pip install anndata h5py pysam numpy

Requires Python ≥ 3.6. Prebuilt indices for mm10, hg38, panTro6, macFas5, dm6, danRer11, and xenTro9 are bundled with the repository; custom genomes are built with scTE_build -te <BED> -gene <GTF> -o <prefix> -g <genome>.

Input Format

Quick Start

scTE -i inp.bam -o out -x mm10.exclusive.idx --hdf5 True -CB CB -UMI UB

Parameters

| Name | Default | Description |

| --- | --- | --- |

| -i | (required) | Input aligned BAM/SAM file. |

| -o | (required) | Output file prefix. |

| -x | (required) | Path to prebuilt or custom genome index (.idx). |

| -p | 1 | Number of threads (~10 GB RAM per thread). |

| --hdf5 | False | Emit .h5ad AnnData instead of CSV when True. |

| -CB | CR | Cell barcode BAM tag name, or False to disable. |

| -UMI | UR | UMI BAM tag name, or False to disable. |

| -m / --mode | exclusive | TE/gene overlap allocation: exclusive, inclusive, or nointron. |

Output

Sharp Edges

References

He, J. et al. (2021). "scTE: identifying the activity of transposable elements at single-cell resolution." Nature Communications 12, 1456. DOI: 10.1038/s41467-021-21808-x.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.