Skip to main content

intronIC_logo

intronIC - (intron Interrogator and Classifier)

Version 2.0 - Refactored Edition with Streamlined ML Architecture

intronIC is a bioinformatics tool for extracting and classifying intron sequences as U12-type (minor) or U2-type (major) using a support vector machine trained on position-weight matrix scores.


Quick Start

Installation

pip install intronIC

Basic Usage

# Classify introns (default model loaded automatically)
intronIC -g genome.fa.gz -a annotation.gff3.gz -n species_name -p 8

# Extract sequences only (no classification)
intronIC extract -g genome.fa.gz -a annotation.gff3.gz -n species_name -p 8

# Train a custom model (optional - most users don't need this)
intronIC train -n my_model -p 8

Test Run

# Quick installation test using bundled test data
intronIC test -p 4

# Or show where test data is located
intronIC test --show-only

Documentation

For complete documentation, see the intronIC Wiki:


What's New in Version 2.0

This refactored version maintains 100% algorithmic fidelity and CLI compatibility with the original intronIC while providing a modernized, maintainable codebase:

Key Improvements

  • Corrected ML Architecture: Fixed double-scaling issue and train/test mismatch
    • Single scaling step via RobustScaler with centering (removes composition bias)
    • Configurable augmented features (5D standard or custom)
    • Two-stage optimization (C via balanced_accuracy, calibration via log-loss)
  • Modular Architecture: Organized into logical packages instead of a single 6,000+-line file
  • Enhanced Code Quality: Type hints throughout, immutable data structures, better error handling
  • Bug Fixes: Corrected data leakage in z-score normalization, fixed type_id assignment
  • Modern Tooling: Support for pixi and uv package managers
  • Improved Documentation: Comprehensive wiki and inline documentation

Key Features

  • SVM-based classification with probability scores (0-100%)
  • Default pretrained model loaded automatically - works for virtually all species
  • Streaming mode (default) for ~85% memory reduction on large genomes
  • Parallel processing for improved performance (-p 8 recommended)
  • Fast runtimes: ~6-10 minutes for human genome with default settings
  • Comprehensive metadata including phase, position, parent gene/transcript

Scientific Background

Most eukaryotic introns (~99.5%) are spliced by the major (U2-type) spliceosome, while a small fraction (~0.5%) are spliced by the minor (U12-type) spliceosome. U12-type introns have:

  • Highly conserved TCCTTAAC branch point motif
  • Terminal dinucleotides: AT-AC (~25%) or GT-AG (~75%)
  • Functional importance and evolutionary conservation

intronIC identifies U12-type introns using:

  1. PWM Scoring: Apply position-weight matrices to 5' splice site, branch point, and 3' splice site
  2. Normalization: Convert raw scores to z-scores (prevents data leakage)
  3. SVM Classification: Linear SVM with balanced class weights outputs probability scores

For detailed algorithm description, see the Technical Details wiki page.


Citation

If you use intronIC in your research, please cite:

Devlin C Moyer, Graham E Larue, Courtney E Hershberger, Scott W Roy, Richard A Padgett. Comprehensive database and evolutionary dynamics of U12-type introns. Nucleic Acids Research, Volume 48, Issue 13, 27 July 2020, Pages 7066–7078. https://doi.org/10.1093/nar/gkaa464


Support


Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

git clone https://github.com/glarue/intronIC.git
cd intronIC
make install    # Set up development environment
make test       # Run tests

License

intronIC is released under the GNU General Public License v3.0.

Metadata

Release files for intronIC 2.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for intronIC 2.0.9
File Size Uploaded Provenance Actions
intronic-2.0.9.tar.gz 25.4 MB Without provenance Details for intronic-2.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for intronIC 2.0.9
File Interpreter ABI Platform Actions
intronic-2.0.9-py3-none-any.whl Python 3 none any Details for intronic-2.0.9-py3-none-any.whl

Total release size: 50.7 MB

Release files / intronic-2.0.9.tar.gz

Download URL intronic-2.0.9.tar.gz
Size 25.4 MB
Tags Source
SHA-256 checksum
How to use checksums
516b63e67fddaa71ff94597594b613a599ff732fb15c19c675fce0f5411d7e4e
BLAKE2b-256 checksum
How to use checksums
89accaf9a90f135bd4f9d3fc3d15c5883502bba9dbb12efd487967ff246d9bd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / intronic-2.0.9-py3-none-any.whl

Download URL intronic-2.0.9-py3-none-any.whl
Size 25.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
082c5b21a84443fdceee9c2be9018e0cd10d079f5e6011791f4556ba5d8285b7
BLAKE2b-256 checksum
How to use checksums
d15e4744b844167885646ba27a19bb35603b234de7172c5ca8a0f4b9f5533570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for intronIC 2.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page