Install any skill in seconds. Free to start, no credit card required.
Get Started Free →High-performance toolkit for genomic interval analysis in Rust with Python bindings. Use when working with genomic regions, BED files, coverage tracks, overlap detection, tokenization for ML models, or fragment analysis in computational genomics and machine learning applications.
.claude/skills/lingxling-gtars/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 10% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 73% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 23% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 40% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 56% | 0% |
Gtars is a high-performance Rust toolkit for manipulating, analyzing, and processing genomic interval data. It provides specialized tools for overlap detection, coverage analysis, tokenization for machine learning, and reference sequence management.
Use this skill when working with:
Install gtars Python bindings:
bashuv pip install gtars
Install command-line tools (requires Rust/Cargo):
bash# Install with all features cargo install gtars-cli --features "uniwig overlaprs igd bbcache scoring fragsplit" # Or install specific features only cargo install gtars-cli --features "uniwig overlaprs"
Add to Cargo.toml for Rust projects:
toml[dependencies] gtars = { version = "0.1", features = ["tokenizers", "overlaprs"] }
Gtars is organized into specialized modules, each focused on specific genomic analysis tasks:
Efficiently detect overlaps between genomic intervals using the Integrated Genome Database (IGD) data structure.
When to use:
Quick example:
pythonimport gtars # Build IGD index and query overlaps igd = gtars.igd.build_index("regions.bed") overlaps = igd.query("chr1", 1000, 2000)
See references/overlap.md for comprehensive overlap detection documentation.
Generate coverage tracks from sequencing data with the uniwig module.
When to use:
Quick example:
bash# Generate BigWig coverage track gtars uniwig generate --input fragments.bed --output coverage.bw --format bigwig
See references/coverage.md for detailed coverage analysis workflows.
Convert genomic regions into discrete tokens for machine learning applications, particularly for deep learning models on genomic data.
When to use:
Quick example:
pythonfrom gtars.tokenizers import TreeTokenizer tokenizer = TreeTokenizer.from_bed_file("training_regions.bed") token = tokenizer.tokenize("chr1", 1000, 2000)
See references/tokenizers.md for tokenization documentation.
Handle reference genome sequences and compute digests following the GA4GH refget protocol.
When to use:
Quick example:
python# Load reference and extract sequences store = gtars.RefgetStore.from_fasta("hg38.fa") sequence = store.get_subsequence("chr1", 1000, 2000)
See references/refget.md for reference sequence operations.
Split and analyze fragment files, particularly useful for single-cell genomics data.
When to use:
Quick example:
bash# Split fragments by clusters gtars fragsplit cluster-split --input fragments.tsv --clusters clusters.txt --output-dir ./by_cluster/
See references/cli.md for fragment processing commands.
Score fragment overlaps against reference datasets.
When to use:
Quick example:
bash# Score fragments against reference gtars scoring score --fragments fragments.bed --reference reference.bed --output scores.txt
Identify overlapping genomic features:
pythonimport gtars # Load two region sets peaks = gtars.RegionSet.from_bed("chip_peaks.bed") promoters = gtars.RegionSet.from_bed("promoters.bed") # Find overlaps overlapping_peaks = peaks.filter_overlapping(promoters) # Export results overlapping_peaks.to_bed("peaks_in_promoters.bed")
Generate coverage tracks for visualization:
bash# Step 1: Generate coverage gtars uniwig generate --input atac_fragments.bed --output coverage.wig --resolution 10 # Step 2: Convert to BigWig for genome browsers gtars uniwig generate --input atac_fragments.bed --output coverage.bw --format bigwig
Prepare genomic data for machine learning:
pythonfrom gtars.tokenizers import TreeTokenizer import gtars # Step 1: Load training regions regions = gtars.RegionSet.from_bed("training_peaks.bed") # Step 2: Create tokenizer tokenizer = TreeTokenizer.from_bed_file("training_peaks.bed") # Step 3: Tokenize regions tokens = [tokenizer.tokenize(r.chromosome, r.start, r.end) for r in regions] # Step 4: Use tokens in ML pipeline # (integrate with geniml or custom models)
Use Python API when:
Use CLI when:
Comprehensive module documentation:
references/python-api.md - Complete Python API reference with RegionSet operations, NumPy integration, and data exportreferences/overlap.md - IGD indexing, overlap detection, and set operationsreferences/coverage.md - Coverage track generation with uniwigreferences/tokenizers.md - Genomic tokenization for ML applicationsreferences/refget.md - Reference sequence management and digestsreferences/cli.md - Command-line interface complete referenceGtars serves as the foundation for the geniml Python package, providing core genomic interval operations for machine learning workflows. When working on geniml-related tasks, use gtars for data preprocessing and tokenization.
Gtars works with standard genomic formats:
Enable verbose logging for troubleshooting:
pythonimport gtars # Enable debug logging gtars.set_log_level("DEBUG")
bash# CLI verbose mode gtars --verbose <command>
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-04 | fail→pass | 15,556 | 10,296 | -34% | 1 | 1 | 0% | 2,818 | 3,112 | +10% | 0 | 0 | — |
case-05 | fail→pass | 8,961 | 1,661 | -81% | 1 | 1 | 0% | 1,189 | 2,057 | +73% | 0 | 0 | — |
case-21 | pass→pass | 11,988 | 8,506 | -29% | 1 | 1 | 0% | 2,162 | 3,374 | +56% | 0 | 0 | — |
case-01 | fail→pass | 11,127 | 6,713 | -40% | 1 | 1 | 0% | 2,224 | 2,740 | +23% | 0 | 0 | — |
case-02 | fail→pass | 9,764 | 4,126 | -58% | 1 | 1 | 0% | 1,790 | 2,506 | +40% | 0 | 0 | — |
case-03 | fail→pass | 13,633 | 6,528 | -52% | 1 | 1 | 0% | 1,927 | 3,010 | +56% | 0 | 0 | — |
case-06 | fail→pass | 25,369 | 4,447 | -82% | 1 | 1 | 0% | 4,548 | 2,705 | -41% | 0 | 0 | — |
case-07 | fail→pass | 17,144 | 8,190 | -52% | 1 | 1 | 0% | 3,098 | 2,999 | -3% | 0 | 0 | — |
case-08 | fail→pass | 11,536 | 3,760 | -67% | 1 | 1 | 0% | 1,871 | 2,367 | +27% | 0 | 0 | — |
case-09 | fail→pass | 20,962 | 4,016 | -81% | 1 | 1 | 0% | 2,899 | 2,326 | -20% | 0 | 0 | — |
case-20 | fail→pass | 18,470 | 10,300 | -44% | 1 | 1 | 0% | 3,311 | 3,644 | +10% | 0 | 0 | — |
case-10 | fail→pass | 6,885 | 2,606 | -62% | 1 | 1 | 0% | 944 | 2,029 | +115% | 0 | 0 | — |
case-11 | fail→pass | 14,429 | 2,153 | -85% | 1 | 1 | 0% | 2,748 | 2,108 | -23% | 0 | 0 | — |
case-12 | pass→pass | 4,877 | 1,986 | -59% | 1 | 1 | 0% | 742 | 1,989 | +168% | 0 | 0 | — |
case-13 | fail→pass | 10,165 | 2,899 | -71% | 1 | 1 | 0% | 1,491 | 2,195 | +47% | 0 | 0 | — |
case-18 | fail→pass | 32,192 | 2,345 | -93% | 1 | 1 | 0% | 4,676 | 2,157 | -54% | 0 | 0 | — |
case-14 | pass→pass | 12,021 | 6,369 | -47% | 1 | 1 | 0% | 1,591 | 2,624 | +65% | 0 | 0 | — |
case-15 | fail→pass | 29,126 | 2,414 | -92% | 1 | 1 | 0% | 4,039 | 2,184 | -46% | 0 | 0 | — |
case-16 | fail→pass | 27,867 | 3,755 | -87% | 1 | 1 | 0% | 5,032 | 2,249 | -55% | 0 | 0 | — |
case-17 | pass→pass | 22,605 | 3,517 | -84% | 1 | 1 | 0% | 3,115 | 2,130 | -32% | 0 | 0 | — |
case-19 | fail→pass | 10,648 | 3,414 | -68% | 1 | 1 | 0% | 1,828 | 2,391 | +31% | 0 | 0 | — |
case-22 | pass→pass | 10,954 | 8,612 | -21% | 1 | 1 | 0% | 1,935 | 3,188 | +65% | 0 | 0 | — |
case-23 | pass→pass | 26,299 | 11,098 | -58% | 1 | 1 | 0% | 4,685 | 3,408 | -27% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +74 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.