flip_strands {valr}R Documentation

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

x

ivl_df

See Also

Other utilities: bed12_to_exons(), bed_makewindows(), bound_intervals(), interval_spacing()

Examples

x <- tibble::tribble(
  ~chrom, ~start, ~end, ~strand,
  "chr1", 1,      100,  "+",
  "chr2", 1,      100,  "-"
)

flip_strands(x)


[Package valr version 0.8.1 Index]