rnabioco / valr

Genome Interval Arithmetic in R
http://rnabioco.github.io/valr/
Other
88 stars 25 forks source link

missing start/end columns if spec is passed to bed_merge #288

Closed jayhesselberth closed 7 years ago

jayhesselberth commented 7 years ago
library(valr)

x <- trbl_interval(
  ~chrom, ~start, ~end, ~value,
  "chr1", 100,    200,  100,
  "chr1", 150,    250,  200
)

bed_merge(x, .value = sum(value))
#> # A tibble: 1 x 2
#>   chrom .value
#>   <chr>  <dbl>
#> 1  chr1    300