---name: long-read-sequencing-agent
description: AI-powered analysis of long-read sequencing data (PacBio, ONT) for structural variant detection, isoform discovery, epigenetic modifications, and de novo assembly.
license: MIT
metadata:
author: AI Group
version: "1.0.0"
created: "2026-01-19"
compatibility:
- system: Python 3.10+
allowed-tools:
- run_shell_command
- read_file
- write_file
keywords:
- long-read-sequencing-agent
- automation
- biomedical
measurable_outcome: execute task with >95% success rate.
---"
Long-Read Sequencing Agent
The Long-Read Sequencing Agent provides comprehensive AI-driven analysis of long-read sequencing data from PacBio (HiFi) and Oxford Nanopore (ONT) platforms. It enables structural variant detection, full-length isoform discovery, base modification calling, and de novo genome assembly.
When to Use This Skill
- When detecting structural variants (SVs) missed by short-read sequencing.
- To characterize full-length transcript isoforms and alternative splicing.
- For detecting DNA base modifications (5mC, 6mA) directly from sequencing.
- When performing de novo genome assembly for complex regions.
- To phase variants and generate fully-resolved haplotypes.
Core Capabilities
Structural Variant Detection: AI-enhanced SV calling for deletions, insertions, inversions, translocations, and complex rearrangements.
Isoform Discovery: Full-length transcript sequencing for novel isoform and fusion detection.
Base Modification Calling: Direct detection of DNA methylation (5mC, 5hmC, 6mA) from native sequencing.
Haplotype Phasing: Phase-resolved assemblies and variant calling.
De Novo Assembly: Assemble complex genomic regions (centromeres, telomeres, HLA).
Error Correction: AI-based error correction for long-read data.
Platform Comparison
| Feature |
PacBio HiFi |
ONT (R10+) |
| Read length |
15-25 kb |
>100 kb possible |
| Accuracy |
>99.9% (HiFi) |
>99% (Q20+) |
| Base mods |
5mC, 6mA |
5mC, 5hmC, 6mA, more |
| Throughput |
20-40 Gb/run |
100+ Gb/run |
| Cost |
Higher |
Lower |
Workflow
Input: Long-read FASTQ/BAM files from PacBio or ONT sequencing.
QC & Alignment: Filter reads by quality, align to reference genome.
SV Calling: Detect structural variants using Sniffles, PBSV, or CuteSV.
Isoform Analysis: Identify full-length isoforms with IsoSeq or FLAIR.
Modification Calling: Extract base modifications from signal data.
Phasing: Generate haplotype-resolved variant calls.
Output: SV calls, isoform annotations, modification maps, phased assemblies.
Example Usage
User: "Analyze this PacBio HiFi dataset for structural variants and DNA methylation in a cancer sample."
Agent Action:
python3 Skills/Genomics/Long_Read_Sequencing_Agent/longread_analyzer.py \
--input cancer_hifi.bam \
--platform pacbio_hifi \
--reference GRCh38.fa \
--sv_calling sniffles2 \
--methylation true \
--phasing true \
--output longread_results/
Structural Variant Detection
| Tool |
Platform |
SV Types |
Strengths |
| Sniffles2 |
Both |
All SV types |
Speed, accuracy |
| PBSV |
PacBio |
All SV types |
HiFi optimized |
| CuteSV |
Both |
All SV types |
Sensitivity |
| SAVANA |
Both |
Somatic SVs |
Cancer-specific |
| Jasmine |
Both |
Population SV |
Multi-sample |
SV Size Spectrum:
- Small SVs: 50-500 bp (often missed by short-read)
- Medium SVs: 500 bp - 10 kb
- Large SVs: >10 kb
- Complex SVs: Multi-breakpoint events
Isoform Analysis
Full-Length Transcript Sequencing:
- Capture full gene structures (5' to 3')
- Detect novel exons and splice junctions
- Identify gene fusions
- Quantify isoform expression
Tools:
- IsoSeq3 (PacBio): Clustering and polishing
- FLAIR (Both): Isoform discovery and quantification
- StringTie2 (Both): Guided assembly
- SQANTI3: Isoform classification and QC
Base Modification Detection
| Modification |
Detection |
Biological Role |
| 5mC |
Both platforms |
Gene silencing |
| 5hmC |
ONT primarily |
Active demethylation |
| 6mA |
Both platforms |
Bacterial/mitochondrial |
| BrdU |
ONT |
Replication timing |
Resolution: Single-base, single-molecule, strand-specific
AI/ML Components
Error Correction:
- DeepConsensus (PacBio): Transformer for HiFi calling
- Medaka (ONT): Neural network polishing
- PEPPER-Margin-DeepVariant: AI variant calling
SV Classification:
- Deep learning for complex SV characterization
- ML filters for false positive reduction
- Multi-sample joint calling
Clinical Applications
- Cancer Genomics: Detect SVs driving oncogene activation
- Rare Disease: Resolve variants in complex regions
- Pharmacogenomics: Phase CYP450 star alleles
- HLA Typing: Full-resolution typing for transplant
- Repeat Expansions: Size tandem repeat diseases
Prerequisites
- Python 3.10+
- Sniffles2, PBSV, CuteSV for SV calling
- minimap2/pbmm2 for alignment
- High-memory system (64GB+ recommended)
Related Skills
- Long_Read_SV_Caller - For specialized SV analysis
- Variant_Interpretation - For variant annotation
- Epigenomics_MethylGPT_Agent - For methylation analysis
Output Files
| Output |
Format |
Content |
| SVs |
VCF |
Structural variants |
| Methylation |
BED/bigWig |
Modification calls |
| Isoforms |
GTF |
Transcript annotations |
| Phased |
VCF |
Haplotype-resolved variants |
| Assembly |
FASTA |
Assembled contigs |
Author
AI Group - Biomedical AI Platform
1---2name: long-read-sequencing-agent3description: ---name: long-read-sequencing-agent4---5
6---name: long-read-sequencing-agent
7description: AI-powered analysis of long-read sequencing data (PacBio, ONT) for structural variant detection, isoform discovery, epigenetic modifications, and de novo assembly.
8license: MIT
9metadata:
10 author: AI Group
11 version: "1.0.0"
12 created: "2026-01-19"
13compatibility:
14 - system: Python 3.10+
15allowed-tools:
16 - run_shell_command
17 - read_file
18 - write_file
19
20keywords:
21 - long-read-sequencing-agent
22 - automation
23 - biomedical
24measurable_outcome: execute task with >95% success rate.
25---"
26
27# Long-Read Sequencing Agent
28
29The **Long-Read Sequencing Agent** provides comprehensive AI-driven analysis of long-read sequencing data from PacBio (HiFi) and Oxford Nanopore (ONT) platforms. It enables structural variant detection, full-length isoform discovery, base modification calling, and de novo genome assembly.
30
31## When to Use This Skill
32
33* When detecting structural variants (SVs) missed by short-read sequencing.
34* To characterize full-length transcript isoforms and alternative splicing.
35* For detecting DNA base modifications (5mC, 6mA) directly from sequencing.
36* When performing de novo genome assembly for complex regions.
37* To phase variants and generate fully-resolved haplotypes.
38
39## Core Capabilities
40
411. **Structural Variant Detection**: AI-enhanced SV calling for deletions, insertions, inversions, translocations, and complex rearrangements.
42
432. **Isoform Discovery**: Full-length transcript sequencing for novel isoform and fusion detection.
44
453. **Base Modification Calling**: Direct detection of DNA methylation (5mC, 5hmC, 6mA) from native sequencing.
46
474. **Haplotype Phasing**: Phase-resolved assemblies and variant calling.
48
495. **De Novo Assembly**: Assemble complex genomic regions (centromeres, telomeres, HLA).
50
516. **Error Correction**: AI-based error correction for long-read data.
52
53## Platform Comparison
54
55| Feature | PacBio HiFi | ONT (R10+) |
56|---------|-------------|------------|
57| Read length | 15-25 kb | >100 kb possible |
58| Accuracy | >99.9% (HiFi) | >99% (Q20+) |
59| Base mods | 5mC, 6mA | 5mC, 5hmC, 6mA, more |
60| Throughput | 20-40 Gb/run | 100+ Gb/run |
61| Cost | Higher | Lower |
62
63## Workflow
64
651. **Input**: Long-read FASTQ/BAM files from PacBio or ONT sequencing.
66
672. **QC & Alignment**: Filter reads by quality, align to reference genome.
68
693. **SV Calling**: Detect structural variants using Sniffles, PBSV, or CuteSV.
70
714. **Isoform Analysis**: Identify full-length isoforms with IsoSeq or FLAIR.
72
735. **Modification Calling**: Extract base modifications from signal data.
74
756. **Phasing**: Generate haplotype-resolved variant calls.
76
777. **Output**: SV calls, isoform annotations, modification maps, phased assemblies.
78
79## Example Usage
80
81**User**: "Analyze this PacBio HiFi dataset for structural variants and DNA methylation in a cancer sample."
82
83**Agent Action**:
84```bash
85python3 Skills/Genomics/Long_Read_Sequencing_Agent/longread_analyzer.py \
86 --input cancer_hifi.bam \
87 --platform pacbio_hifi \
88 --reference GRCh38.fa \
89 --sv_calling sniffles2 \
90 --methylation true \
91 --phasing true \
92 --output longread_results/
93```
94
95## Structural Variant Detection
96
97| Tool | Platform | SV Types | Strengths |
98|------|----------|----------|-----------|
99| Sniffles2 | Both | All SV types | Speed, accuracy |
100| PBSV | PacBio | All SV types | HiFi optimized |
101| CuteSV | Both | All SV types | Sensitivity |
102| SAVANA | Both | Somatic SVs | Cancer-specific |
103| Jasmine | Both | Population SV | Multi-sample |
104
105**SV Size Spectrum**:
106- Small SVs: 50-500 bp (often missed by short-read)
107- Medium SVs: 500 bp - 10 kb
108- Large SVs: >10 kb
109- Complex SVs: Multi-breakpoint events
110
111## Isoform Analysis
112
113**Full-Length Transcript Sequencing**:
114- Capture full gene structures (5' to 3')
115- Detect novel exons and splice junctions
116- Identify gene fusions
117- Quantify isoform expression
118
119**Tools**:
120- IsoSeq3 (PacBio): Clustering and polishing
121- FLAIR (Both): Isoform discovery and quantification
122- StringTie2 (Both): Guided assembly
123- SQANTI3: Isoform classification and QC
124
125## Base Modification Detection
126
127| Modification | Detection | Biological Role |
128|--------------|-----------|-----------------|
129| 5mC | Both platforms | Gene silencing |
130| 5hmC | ONT primarily | Active demethylation |
131| 6mA | Both platforms | Bacterial/mitochondrial |
132| BrdU | ONT | Replication timing |
133
134**Resolution**: Single-base, single-molecule, strand-specific
135
136## AI/ML Components
137
138**Error Correction**:
139- DeepConsensus (PacBio): Transformer for HiFi calling
140- Medaka (ONT): Neural network polishing
141- PEPPER-Margin-DeepVariant: AI variant calling
142
143**SV Classification**:
144- Deep learning for complex SV characterization
145- ML filters for false positive reduction
146- Multi-sample joint calling
147
148## Clinical Applications
149
1501. **Cancer Genomics**: Detect SVs driving oncogene activation
1512. **Rare Disease**: Resolve variants in complex regions
1523. **Pharmacogenomics**: Phase CYP450 star alleles
1534. **HLA Typing**: Full-resolution typing for transplant
1545. **Repeat Expansions**: Size tandem repeat diseases
155
156## Prerequisites
157
158* Python 3.10+
159* Sniffles2, PBSV, CuteSV for SV calling
160* minimap2/pbmm2 for alignment
161* High-memory system (64GB+ recommended)
162
163## Related Skills
164
165* Long_Read_SV_Caller - For specialized SV analysis
166* Variant_Interpretation - For variant annotation
167* Epigenomics_MethylGPT_Agent - For methylation analysis
168
169## Output Files
170
171| Output | Format | Content |
172|--------|--------|---------|
173| SVs | VCF | Structural variants |
174| Methylation | BED/bigWig | Modification calls |
175| Isoforms | GTF | Transcript annotations |
176| Phased | VCF | Haplotype-resolved variants |
177| Assembly | FASTA | Assembled contigs |
178
179## Author
180
181AI Group - Biomedical AI Platform