ALPHABET
ALPHABET = ""
Symbols accepted by the value object, overridden by each concrete class.
Accepts the four deoxyribonucleotides and the IUPAC degenerated symbols already tolerated by SequenceTrait::cleanSequence().
Class DnaSequence
__construct(string $sSequence) : mixed
AbstractMolecularSequence constructor.
Whitespace is stripped and the remaining symbols are upper-cased before validation, so raw lines coming from a GenBank, EMBL or FASTA file can be wrapped as they are read.
| string | $sSequence | The raw sequence string |
When a symbol does not belong to the alphabet
subSequence(int $iStart, int|null $iLength = null) : static
Extracts a portion of the sequence, keeping the same kind of value object.
| int | $iStart | Zero-based position of the first symbol |
| int|null | $iLength | Number of symbols, until the end when omitted |