{"action":"created","issue":{"url":"https://api.github.com/repos/LTLA/InteractionSet/issues/5","repository_url":"https://api.github.com/repos/LTLA/InteractionSet","labels_url":"https://api.github.com/repos/LTLA/InteractionSet/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/LTLA/InteractionSet/issues/5/comments","events_url":"https://api.github.com/repos/LTLA/InteractionSet/issues/5/events","html_url":"https://github.com/LTLA/InteractionSet/issues/5","id":132505045,"number":5,"title":"findInteractions()","user":{"login":"lawremi","id":158190,"avatar_url":"https://avatars.githubusercontent.com/u/158190?v=3","gravatar_id":"","url":"https://api.github.com/users/lawremi","html_url":"https://github.com/lawremi","followers_url":"https://api.github.com/users/lawremi/followers","following_url":"https://api.github.com/users/lawremi/following{/other_user}","gists_url":"https://api.github.com/users/lawremi/gists{/gist_id}","starred_url":"https://api.github.com/users/lawremi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawremi/subscriptions","organizations_url":"https://api.github.com/users/lawremi/orgs","repos_url":"https://api.github.com/users/lawremi/repos","events_url":"https://api.github.com/users/lawremi/events{/privacy}","received_events_url":"https://api.github.com/users/lawremi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-09T19:11:49Z","updated_at":"2016-02-09T21:00:50Z","closed_at":null,"body":"Is there a convenience function for constructing a GInteractions object from a `findOverlaps()` call? It would be a simple wrapper."},"comment":{"url":"https://api.github.com/repos/LTLA/InteractionSet/issues/comments/182066270","html_url":"https://github.com/LTLA/InteractionSet/issues/5#issuecomment-182066270","issue_url":"https://api.github.com/repos/LTLA/InteractionSet/issues/5","id":182066270,"user":{"login":"lawremi","id":158190,"avatar_url":"https://avatars.githubusercontent.com/u/158190?v=3","gravatar_id":"","url":"https://api.github.com/users/lawremi","html_url":"https://github.com/lawremi","followers_url":"https://api.github.com/users/lawremi/followers","following_url":"https://api.github.com/users/lawremi/following{/other_user}","gists_url":"https://api.github.com/users/lawremi/gists{/gist_id}","starred_url":"https://api.github.com/users/lawremi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawremi/subscriptions","organizations_url":"https://api.github.com/users/lawremi/orgs","repos_url":"https://api.github.com/users/lawremi/repos","events_url":"https://api.github.com/users/lawremi/events{/privacy}","received_events_url":"https://api.github.com/users/lawremi/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T21:00:49Z","updated_at":"2016-02-09T21:00:49Z","body":"There are many use cases GInteractions. We often have people asking, how do I find the intersection for every overlap between these two sets of ranges? I think GInteractions could give a simple syntax. Have `findInteractions()` or `findOverlapPairs()` yield a GInteractions. Then, compute the intersection with `pintersect()`. That gives:\r\n```\r\npintersect(findOverlapInteractions(a, b))\r\n```\r\n\r\nInstead of:\r\n```\r\nhits <- findOverlaps(a, b)\r\npintersect(a[queryHits(hits)], b[queryHits(hits)])\r\n```\r\n\r\n"}}