Learn R Programming

valr (version 0.5.0)

flip_strands: Flip strands in intervals.

Description

Flips positive (+) stranded intervals to negative (-) strands, and vice-versa. Facilitates comparisons among intervals on opposing strands.

Usage

flip_strands(x)

Arguments

See Also

Other utilities: bed12_to_exons, bed_makewindows, bound_intervals, interval_spacing

Examples

Run this code
# NOT RUN {
x <- trbl_interval(
  ~chrom, ~start, ~end, ~strand,
  'chr1', 1,      100,  '+',
  'chr2', 1,      100,  '-'
)

flip_strands(x)

# }

Run the code above in your browser using DataLab