Learn R Programming

polyester (version 1.8.3)

reverse_complement: reverse-complement some fragments

Description

randomly reverse-complement half of the sequences in a DNAStringSet

Usage

reverse_complement(tObj, seed = NULL)

Arguments

tObj
DNAStringSet representing sequences.
seed
optional seed to set before randomly selecting the sequences to be reverse-complemented.

Value

DNAStringSet that is the same as tObj, but with about half the sequences reverse-complemented.

Examples

Run this code
library(Biostrings)
  data(srPhiX174)
  srPhiX174_halfrc = reverse_complement(srPhiX174, seed=174)

Run the code above in your browser using DataLab