reverse_complement {polyester} | R Documentation |
randomly reverse-complement half of the sequences in a DNAStringSet
reverse_complement(tObj, seed = NULL)
tObj |
DNAStringSet representing sequences. |
seed |
optional seed to set before randomly selecting the sequences to be reverse-complemented. |
DNAStringSet that is the same as tObj
, but with about half
the sequences reverse-complemented.
library(Biostrings) data(srPhiX174) srPhiX174_halfrc = reverse_complement(srPhiX174, seed=174)