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: a STRING scalar or vector
Examples
a=encodeShortGenomeSeq("TCGATCG")
decodeShortGenomeSeq(a)
// output
"TCGATCG"
b=encodeShortGenomeSeq("TCGATCG" "TCGATCGCCC")
decodeShortGenomeSeq(b)
// output
["TCGATCG","TCGATCGCCC"]
// When the input is empty, an empty string is returned.
decodeShortGenomeSeq(int(NULL))
// output
""
// 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)
// output
[,"TCGATTCGATTCGATTCGATTCGAT"]
Related functions: encodeShortGenomeSeq, genShortGenomeSeq