본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트33k · #8963

gtars

하는 일

이 스킬은 에이전트에게 Rust로 만들어지고 Python 바인딩을 갖춘 고성능 유전체 도구 모음 gtars를 제공합니다. 큰 구간 파일을 다루는 계산 유전체학 연구자와 데이터 엔지니어를 위한 스킬입니다.

사용하는 경우

  • ✓두 BED 파일 사이에서 어떤 유전체 영역이 겹치는지 찾아야 할 때.
  • ✓WIG나 BigWig 파일 같은 커버리지 트랙을 만들고 싶을 때.
  • ✓머신러닝 모델을 위해 유전체 영역을 토큰화해야 할 때.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/scientific/gtars/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/scientific/gtars/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“피크 파일의 영역 중 제 유전자 주석 BED 파일의 영역과 겹치는 것을 찾아 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 gtars로 유전체 구간을 색인하고 빠르게 비교합니다. 요청하신 겹침, 커버리지 값 또는 토큰을 돌려줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Gtars: Genomic Tools and Algorithms in Rust

Overview

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:

  • Genomic interval files (BED format)
  • Overlap detection between genomic regions
  • Coverage track generation (WIG, BigWig)
  • Genomic ML preprocessing and tokenization
  • Fragment analysis in single-cell genomics
  • Reference sequence retrieval and validation

Installation

Python Installation

Install gtars Python bindings:

uv uv pip install gtars

CLI Installation

Install command-line tools (requires Rust/Cargo):

# 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"

Rust Library

Add to Cargo.toml for Rust projects:

[dependencies]
gtars = { version = "0.1", features = ["tokenizers", "overlaprs"] }

Core Capabilities

Gtars is organized into specialized modules, each focused on specific genomic analysis tasks:

1. Overlap Detection and IGD Indexing

Efficiently detect overlaps between genomic intervals using the Integrated Genome Database (IGD) data structure.

When to use:

  • Finding overlapping regulatory elements
  • Variant annotation
  • Comparing ChIP-seq peaks
  • Identifying shared genomic features

Quick example:

import 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.

2. Coverage Track Generation

Generate coverage tracks from sequencing data with the uniwig module.

When to use:

  • ATAC-seq accessibility profiles
  • ChIP-seq coverage visualization
  • RNA-seq read coverage
  • Differential coverage analysis

Quick example:

# Generate BigWig coverage track
gtars uniwig generate --input fragments.bed --output coverage.bw --format bigwig

See references/coverage.md for detailed coverage analysis workflows.

3. Genomic Tokenization

Convert genomic regions into discrete tokens for machine learning applications, particularly for deep learning models on genomic data.

When to use:

  • Preprocessing for genomic ML models
  • Integration with geniml library
  • Creating position encodings
  • Training transformer models on genomic sequences

Quick example:

from 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.

4. Reference Sequence Management

Handle reference genome sequences and compute digests following the GA4GH refget protocol.

When to use:

  • Validating reference genome integrity
  • Extracting specific genomic sequences
  • Computing sequence digests
  • Cross-reference comparisons

Quick example:

# 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.

5. Fragment Processing

Split and analyze fragment files, particularly useful for single-cell genomics data.

When to use:

  • Processing single-cell ATAC-seq data
  • Splitting fragments by cell barcodes
  • Cluster-based fragment analysis
  • Fragment quality control

Quick example:

# 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.

6. Fragment Scoring

Score fragment overlaps against reference datasets.

When to use:

  • Evaluating fragment enrichment
  • Comparing experimental data to references
  • Quality metrics computation
  • Batch scoring across samples

Quick example:

# Score fragments against reference
gtars scoring score --fragments fragments.bed --reference reference.bed --output scores.txt

Common Workflows

Workflow 1: Peak Overlap Analysis

Identify overlapping genomic features:

import gtars

# Load two region sets
peaks = gtars.RegionSet.from_bed("chip_peaks.bed")
promoters
자주 묻는 질문

사용하려면 Rust가 필요한가요?

Python 버전은 필요하지 않습니다. 스킬은 uv로 Python 패키지를 설치하는 방법을 설명하며, CLI 옵션은 Rust와 Cargo가 필요합니다.

어떤 파일 형식을 다루나요?

스킬은 BED 파일과 WIG, BigWig 같은 커버리지 형식을 언급합니다.

단일세포 연구에도 쓰이나요?

네. 스킬은 단일세포 유전체학에서의 단편 분석을 언급합니다.

상세 정보

작성자의 원본 설명

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.

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8963
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬