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.

备注

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.

参数:

X (Constant) -- A scalar/vector of STRING/CHAR type.

返回:

A LONG or FAST LONG vector

返回类型:

Constant