← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / skills / bioskills / bio-sequence-io-format-conversion / references / usage-guide.md

Format Conversion - Usage Guide

Overview

This skill enables AI agents to help you convert between biological sequence file formats using Biopython, and to re-encode FASTQ quality offsets. The central caution is that conversion is lossy whenever the target format cannot represent the source's information, and Biopython performs the loss silently.

Prerequisites

pip install biopython

Quick Start

Tell your AI agent what you want to do:

Example Prompts

Simple Conversion

"Convert sequence.gb to FASTA format"

Batch Conversion

"Convert all GenBank files in data/ to FASTA"

Lossy-Conversion Check

"I need a FASTA from this GenBank but I want to keep the gene features somewhere too"

FASTQ Encoding

"This FASTQ is Phred+64 from an old Illumina run, convert it to standard Phred+33"

With Modifications

"Convert to FASTA and uppercase all sequences"

What the Agent Will Do

  1. Parse sequences from the input format
  2. Decide whether the target format can hold the source's information, and flag any silent loss
  3. Use SeqIO.convert() for a streaming one-shot, or parse/write when records need modification
  4. Add molecule_type or quality scores when converting up to a richer format
  5. Write sequences in the target format and report the record count

Tips