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)

alyssafrazee/polyester documentation built on Sept. 17, 2021, 8:54 a.m.