We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The bed_intersect call in bed_map yields new columns with .y suffixes, causing surprising behavior:
bed_intersect
bed_map
.y
bed_tbl <- tibble::frame_data( ~chrom, ~start, ~end, "chr1", 100, 250, "chr2", 250, 500) signal_tbl <- tibble::frame_data( ~chrom, ~start, ~end, ~value, "chr1", 100, 250, 10, "chr1", 150, 250, 20, "chr2", 250, 500, 500) bed_map(bed_tbl, signal_tbl, sum = sum(value)) #> Error: object 'value' not found bed_map(bed_tbl, signal_tbl, sum = sum(value.y)) #> Source: local data frame [2 x 4] #> #> chrom start end sum #> <chr> <dbl> <dbl> <dbl> #> 1 chr1 100 250 30 #> 2 chr2 250 500 500
The way around is to enable passing of suffix values to bed_intersect:
bed_intersect(x, y, suffix.y = '')
The text was updated successfully, but these errors were encountered:
respect bed_map ops by passing suffix_y to bed_intersect (#14)
a112df7
jayhesselberth
No branches or pull requests
The
bed_intersect
call inbed_map
yields new columns with.y
suffixes, causing surprising behavior:The way around is to enable passing of suffix values to
bed_intersect
:The text was updated successfully, but these errors were encountered: