Files & formats

Sequence Format Converter

Convert between FASTA and GenBank (whole sequence, CDS or protein), or export to TSV.

post/sequence_format_convert

Request

  • Base URL: https://seqbench.com/api/v1
  • URL: https://seqbench.com/api/v1/sequence_format_convert
  • Auth: none required

Request body

inputstring required

A FASTA or GenBank record to convert.

from'auto' | 'fasta' | 'genbank'

Input format; 'auto' sniffs it from the first meaningful line.

to'fasta' | 'fasta-cds' | 'fasta-protein' | 'genbank' | 'tsv' | 'snapgene'

Output format. fasta-cds / fasta-protein extract CDS features (GenBank input only). GenBank in and 'genbank' out rewrites the record with its features, qualifiers and topology intact — it is a rewrite, not a re-annotation. 'snapgene' writes a binary SnapGene .dna file, returned base64 in fileBase64 rather than in output; it takes ONE record, because a .dna holds one molecule.

Response

Tool ran successfully.

okunknown required
toolstring required

The tool slug that ran.

resultobject required

Tool-specific output object. Its shape depends on the tool — call GET /{tool} or see the docs for each tool's fields.

Example response

{
  "provenance": {
    "apiVersion": "1.1.0"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.