reverse_complement: reverse-complement some fragments

Description Usage Arguments Value Examples

View source: R/reverse_complement.R

Description

randomly reverse-complement half of the sequences in a DNAStringSet

Usage

1
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

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

polyester documentation built on Nov. 8, 2020, 8:09 p.m.