Splice Girl

Topological analysis of RNA splicing in endometriosis

Status, November 24, 2026

Research software, in progress. The Rust tool is published on crates.io (version 0.2.2) and its 127 automated tests pass. The eight-sample endometriosis analysis is specified in advance. Three of the eight samples have been aligned on the university cluster, so there is no case/control result yet.

Team
Splice Girls: Summer Malik, Vania Zeledon, Sydney Holmes, Wynn Oo
My role
Lead programmer and mathematical modeling
Context
BINF 2111 team research project, UNC Charlotte, fall 2026
Install
cargo install splice-girl --locked
Code
GitHub repository · crates.io · docs.rs
License
CC BY 4.0 (versions 0.2.0 and later; 0.1.0 was MIT)

On this page

  1. Why splicing
  2. Research question
  3. What I did
  4. The mathematics
  5. Study design
  6. From reads to numbers
  7. Why the Rust stage is fast
  8. Validation so far
  9. Try it yourself
  10. Limitations
  11. Technical stack
  12. Status and citation
  13. Supporting materials

Why splicing

A gene is copied into an early RNA molecule made of exons and introns. During splicing, the introns are usually removed and selected exons are joined. Different joining choices (alternative splicing) can produce different finished RNAs from the same gene.

RNA sequencing gives short reads, and some of them span the joint between two exons. Those joints are splice junctions. Standard summaries count how many reads support each junction. Splice Girl asks a structural question instead: how do all of a gene's observed junctions fit together?

The first application is endometriosis. Candidate genes come from two independent kinds of evidence: genetic risk (the GWAS Catalog and Koller et al. 2026) and measured responses to dioxin-like chemicals (the Comparative Toxicogenomics Database). Together that is 661 candidate genes, each labeled risk-only, environment-only or both.

Research question

Do endometriosis samples organize their RNA splice connections differently from control samples?

The measurement is a cycle fraction: how much of a gene's normalized junction signal is left over after the best node-based explanation is removed. The study compares that number between four endometriosis and four control samples of the same tissue.

What I did

I was the team's lead programmer and worked on the mathematical modeling. The repository's dated contribution logs record each person's work. Mine includes:

Teammates: Vania Zeledon led computational development and the mathematical theory, including the statistics specification, the exact permutation test, the junction-usage baseline, the cohort analysis configuration and the interpretation plan. Sydney Holmes led the biological research. Wynn Oo worked on the RNA-seq data and splice-junction research.

The mathematics

A gene as a graph

For one gene in one sample, each exon locus is a node and each observed splice junction is a directed edge, pointing the way the transcript reads. Its weight is the number of reads supporting it. An exon-skipping event adds a second route between the same two exons:

E1 ──→ E2 ──→ E3     one route

E1 ──→ E2 ──→ E3     exon skipping: a second route,
│             ↑      straight from E1 to E3
└─────────────┘

The edge signal is normalized so samples with different sequencing depth can be compared:

we = ce / Σj cj

The incidence matrix B1 has one row per node and one column per edge. Each edge's column is −1 at its source, +1 at its target, and 0 elsewhere. Nodes and edges are sorted by identifier, so the answer does not depend on the input row order.

Hodge decomposition

Splice Girl finds the node values (a potential φ) that best explain the edge signal F, then splits F into what they explain and what is left:

φ* = argminφ ‖F − B1Tφ‖22    (normal equations: Lφ* = B1F,   L = B1B1T)

Fgrad = B1Tφ*     Fcycle = F − Fgrad     C = ‖Fcycle‖2 / ‖F‖2

L is the graph Laplacian. It is singular, because adding a constant to φ on a connected piece of the graph changes nothing. So the code fixes the first node of each connected component at zero and solves for the rest.

Gradient, curl and harmonic. In full combinatorial Hodge theory, a flow on edges splits three ways: a gradient part (in the image of B1T), a curl part (flow around filled-in faces, the image of B2) and a harmonic part (in the kernel of both). A splice graph has nodes and edges but no filled faces, so B2 = 0. The curl part is empty, and everything that is not gradient is harmonic. That harmonic part is the cycle-space component Splice Girl reports. It has dimension |E| − |V| + (number of connected components), the graph's cycle rank. Adding faces, which would separate curl from harmonic, is deliberately left out of the current specification.

Every answer checks itself

No result is reported unless three identities hold, at a relative tolerance built on 10−9:

F ≈ Fgrad + Fcycle     B1Fcycle ≈ 0     FgradTFcycle ≈ 0

These say the split is complete, the leftover really is cycle-space flow, and the two parts are orthogonal, so they do not double-count signal.

Three copies of a three-exon splice graph E1, E2, E3 with an exon-skipping arc from E1 to E3: what was measured equals a straight-through gradient part plus a loop part in which the skip edge runs backward. A bar shows 89 percent straight-through and 11 percent loop.
Figure 1. The decomposition on the exon-skipping test graph, with 100 reads on each junction. The graph has no directed cycle, but as an undirected graph it is a triangle with one independent cycle, so one ninth (11%) of the signal energy is cycle-space. That 1/9 is derived by hand in the math specification and reproduced by the code. Figure from the team's presentation.

A worked example you can check

The packaged example's TRIANGLE gene in sample S0 has junction counts A→B = 30, A→C = 5 and B→C = 30. So F = (6, 1, 6)/13 on (A→B, A→C, B→C). The cycle space is spanned by z = (1, −1, 1), going A→B→C and back along C→A. Projecting onto it gives Fcycle = (11/39)(1, −1, 1) ≈ (0.2821, −0.2821, 0.2821). The cycle fraction is C = 121/219 ≈ 0.5525. These are exactly the values the program prints in Figure 3.

Study design

From reads to numbers

The work splits into two very different stages. Upstream, established bioinformatics tools turn raw sequencing reads into junction counts. Downstream, Splice Girl does the mathematics. The numbers below are one endometriosis sample, SRR36710386, run on UNC Charlotte's HPC cluster on November 19, 2026.

1. Upstream preprocessing

  1. Download from SRA and convert to FASTQ: about 36 GB of paired reads (conversion took 2 min 39 s)
  2. Clean, then align 54,679,380 read pairs with HISAT2 (97.54% overall alignment)
  3. Assign junction-spanning reads to annotated exon pairs: 28,844,691 junction observations kept, 1,274,883 ambiguous ones excluded
  4. Write the junction table: 210,520 rows

1 h 41 min 47 s

alignment plus junction extraction (Slurm job 27844959)

2. Splice Girl (Rust)

  1. Read and validate the 210,520-row table
  2. Build one graph per gene
  3. Hodge decomposition, with the three checks on every graph
  4. Write sample_metrics.tsv (3.8 MB) and junction_components.tsv (34 MB)

5 s

Hodge analysis stage (Slurm job 27866517)

Only the Hodge stage took five seconds. Getting from raw reads to the junction table took about an hour and 42 minutes, not counting the download and FASTQ conversion. The 28.8 million figure counts junction observations at the assignment stage. The Rust tool reads the 210,520 aggregated rows built from them. Building the shared reference map behind that table took 5,087,789 annotated exons across 646,577 transcripts and produced 536,254 graph nodes.

Why the Rust stage is fast

This is about the shape of the problem, not a race against other tools:

The five seconds is one recorded run of one sample, not a general runtime guarantee. A second, smaller measurement on real data: analysis plus export for 243 genes (1,388 junction rows) took a median of 11.2 ms over five runs, with about 4 MiB peak memory.

Validation so far

The software

Real data, checked independently

On November 18, the packaged tool ran on the first 1,000,000 cleaned read pairs (about 2%) of control sample SRR36710387. Two independent checks followed:

That is a check of counting and numerics on one control. It is not a biological finding.

Bar chart for the first million cleaned read pairs of SRR36710387 under the earlier node rule: 152,907 junction observations mapped to a unique exon pair, 409,613 matched one gene but several exon pairs, 3,352 matched several genes, 19,634 matched several genes and exon pairs, and 1,583 were unannotated.
Figure 2. Why junction observations were kept or excluded in that pilot, under the earlier exon-interval node rule. Most exclusions matched one gene but several overlapping exon pairs. This audit is why the team changed to a shared-splice-site node rule on November 18. Figure from the repository's pilot audit.

Try it yourself

This needs Rust 1.85 or newer. The example uses eight invented samples and four invented genes, and downloads no patient data. These exact commands were run with the published 0.2.2 crate on November 24, 2026:

cargo install splice-girl --locked
splice-girl example --output splice-girl-example
cd splice-girl-example
# read-only preflight (prints PASS, 8 samples, 1 eligible gene, 7 scenarios)
splice-girl check --config analysis.json
# the full run: writes configured-results/
splice-girl run --config analysis.json
open configured-results/report.html

The example's own README.md walks through prepare-shared, stats and sensitivity step by step. Every saved run includes a run_manifest.json with the command, version, settings and input checksums.

Program output for gene TRIANGLE in sample S0: three aligned panels of the same three-node graph show the observed signal, the gradient component and the cycle component, with a table of junction values. Cycle fraction 0.5525, mathematical checks PASS.
Figure 3. Unedited program output from the run above (configured-results/primary_report/graphs/graph-000002.svg). The same nodes, edges and line-width scale appear in every panel. Dashed edges run against their stored direction. Synthetic data.
Top of the offline Splice Girl comparison report, version 0.2.2: 2 genes, 15 sample/gene graphs, 0 failed mathematical checks, with a gene summary table for LOW_COVERAGE and TRIANGLE.
Figure 4. The offline HTML report from the same run. It states its limits at the top: the checks verify the mathematics, not biological comparability. Synthetic data.

Limitations

Technical stack

Status and citation

Splice Girl is research software, not a peer-reviewed publication. The repository's CITATION.cff asks anyone using it to cite the software and record the version or commit; splice-girl cite prints the same details.

@software{splice_girl_2026,
  author  = {Holmes, Sydney and Zeledon, Vania and Malik, Summer and Oo, Wynn},
  title   = {Splice Girl: graph and Hodge analysis of RNA splice-junction data},
  version = {0.2.2},
  year    = {2026},
  license = {CC-BY-4.0},
  url     = {https://github.com/simransummermalik/TopologicalAnalysisofRNASplicinginEndometriosis}
}

Supporting materials

Back to top

back to the splice_girl desktop