{"action":"created","issue":{"url":"https://api.github.com/repos/jayhesselberth/valr/issues/51","repository_url":"https://api.github.com/repos/jayhesselberth/valr","labels_url":"https://api.github.com/repos/jayhesselberth/valr/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/jayhesselberth/valr/issues/51/comments","events_url":"https://api.github.com/repos/jayhesselberth/valr/issues/51/events","html_url":"https://github.com/jayhesselberth/valr/issues/51","id":175910190,"number":51,"title":"implement bed_shuffle","user":{"login":"jayhesselberth","id":355367,"avatar_url":"https://avatars.githubusercontent.com/u/355367?v=3","gravatar_id":"","url":"https://api.github.com/users/jayhesselberth","html_url":"https://github.com/jayhesselberth","followers_url":"https://api.github.com/users/jayhesselberth/followers","following_url":"https://api.github.com/users/jayhesselberth/following{/other_user}","gists_url":"https://api.github.com/users/jayhesselberth/gists{/gist_id}","starred_url":"https://api.github.com/users/jayhesselberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayhesselberth/subscriptions","organizations_url":"https://api.github.com/users/jayhesselberth/orgs","repos_url":"https://api.github.com/users/jayhesselberth/repos","events_url":"https://api.github.com/users/jayhesselberth/events{/privacy}","received_events_url":"https://api.github.com/users/jayhesselberth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kriemo","id":13697621,"avatar_url":"https://avatars.githubusercontent.com/u/13697621?v=3","gravatar_id":"","url":"https://api.github.com/users/kriemo","html_url":"https://github.com/kriemo","followers_url":"https://api.github.com/users/kriemo/followers","following_url":"https://api.github.com/users/kriemo/following{/other_user}","gists_url":"https://api.github.com/users/kriemo/gists{/gist_id}","starred_url":"https://api.github.com/users/kriemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriemo/subscriptions","organizations_url":"https://api.github.com/users/kriemo/orgs","repos_url":"https://api.github.com/users/kriemo/repos","events_url":"https://api.github.com/users/kriemo/events{/privacy}","received_events_url":"https://api.github.com/users/kriemo/received_events","type":"User","site_admin":false},"assignees":[{"login":"kriemo","id":13697621,"avatar_url":"https://avatars.githubusercontent.com/u/13697621?v=3","gravatar_id":"","url":"https://api.github.com/users/kriemo","html_url":"https://github.com/kriemo","followers_url":"https://api.github.com/users/kriemo/followers","following_url":"https://api.github.com/users/kriemo/following{/other_user}","gists_url":"https://api.github.com/users/kriemo/gists{/gist_id}","starred_url":"https://api.github.com/users/kriemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriemo/subscriptions","organizations_url":"https://api.github.com/users/kriemo/orgs","repos_url":"https://api.github.com/users/kriemo/repos","events_url":"https://api.github.com/users/kriemo/events{/privacy}","received_events_url":"https://api.github.com/users/kriemo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-09-09T02:11:05Z","updated_at":"2016-09-19T12:22:28Z","closed_at":null,"body":"on the `Rcpp` side. Need interval trees for `-incl` and `-excl`. And look at the recent roulette sampling strategy in bedtools.\r\n\r\nStrategy:\r\n\r\n1. Identify new starts within the `incl` and `excl` bounds. \r\n2. Calculate original sizes from passed intervals and add to the random starts."},"comment":{"url":"https://api.github.com/repos/jayhesselberth/valr/issues/comments/247978436","html_url":"https://github.com/jayhesselberth/valr/issues/51#issuecomment-247978436","issue_url":"https://api.github.com/repos/jayhesselberth/valr/issues/51","id":247978436,"user":{"login":"jayhesselberth","id":355367,"avatar_url":"https://avatars.githubusercontent.com/u/355367?v=3","gravatar_id":"","url":"https://api.github.com/users/jayhesselberth","html_url":"https://github.com/jayhesselberth","followers_url":"https://api.github.com/users/jayhesselberth/followers","following_url":"https://api.github.com/users/jayhesselberth/following{/other_user}","gists_url":"https://api.github.com/users/jayhesselberth/gists{/gist_id}","starred_url":"https://api.github.com/users/jayhesselberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayhesselberth/subscriptions","organizations_url":"https://api.github.com/users/jayhesselberth/orgs","repos_url":"https://api.github.com/users/jayhesselberth/repos","events_url":"https://api.github.com/users/jayhesselberth/events{/privacy}","received_events_url":"https://api.github.com/users/jayhesselberth/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T12:22:28Z","updated_at":"2016-09-19T12:22:28Z","body":"I think selecting an interval index might be the culprit.\r\n\r\nIf you change the type to `auto`:\r\n\r\n```cpp\r\nauto rand_ivl_idx = interval_rng(generator) ;\r\n```\r\n\r\nThen the indexes come out as some kind of float, when they should be `int`s. My guess is that they are internally rounded and sometimes this goes out of bounds."}}
{"actor":{"display_login":"jayhesselberth"}}