genShortGenomeSeq#
- swordfish.function.genShortGenomeSeq()#
This function slides a window of fixed size (based on the number of characters) over the input DNA sequence. It encodes the characters in each window and returns an integral vector containing the encoded values. The returned vector has the same length as the number of characters in X.
Note
This function adopts a forward sliding window approach, starting from the first character of the sequence. The sliding window moves by one character at a time. It first takes the current character, then the next character, continuing until window characters are included.
If window exceeds the total length of X, an empty integral vector is returned.