fromMolType()
fromMolType(string $sMolType, string $sSequence) : \Amelaye\BioPHP\Domain\Sequence\ValueObject\AbstractMolecularSequence
Wraps a raw string according to a molecule type.
A record declared as RNA is not always written with uracil : GenBank and EMBL store their mRNA entries with thymine, following the cDNA convention. When the symbols contradict the declared type, the symbols win, so that a real record can always be wrapped.
Parameters
| string | $sMolType | A raw molecule type, e.g. "DNA", "mRNA", "ss-DNA", "PRT;" |
| string | $sSequence | The raw sequence string |
Throws
- \Amelaye\BioPHP\Domain\Sequence\ValueObject\InvalidSequenceException
When the molecule type is unknown or a symbol is invalid