compDNA()
compDNA(string $sSequence) : string
Returns complement of sequence $sSequence
Parameters
| string | $sSequence |
Throws
- \Exception
Trait SequenceTrait
cleanSequence(string $sSequence, string $sMolType) : bool
Checks that a sequence only holds symbols belonging to the alphabet of its molecule type.
The comparison is case insensitive, so a record read from a GenBank or EMBL file, where the sequence is written in lower case, is not rejected for that reason alone.
| string | $sSequence | The sequence |
| string | $sMolType | DNA, RNA or PROTEIN |
TRUE when every symbol is known, FALSE when one of them is not, and FALSE as well when the molecule type itself cannot be checked