Documentation

TranslatesUnderGeneticCode

Shared by the services that read codons (ORF search, CAI, codon optimization) : the standard code (table 1) goes through SequenceInterface::translateCodon(), as they always did, and any other NCBI table through AlternateGeneticCodeTranslator. The class using it holds the SequenceInterface in $this->sequenceManager.

Table of Contents

Properties

$geneticCodeTranslator  : AlternateGeneticCodeTranslator|null

Methods

assertSupportedGeneticCode()  : void
translateUnder()  : string

Properties

Methods

assertSupportedGeneticCode()

private assertSupportedGeneticCode(int $iGeneticCode) : void
Parameters
$iGeneticCode : int

An NCBI table id (see GeneticCodeTable::SUPPORTED_TABLES)

Tags
throws
InvalidArgumentException

When the table is not supported

translateUnder()

private translateUnder(string $sCodon, int $iGeneticCode) : string
Parameters
$sCodon : string
$iGeneticCode : int
Return values
string —

The amino acid, "*" for a stop, "X" for an ambiguous codon

On this page

Search results