Skip to main content

Translate RNA

Translate mRNA to protein sequence.

Endpoint

POST /api/genetics/rna/translate

Request Body

{
"sequence": "AUGCGAUCGAUCGAUC"
}

Response

{
"mrna": "AUGCGAUCGAUCGAUC",
"codons": ["AUG", "CGA", "UCG", "AUC", "GAU", "C"],
"protein": "Met-Arg-Ser-Ile-Asp",
"amino_acids": ["M", "R", "S", "I", "D"],
"length": 5,
"stop_codon": false
}

Example

curl -X POST http://localhost:8000/api/genetics/rna/translate \
-H "Content-Type: application/json" \
-d '{"sequence": "AUGCGAUCGAUCGAUC"}'

Notes

  • Translation starts from position 0
  • Incomplete codons are ignored
  • Stop codons (UAA, UAG, UGA) terminate translation