Command Palette

Search for a command to run...

Назад к скиллам
скилл № 82659

bio-genome-annotation-annotation-transfer

Transfer gene annotations between genome assemblies using Liftoff for same-species annotation liftover and MiniProt for cross-species protein-to-genome…

БесплатноЗапускает вложенные скрипты
BioTender-maxот BioTender-max★ 235 звёзд на GitHub

Установить bio-genome-annotation-annotation-transfer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Version Compatibility

Reference examples tested with: BioPython 1.83+, pandas 2.2+

Before using code patterns, verify installed versions match. If versions differ:

  • Python: pip show <package> then help(module.function) to check signatures
  • CLI: <tool> --version then <tool> --help to confirm flags

If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.

Annotation Transfer

"Transfer annotations from a reference to my new assembly" → Map gene models from a well-annotated reference genome onto a new assembly using coordinate liftover or protein-to-genome alignment.

  • CLI: liftoff -g reference.gff -o target.gff ref.fa target.fa (same species), miniprot ref.mpi target.fa (cross-species)

Transfer gene annotations from a reference genome to a new assembly (same species with Liftoff) or across species (with MiniProt protein-to-genome alignment). Faster and more consistent than de novo prediction when a high-quality reference annotation exists.

Liftoff (Same-Species Transfer)

Liftoff maps annotations from a reference genome to a target assembly using Minimap2 alignments. Ideal for transferring annotations between different assemblies of the same species.

Basic Usage

# Transfer annotations from reference to target
liftoff \
    -g reference_annotation.gff3 \
    -o lifted_annotation.gff3 \
    -u unmapped_features.txt \
    -dir liftoff_intermediates \
    -p 16 \
    target_assembly.fasta \
    reference_genome.fasta

Key Options

Option Description
-g Reference annotation (GFF3 or GTF)
-o Output annotation file
-u File listing unmapped features
-dir Directory for intermediate files
-p CPU threads
-sc Coverage threshold (default: 0.5; fraction of ref feature aligned)
-s Sequence identity threshold (default: 0.5)
-a Alignment coverage cutoff (default: 0.5)
-copies Look for extra gene copies in target
-exclude_partial Exclude partially mapped genes
-chroms Chromosome name mapping file (tab-separated: ref\ttarget)

Strict Parameters for High-Quality Transfer

# Stricter thresholds for closely related assemblies
# sc 0.95: 95% of reference feature must align
# s 0.90: 90% sequence identity required
liftoff \
    -g reference.gff3 \
    -o lifted.gff3 \
    -u unmapped.txt \
    -dir liftoff_tmp \
    -sc 0.95 \
    -s 0.90 \
    -exclude_partial \
    -p 16 \
    target.fasta \
    reference.fasta

With Chromosome Name Mapping

# Create chromosome mapping file (tab-separated)
# ref_chr1    target_scaffold_1
# ref_chr2    target_scaffold_2
liftoff \
    -g reference.gff3 \
    -o lifted.gff3 \
    -chroms chrom_map.txt \
    -p 16 \
    target.fasta \
    reference.fasta

Output

The output GFF3 contains transferred annotations with additional attributes:

Attribute Description
coverage Fraction of reference feature aligned
sequence_ID Sequence identity of alignment
extra_copy_number Copy number if -copies used
valid_ORF Whether transferred CDS has valid ORF

LiftOn (Newer Successor)

LiftOn improves on Liftoff by combining Liftoff liftover with MiniProt protein alignment to correct gene models that do not transfer cleanly.

# LiftOn combines Liftoff + MiniProt
lifton \
    -g reference.gff3 \
    -o lifton_annotation.gff3 \
    -ref reference.fasta \
    -p 16 \
    target.fasta

MiniProt (Cross-Species Protein Alignment)

MiniProt aligns protein sequences to a genome with splicing awareness. Ideal for cross-species annotation transfer using proteins from related species.

Basic Usage

# Index target genome
miniprot -t 16 -d target.mpi target_assembly.fasta

# Align proteins to genome
miniprot -t 16 --gff target.mpi reference_proteins.faa > miniprot_alignments.gff

Key Options

Option Description
-t CPU threads
-d Build index database
--gff Output in GFF3 format
--gtf Output in GTF format
-G Max intron size (default: 200000)
-S Output alignment score
--outs Output secondary alignments (for paralogs)
-C Min alignment coverage (0-1; default: 0.5)
-k K-mer size for indexing

Cross-Species Transfer

# Use proteins from closely related species
# -G: Adjust max intron size based on target species
# Vertebrates: -G 500000; Insects: -G 50000; Fungi: -G 5000
miniprot -t 16 --gff -G 500000 target.mpi related_species_proteins.faa > cross_species.gff

Convert MiniProt GFF to Gene Models

import gffutils

def miniprot_gff_to_gene_models(miniprot_gff, output_gff):
    '''Convert MiniProt alignment GFF to standard gene models.

    MiniProt outputs mRNA features with CDS children.
    This add
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • examples/compare_annotations.py
  • examples/liftoff_transfer.sh
  • examples/miniprot_crossspecies.sh
  • usage-guide.md

FAQ

Что делает скилл bio-genome-annotation-annotation-transfer?

Transfer gene annotations between genome assemblies using Liftoff for same-species annotation liftover and MiniProt for cross-species protein-to-genome alignment. Enables rapid annotation of new assemblies using existing reference annotations. Use when annotating a new assembly of a species with an existing reference annotation or mapping annotations across related species.

Как установить скилл bio-genome-annotation-annotation-transfer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bio-genome-annotation-annotation-transfer запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить bio-genome-annotation-annotation-transfer с