项目 / instadeepai/nucleotide-transformer

instadeepai/nucleotide-transformer

行业推荐
语言 Jupyter Notebook标签 genomicsdeep-learningtransformerdnafoundation-modelstranscriptomicsbiology数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24

一段话介绍

Foundation Models for Genomics & Transcriptomics

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Foundation Models for Genomics & Transcriptomics
943累计星
102Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

生物信息分析与基因数据处理

适配系统:生信分析平台、科研数据平台 · 得分 1.3

提供序列比对、变异检测等流程化分析能力,适合科研与检测机构的数据流水线建设。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
使用该仓库模型需先克隆仓库、建虚拟环境并安装依赖,各模型的具体依赖、权重下载和用法示例见其专属文档页。
特点或设计要点
该模型基于大规模预训练和多样基因组数据构建,融合深度学习最新进展,在基因组任务上达到先进水平,并开放预训练权重与使用示例供研究集成。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-02 · 语言 Jupyter Notebook · 贡献者 —
llm

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 16,431 字节。

<p align="center">
  <img src="imgs/instadeep_logo.png" alt="InstaDeep AI for Genomics Logo" width="200"/>
</p>

<h1 align="center">AI Foundation Models for Genomics</h1>

<p align="center">
  <strong>A hub for InstaDeep's cutting-edge deep learning models and research for genomics, originating from the Nucleotide Transformer and its evolutions.</strong>
</p>

<p align="center">
  <a href="./LICENSE.md"> <img src="https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-blue.svg" alt="License: CC BY-NC-SA 4.0">
  </a>
  <a href="https://docs.python.org/3.8/library/index.html">
    <img src="https://img.shields.io/badge/python-3.11-blue.svg" alt="Python 3.8">
  </a>
  <a href="https://jax.readthedocs.io/en/latest/"> <img src="https://img.shields.io/badge/jax-0.3.25+-informational" alt="Jax 0.3.25+">
  </a>
  <a href="https://huggingface.co/InstaDeepAI"> <img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-InstaDeepAI-orange" alt="Hugging Face Models">
  </a>
</p>

---

## 🎯 Our Focus: Advancing Genomics with AI

Welcome to the InstaDeep AI for Genomics repository! This is where we feature our collection of transformer-based genomic language models and innovative downstream applications. Our work in the genomics space began with **The Nucleotide Transformer**, developed in collaboration with Nvidia and TUM and trained on Cambridge-1, and has expanded to include projects like the **Agro Nucleotide Transformer** (in collaboration with Google, trained on TPU-v4 accelerators), **SegmentNT**, and **ChatNT**.

Our mission is to provide the scientific community with powerful, reproducible, and accessible tools to unlock new insights from biological sequences. This repository serves as the central place for sharing our models, inference code, pre-trained weights, and research contributions in the genomics domain, with explorations into future areas like single-cell transcriptomics.

We are thrilled to open-source these works and provide the community with access to the code and pre-trained weights for our diverse set of genomics language models and segmentation models.

## ✨ Featured Models & Research Evolutions

This section highlights the key models and research directions from our team. Each entry provides a brief overview and links to detailed documentation, publications, and resources. *(Detailed code examples, setup for specific models, and in-depth figures are now located in their respective documentation pages within the `./docs` folder.)*

---

### 🧬 The Nucleotide Transformer v3 (NTv3)

A unified multi-species foundation model that brings representation learning, functional-track prediction, genome annotation and controllable sequence generation into one framework. NTv3 uses a U-Net-like architecture with single-base tokenization to model contexts up to 1 Mb at nucleotide resolution. It is pretrained on 9 trillion base pairs from OpenGenome2, then post-trained on 16,262 functional tracks from 15 animal and plant species, and reaches state-of-the-art accuracy for functional-track prediction and genome annotation across species. It can be fine-tuned into a controllable generative model for designing enhancer sequences at a requested activity level, validated experimentally by STARR-seq.

One 700M-parameter backbone is trained once and then specialised per capability, so each checkpoint inherits what the others learned about sequence rather than starting over.

| Checkpoint | Use it for |
| --- | --- |
| [`NTv3_pretrained`](https://huggingface.co/InstaDeepAI/NTv3_pretrained) | Embeddings, masked-token prediction, and your own fine-tuning |
| [`NTv3_tracks`](https://huggingface.co/InstaDeepAI/NTv3_tracks) | Functional signal: accessibility, histone marks, TF binding, expression, from 16 kb to 1 Mb inputs |
| [`NTv3_tracks_1mb`](https://huggingface.co/InstaDeepAI/NTv3_tracks_1mb) | The same tracks from 1 Mb inputs only: the specialist behind the NTv3 paper's main results |
| [`NTv3_annot_mammals`](https://huggingface.co/InstaDeepAI/NTv3_annot_mammals) / [`_plants`](https://huggingface.co/InstaDeepAI/NTv3_annot_plants) / [`_insects`](https://huggingface.co/InstaDeepAI/NTv3_annot_insects) | Calling genes from sequence alone, one model per clade |

Annotate a genome end to end with NTv3, FASTA --> GFF3:

```bash
pip install "nucleotide-transformer[gpu]"
ntv3-annotate --genome /data/cow/genome.fa --model_cfg mammals --out /data/cow.gff3.gz
```

* **Keywords:** Multi-species Foundation Model, Long-context (1 Mb), Single-base Resolution, Functional-track Prediction, Genome Annotation, Controllable Sequence Generation, U-Net Architecture, Masked Diffusion
* ➡️ **[Model Details & Usage](./docs/nucleotide_transformer_v3.md)**
* 🧬 **[Genome Annotation](./docs/ntv3_genome_annotation.md)**, annotate a genome from FASTA to GFF3 with `ntv3-annotate`
* 🤗 **[NTv3 collection on Hugging Face](https://huggingface.co/collections/InstaDeepAI/ntv3)**
* 📜 **[Paper](https://www.biorxiv.org/content/10.64898/2025.12.22.695963)**

#### NTv3 locus-analysis skill

The NTv3 skill runs NTv3 inside [Claude Code](https://code.claude.com/docs) on a genomic locus you name. You ask in one sentence. The skill asks only for what is missing, shows one plan, and runs nothing until you approve it. The result is one self-contained report page, `results/<run>/ntv3_report.html`, with the predicted tracks in a genome browser.

It answers five asks:

* **Predict**: the tracks you name, at a gene or an exact region, from `NTv3_tracks` at any window up to 1,048,576 bp, on a GPU when there is one (on CPU, 16,384 bp or more is slow and comes with a warning). The model predicts the central 37.5% of the window. A gene is centred on its transcription start site. Only the requested model heads are computed.
* **Saliency**: for each track, the gradient of its mean over the predicted span at each base, centred across A, C, G and T and kept at the reference base.
* **Compare**: one SNV, the tracks for each allele, and how far each moves (alt − ref).
* **Annotate**: a FASTA, or the 1 Mb around a Predict run, with a clade (`mammals`, `plants`, `insects`): the model (`InstaDeepAI/NTv3_annot_<clade>`), decoder (`hmm_constrained` by default), 1,048,576 bp windows with the central 75% kept, and the released filters. After approval it runs `ntv3-annotate`'s pipeline on a GPU (about 25 GB per window) and writes a GFF3 the browser draws, next to the tracks for a locus.
* **Explain**: which model, species, window, crop, bins, and model head produced each number.

Browser lanes are only the ones you name: GENCODE (`knownGene`) and ClinVar (`clinvarMain`) on human, NCBI RefSeq (`ncbiRefSeq`) on mouse, or none. Another UCSC lane, such as ENCODE cCREs, DNase clusters, phastCons, or a histone mark, is added only when you name it. Naming a tissue or an assay adds no lane. Integrated Gradients, SmoothGrad, ISM, design, knockout, and attention are not offered.

Start here: [`ntv3_skills/README.md`](./ntv3_skills/README.md) covers requirements, installation from zero, a first ask, the run outputs, and troubleshooting.


---

### 🧬 The Nucleotide Transformer (NT)

Our foundational language models leverage DNA sequences from over 3,200 diverse human genomes and 850 genomes from a wide range of species. These models provide extremely accurate molecular phenotype prediction compared to existing methods. *This family includes multiple variants (e.g., 500M_human_ref, 2B5_1000G, NT-v2 series) which are detailed further in the specific documentation.*

* **Keywords:** Foundational Model, Genomics, DNA/RNA, Pre-trained, Sequence Embeddings, Phenotype Prediction
* ➡️ **[Model Details, Variants & Usage](./docs/nucleotide_transformer.md)**
* 📜 **[Read the Paper (Nature Methods 2025)](https://www.nature.com/articles/s41592-024-02523-z)**
* 🤗 **[Hugging Face Collection](https://huggingface.co/collections/InstaDeepAI/nucleotide-transformer-65099cdde13ff96230f2e592)**
* 🚀 **Fine-tuning Notebooks (HF): ([LoRA](https://github.com/huggingface/notebooks/blob/main/examples/nucleotide_transformer_dna_sequence_modelling_with_peft.ipynb) and [regular](https://github.com/huggingface/notebooks/blob/main/examples/nucleotide_transformer_dna_sequence_modelling.ipynb))**

---

### 🌾 Agro Nucleotide Transformer (AgroNT)

A novel foundational large language model trained on reference genomes from 48 plant species, with a predominant focus on crop species. AgroNT demonstrates state-of-the-art performance across several prediction tasks ranging from regulatory features, RNA processing, and gene expression in plants.

* **Keywords:** Plant Genomics, Foundational Model, Crop Science, Gene Expression, Agriculture AI
* ➡️ **[Model Details & Usage](./docs/agro_nucleotide_transformer.md)**
* 📜 **[Read the Paper (Communications Biology 2024)](https://www.nature.com/articles/s42003-024-06465-2)**
* 🤗 **[Hugging Face Collection](https://huggingface.co/collections/InstaDeepAI/agro-nucleotide-transformer-65b25c077cd0069ad6f6d344)**

---

### 🧩 SegmentNT (& family: SegmentEnformer, SegmentBorzoi)

Segmentation models using transformer backbones (Nucleotide Transformers, Enformer, Borzoi) for predicting genomic elements at single-nucleotide resolution. SegmentNT, for instance, predicts 14 different classes of human genomic elements in sequences up to 30kb (generalizing to 50kbp) and demonstrates superior performance.

* **Keywords:** Genome Segmentation, Single-Nucleotide Resolution, Genomic Elements, U-Net, Enformer, Borzoi
* ➡️ **[Model Details & Usage](./docs/segment_nt.md)** (Covers SegmentNT, SegmentEnformer, SegmentBorzoi)
* 📜 **[Read the Paper (Nature Methods 2025)](https://www.nature.com/articles/s41592-025-02881-2)**
* 🤗 **[Hugging Face Collection](https://huggingface.co/collections/InstaDeepAI/segmentnt-65eb4941c57808b4a3fe1319)**
* 🚀 **[SegmentNT Inference Notebook (HF)](https://colab.research.google.com/#fileId=https%3A//huggingface.co/InstaDeepAI/segment_nt/blob/main/inference_segment_nt.ipynb)**

---

### 💬 ChatNT

A multimodal conversational agent designed with a deep understanding of DNA biological sequences, enabling interactive exploration and analysis of genomic data through natural language.

* **Keywords:** Conversational AI, Multimodal, DNA Analysis, Genomics Chatbot, Interactive Biology
* ➡️ **[Model Details & Usage](./docs/chat_nt.md)**
* 📜 **[Read the Paper (Nature Machine Intelligence 2025)](https://www.nature.com/articles/s42256-025-01047-1)** 
* 🤗 **[ChatNT on Hugging Face](https://huggingface.co/InstaDeepAI/ChatNT)**
* 🚀 **[ChatNT Inference Notebook (Jax)](./notebooks/chat_nt/inference.ipynb)**

---

### 3️⃣ Codon-NT (Exploring 3-mer Tokenization)

A Nucleotide Transformer model variant trained on 3-mers (codons). This work investigates alternative tokenization strategies for genomic language models and their impact on downstream performance and interpretability.

* **Keywords:** Genomics, Language Model, Codon, Tokenization, 3-mers, Nucleotide Transformer Variant
* ➡️ **[Model Details & Usage](./docs/codon_nt.md)**
* 📜 **[Read the Paper (Bioinformatics 2024)](https://academic.oup.com/bioinformatics/article/40/9/btae529/7745814)**
* 🤗 **[Hugging Face Link](https://huggingface.co/InstaDeepAI/nucleotide-transformer-v2-50m-3mer-multi-species)**

---

### 🧬 Isoformer

A model designed for learning isoform-aware embeddings directly from RNA-seq data, enabling a deeper understanding of transcript-specific expression and regulation.

* **Keywords:** RNA-seq, Transcriptomics, Isoforms, Gene Expression, Embeddings
* ➡️ **[Model Details & Usage](./docs/isoformer.md)**
* 📜 **[Read the Paper (NeurIPS 2024)](https://papers.nips.cc/paper_files/paper/2024/file/8f6b3692297e49e5d5c91ba00281379c-Paper-Conference.pdf)**
* 🤗 **[Hugging Face Link](https://huggingface.co/InstaDeepAI/isoformer)**

---

### 🔬 sCT (single-Cell Transformer)

Our foundational transformer model for single-cell and spatial transcriptomics data. sCT aims to learn rich representations from complex, high-dimensional single-cell datasets to improve various downstream analytical tasks.

* **Keywords:** Single-cell RNA-seq, Spatial Transcriptomics, Foundational Model, Transformer, Gene Expression
* ➡️ **[Model Details & Usage](./docs/sct.md)**
* 📜 **[Read the Paper (OpenReview preprint)](https://openreview.net/forum?id=VdX9tL3VXH)**
* 🤗 **[Hugging Face Link](https://huggingface.co/InstaDeepAI/sCellTransformer)**
* 🚀 **[sCT Inference Notebook (HF)](./notebooks/sct/inference_sCT_pytorch_example.ipynb)**

---

### 🧪 BulkRNABert

BulkRNABert is a transformer-based, encoder-only foundation model designed for bulk RNA-seq data. It learns biologically meaningful representations from large-scale transcriptomic profiles.

* **Keywords:** Bulk RNA-seq, Foundational Model, Transformer, Cancer prognosis
* ➡️ **[Model Details & Usage](./docs/bulk_rna_bert.md)**
* 📜 **[Read the Paper (Machine Learning for Health 2024)](https://proceedings.mlr.press/v259/gelard25a.html)**
* 🤗 **[Hugging Face Link](https://huggingface.co/InstaDeepAI/BulkRNABert)**
* 🚀 **[BulkRNABert Inference Notebook (HF)](notebooks/bulk_rna_bert/inference_bulkrnabert_pytorch_example.ipynb)**

---

### 🔗 MOJO (<u>M</u>ulti-<u>O</u>mics <u>JO</u>int representation)

MOJO is a multimodal model designed learn embeddings of multi-omics data. It integrates bulk RNA-seq and DNA methylation data to generate powerful joint representations tailored for cancer-type classification and survival analysis.

* **Keywords:** Bulk RNA-seq, DNA Methylation, Foundational Model, Transformer, Multimodal, Cancer prognosis
* ➡️ **[Model Details & Usage](./docs/mojo.md)**
* 📜 **[Read the Paper (ICML Workshop on Generative AI and Biology 2025)](https://www.biorxiv.org/content/10.1101/2025.06.25.661237v1)**
* 🤗 **[Hugging Face Link](https://huggingface.co/InstaDeepAI/MOJO)**
* 🚀 **[MOJO Inference Notebook (HF)](./notebooks/mojo/inference_mojo_pytorch_example.ipynb)**

## 💡 Why Choose InstaDeep's Genomic Models?

* **Built on Strong Foundations:** Leveraging large-scale pre-training and diverse genomic datasets.
* **Cutting-Edge Research:** Incorporating the latest advancements in deep learning for biological sequence analysis.
* **High Performance:** Designed and validated to achieve state-of-the-art results on challenging genomic tasks.
* **Open and Accessible:** We provide pre-trained weights, usage examples, and aim for easy integration into research workflows.
* **Collaborative Spirit:** Developed with leading academic and industry partners.
* **Focused Expertise:** Created by a dedicated team specializing in AI for genomics at InstaDeep.

## 🚀 Getting Started

To begin using models from this repository:

1.  **Clone the repository:**
    ```bash
    git clone https://github.com/instadeepai/nucleotide-transformer.git
    cd nucleotide-transformer
    ```
2.  **Set up your environment (virtual environment recommended):**
    ```bash
    python -m venv .venv
    source .venv/bin/activate # On Windows use `source .venv\Scripts\activate`
    ```
3.  **Install the package and dependencies:**
    ```bash
    pip install . # Installs the local package
    # Or, for a general requirements file if you have one:
    # pip install -r requirements.txt 
    ```

For detailed instructions on individual models, including specific dependencies, downloading pre-trained weights, and Python usage examples, please refer to their dedicated documentation pages linked in the "Featured Models & Research Evolutions" section above (e.g., `./docs/nucleotide_transformer.md`).

## ⚖️ Licences

* **Code:** [CC BY-NC-SA 4.0](./LICENSE.md).
* **NTv3 model weights:** the [InstaDeep Open Model Licence](./MODEL-LICENSE.md), for non-commercial use only. You can read it here before requesting access to the gated models on Hugging Face.

## 🤝 Community & Support

* **Questions & Bug Reports:** Please use the [GitHub Issues](https://github.com/instadeepai/nucleotide-transformer/issues) page.
* **Discussions:** For broader discussions or questions, please use the [GitHub Discussions](https://github.com/instadeepai/nucleotide-transformer/discussions) tab (if enabled).
* **Stay Updated:** Follow InstaDeep's official channels for announcements on new model releases and research updates.
↑