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 intersection (len_i) should also be grouped.
len_i
library(valr) library(tidyverse) #> Loading tidyverse: ggplot2 #> Loading tidyverse: tibble #> Loading tidyverse: tidyr #> Loading tidyverse: readr #> Loading tidyverse: purrr #> Loading tidyverse: dplyr #> Conflicts with tidy packages ---------------------------------------------- #> filter(): dplyr, stats #> lag(): dplyr, stats seed <- 1010486 genome <- read_genome(valr_example('genome.txt.gz')) x <- bed_random(genome, seed = seed) y <- bed_random(genome, seed = seed) bed_jaccard(group_by(x, chrom), group_by(y, chrom)) #> # A tibble: 1 × 4 #> len_i len_u jaccard n #> <dbl> <list> <list> <dbl> #> 1 856392888 <dbl [93]> <dbl [93]> 727101
The text was updated successfully, but these errors were encountered:
replace dplyr summarise() with base r sum() to calculate union
a438b8d
Closes rnabioco#216.
bed_jaccard() now works on grouped dfs
7508ce9
- throws an error if inputs are not sorted on the same column Closes: rnabioco#216
calculate jaccard for grouped inputs
ddc93c1
- fixes #216, closes #260
calculate jaccard for grouped inputs (#293)
13114b4
* calculate jaccard for grouped inputs - fixes #216, closes #260 * qualify group_by in example and update globals
Successfully merging a pull request may close this issue.
The intersection (
len_i
) should also be grouped.The text was updated successfully, but these errors were encountered: