encodeShortGenomeSeq#
- swordfish.function.encodeShortGenomeSeq()#
Encode DNA sequences made up of A, T, C, G letters. The encoding can reduce the storage space needed for DNA sequences and improve performance.
Note
When X is an empty string (“”), the function returns 0.
When X contains any character other than A, T, C, G (case-sensitive), the function returns NULL.
When the length of X exceeds 28 characters, the function returns NULL.