reverse_complement {polyester}R Documentation

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

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

[Package polyester version 1.20.0 Index]