Expasy logo

Translate

Translate - Programmatic access

Parameters

dna_sequence

Bare nucleotide sequence

output_format

The output format. Only 'fasta' available.

Examples to submit a form with POST

Curl

curl -s -d "dna_sequence=ATCG....AGCTAG&output_format=fasta" https://web.expasy.org/cgi-bin/translate/dna2aa.cgi > my_output.fasta

Perl

#!/usr/bin/perl



use strict;

use LWP::UserAgent;

use warnings;



my $browser  = LWP::UserAgent->new;

my $dna_sequence = 'ATCG....AGCTAG';

my $response = $browser->post(

    'https://web.expasy.org/cgi-bin/translate/dna2aa.cgi',

    [

        'dna_sequence'    => $dna_sequence,  

        'output_format'   => 'fasta'

    ]

);

print ( $response->content );