decodeShortGenomeSeq

Syntax

decodeShortGenomeSeq(X)

Alias: decodeSGS

Arguments

X is an integral scalar/vector.

Details

Decode the DNA sequences which have been encoded with encodeShortGenomeSeg.

Return Value: STRING or STRING VECTOR

Examples

$ a=encodeShortGenomeSeq("TCGATCG")
$ decodeShortGenomeSeq(a)
"TCGATCG"

$ b=encodeShortGenomeSeq("TCGATCG" "TCGATCGCCC")
$ decodeShortGenomeSeq(b)
["TCGATCG","TCGATCGCCC"]

//When the input is empty, an empty string is returned.
$ decodeShortGenomeSeq(int(NULL))
""

//encodeShortGenomeSeq returns NULL as the input exceeds 28 characters after “TCGATCG“ is repeated 5 times. As a result, when decoding it, an empty string is returned.
$ c=encodeShortGenomeSeq(repeat("TCGATCG" "TCGAT", 5))
$ decodeShortGenomeSeq(c)
[,"TCGATTCGATTCGATTCGATTCGAT"]

Related functions: encodeShortGenomeSeq, genShortGenomeSeq