{"action":"created","comment":{"url":"https://api.github.com/repos/broadinstitute/hail/pulls/comments/67419069","id":67419069,"diff_hunk":"@@ -86,6 +87,27 @@ object Pedigree {\n   // plink only prints # of kids under CHLD, but the list of kids may be useful, currently not used anywhere else\n   def nuclearFams(completeTrios: Array[CompleteTrio]): Map[(String, String), Array[String]] =\n     completeTrios.groupBy(t => (t.dad, t.mom)).mapValues(_.map(_.kid)).force\n+\n+  def gen(sampleIds: IndexedSeq[String]): Gen[Pedigree] = {\n+    Gen.shuffle(sampleIds)\n+      .map { is =>\n+        val groups = is.grouped(3)\n+        val trios = groups.map { g =>\n+          val (kid, mom, dad) = (g(0),\n+            if (g.length >= 2) Some(g(1)) else None,\n+            if (g.length >= 3) Some(g(2)) else None)\n+          Trio(kid, fam = None, mom = mom, dad = dad, sex = None, pheno = None)","path":"src/main/scala/org/broadinstitute/hail/methods/Pedigree.scala","position":21,"original_position":21,"commit_id":"c43487e447789d9be72520a4c91a45767b6da1d3","original_commit_id":"c43487e447789d9be72520a4c91a45767b6da1d3","user":{"login":"cseed","id":1244990,"avatar_url":"https://avatars.githubusercontent.com/u/1244990?v=3","gravatar_id":"","url":"https://api.github.com/users/cseed","html_url":"https://github.com/cseed","followers_url":"https://api.github.com/users/cseed/followers","following_url":"https://api.github.com/users/cseed/following{/other_user}","gists_url":"https://api.github.com/users/cseed/gists{/gist_id}","starred_url":"https://api.github.com/users/cseed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cseed/subscriptions","organizations_url":"https://api.github.com/users/cseed/orgs","repos_url":"https://api.github.com/users/cseed/repos","events_url":"https://api.github.com/users/cseed/events{/privacy}","received_events_url":"https://api.github.com/users/cseed/received_events","type":"User","site_admin":false},"body":"Make this more random: don't include all samples in the pedigree (50%?) and make some parents missing (20%?)\r\n","created_at":"2016-06-16T20:34:46Z","updated_at":"2016-06-16T20:34:46Z","html_url":"https://github.com/broadinstitute/hail/pull/401#discussion_r67419069","pull_request_url":"https://api.github.com/repos/broadinstitute/hail/pulls/401","_links":{"self":{"href":"https://api.github.com/repos/broadinstitute/hail/pulls/comments/67419069"},"html":{"href":"https://github.com/broadinstitute/hail/pull/401#discussion_r67419069"},"pull_request":{"href":"https://api.github.com/repos/broadinstitute/hail/pulls/401"}}},"pull_request":{"url":"https://api.github.com/repos/broadinstitute/hail/pulls/401","id":71091551,"html_url":"https://github.com/broadinstitute/hail/pull/401","diff_url":"https://github.com/broadinstitute/hail/pull/401.diff","patch_url":"https://github.com/broadinstitute/hail/pull/401.patch","issue_url":"https://api.github.com/repos/broadinstitute/hail/issues/401","number":401,"state":"open","locked":false,"title":"Tp realistic gen","user":{"login":"tpoterba","id":10562794,"avatar_url":"https://avatars.githubusercontent.com/u/10562794?v=3","gravatar_id":"","url":"https://api.github.com/users/tpoterba","html_url":"https://github.com/tpoterba","followers_url":"https://api.github.com/users/tpoterba/followers","following_url":"https://api.github.com/users/tpoterba/following{/other_user}","gists_url":"https://api.github.com/users/tpoterba/gists{/gist_id}","starred_url":"https://api.github.com/users/tpoterba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpoterba/subscriptions","organizations_url":"https://api.github.com/users/tpoterba/orgs","repos_url":"https://api.github.com/users/tpoterba/repos","events_url":"https://api.github.com/users/tpoterba/events{/privacy}","received_events_url":"https://api.github.com/users/tpoterba/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-23T17:53:27Z","updated_at":"2016-06-16T20:34:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab0511507c14fbfa9700b7e031edfb456d39e7cf","assignee":{"login":"cseed","id":1244990,"avatar_url":"https://avatars.githubusercontent.com/u/1244990?v=3","gravatar_id":"","url":"https://api.github.com/users/cseed","html_url":"https://github.com/cseed","followers_url":"https://api.github.com/users/cseed/followers","following_url":"https://api.github.com/users/cseed/following{/other_user}","gists_url":"https://api.github.com/users/cseed/gists{/gist_id}","starred_url":"https://api.github.com/users/cseed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cseed/subscriptions","organizations_url":"https://api.github.com/users/cseed/orgs","repos_url":"https://api.github.com/users/cseed/repos","events_url":"https://api.github.com/users/cseed/events{/privacy}","received_events_url":"https://api.github.com/users/cseed/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/broadinstitute/hail/pulls/401/commits","review_comments_url":"https://api.github.com/repos/broadinstitute/hail/pulls/401/comments","review_comment_url":"https://api.github.com/repos/broadinstitute/hail/pulls/comments{/number}","comments_url":"https://api.github.com/repos/broadinstitute/hail/issues/401/comments","statuses_url":"https://api.github.com/repos/broadinstitute/hail/statuses/c43487e447789d9be72520a4c91a45767b6da1d3","head":{"label":"broadinstitute:tp_realistic_gen","ref":"tp_realistic_gen","sha":"c43487e447789d9be72520a4c91a45767b6da1d3","user":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"repo":{"id":45069467,"name":"hail","full_name":"broadinstitute/hail","owner":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/broadinstitute/hail","description":"Hail, a framework for scalable genetic data analysis","fork":false,"url":"https://api.github.com/repos/broadinstitute/hail","forks_url":"https://api.github.com/repos/broadinstitute/hail/forks","keys_url":"https://api.github.com/repos/broadinstitute/hail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadinstitute/hail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadinstitute/hail/teams","hooks_url":"https://api.github.com/repos/broadinstitute/hail/hooks","issue_events_url":"https://api.github.com/repos/broadinstitute/hail/issues/events{/number}","events_url":"https://api.github.com/repos/broadinstitute/hail/events","assignees_url":"https://api.github.com/repos/broadinstitute/hail/assignees{/user}","branches_url":"https://api.github.com/repos/broadinstitute/hail/branches{/branch}","tags_url":"https://api.github.com/repos/broadinstitute/hail/tags","blobs_url":"https://api.github.com/repos/broadinstitute/hail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadinstitute/hail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadinstitute/hail/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadinstitute/hail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadinstitute/hail/statuses/{sha}","languages_url":"https://api.github.com/repos/broadinstitute/hail/languages","stargazers_url":"https://api.github.com/repos/broadinstitute/hail/stargazers","contributors_url":"https://api.github.com/repos/broadinstitute/hail/contributors","subscribers_url":"https://api.github.com/repos/broadinstitute/hail/subscribers","subscription_url":"https://api.github.com/repos/broadinstitute/hail/subscription","commits_url":"https://api.github.com/repos/broadinstitute/hail/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadinstitute/hail/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadinstitute/hail/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadinstitute/hail/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadinstitute/hail/contents/{+path}","compare_url":"https://api.github.com/repos/broadinstitute/hail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadinstitute/hail/merges","archive_url":"https://api.github.com/repos/broadinstitute/hail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadinstitute/hail/downloads","issues_url":"https://api.github.com/repos/broadinstitute/hail/issues{/number}","pulls_url":"https://api.github.com/repos/broadinstitute/hail/pulls{/number}","milestones_url":"https://api.github.com/repos/broadinstitute/hail/milestones{/number}","notifications_url":"https://api.github.com/repos/broadinstitute/hail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadinstitute/hail/labels{/name}","releases_url":"https://api.github.com/repos/broadinstitute/hail/releases{/id}","deployments_url":"https://api.github.com/repos/broadinstitute/hail/deployments","created_at":"2015-10-27T20:55:42Z","updated_at":"2016-06-14T17:59:56Z","pushed_at":"2016-06-16T20:33:16Z","git_url":"git://github.com/broadinstitute/hail.git","ssh_url":"git@github.com:broadinstitute/hail.git","clone_url":"https://github.com/broadinstitute/hail.git","svn_url":"https://github.com/broadinstitute/hail","homepage":"","size":10671,"stargazers_count":5,"watchers_count":5,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":177,"forks":3,"open_issues":177,"watchers":5,"default_branch":"master"}},"base":{"label":"broadinstitute:master","ref":"master","sha":"d0389b70373ba56d0e72e0f5522b6736452f4372","user":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"repo":{"id":45069467,"name":"hail","full_name":"broadinstitute/hail","owner":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars.githubusercontent.com/u/393552?v=3","gravatar_id":"","url":"https://api.github.com/users/broadinstitute","html_url":"https://github.com/broadinstitute","followers_url":"https://api.github.com/users/broadinstitute/followers","following_url":"https://api.github.com/users/broadinstitute/following{/other_user}","gists_url":"https://api.github.com/users/broadinstitute/gists{/gist_id}","starred_url":"https://api.github.com/users/broadinstitute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broadinstitute/subscriptions","organizations_url":"https://api.github.com/users/broadinstitute/orgs","repos_url":"https://api.github.com/users/broadinstitute/repos","events_url":"https://api.github.com/users/broadinstitute/events{/privacy}","received_events_url":"https://api.github.com/users/broadinstitute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/broadinstitute/hail","description":"Hail, a framework for scalable genetic data analysis","fork":false,"url":"https://api.github.com/repos/broadinstitute/hail","forks_url":"https://api.github.com/repos/broadinstitute/hail/forks","keys_url":"https://api.github.com/repos/broadinstitute/hail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadinstitute/hail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadinstitute/hail/teams","hooks_url":"https://api.github.com/repos/broadinstitute/hail/hooks","issue_events_url":"https://api.github.com/repos/broadinstitute/hail/issues/events{/number}","events_url":"https://api.github.com/repos/broadinstitute/hail/events","assignees_url":"https://api.github.com/repos/broadinstitute/hail/assignees{/user}","branches_url":"https://api.github.com/repos/broadinstitute/hail/branches{/branch}","tags_url":"https://api.github.com/repos/broadinstitute/hail/tags","blobs_url":"https://api.github.com/repos/broadinstitute/hail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadinstitute/hail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadinstitute/hail/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadinstitute/hail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadinstitute/hail/statuses/{sha}","languages_url":"https://api.github.com/repos/broadinstitute/hail/languages","stargazers_url":"https://api.github.com/repos/broadinstitute/hail/stargazers","contributors_url":"https://api.github.com/repos/broadinstitute/hail/contributors","subscribers_url":"https://api.github.com/repos/broadinstitute/hail/subscribers","subscription_url":"https://api.github.com/repos/broadinstitute/hail/subscription","commits_url":"https://api.github.com/repos/broadinstitute/hail/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadinstitute/hail/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadinstitute/hail/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadinstitute/hail/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadinstitute/hail/contents/{+path}","compare_url":"https://api.github.com/repos/broadinstitute/hail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadinstitute/hail/merges","archive_url":"https://api.github.com/repos/broadinstitute/hail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadinstitute/hail/downloads","issues_url":"https://api.github.com/repos/broadinstitute/hail/issues{/number}","pulls_url":"https://api.github.com/repos/broadinstitute/hail/pulls{/number}","milestones_url":"https://api.github.com/repos/broadinstitute/hail/milestones{/number}","notifications_url":"https://api.github.com/repos/broadinstitute/hail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadinstitute/hail/labels{/name}","releases_url":"https://api.github.com/repos/broadinstitute/hail/releases{/id}","deployments_url":"https://api.github.com/repos/broadinstitute/hail/deployments","created_at":"2015-10-27T20:55:42Z","updated_at":"2016-06-14T17:59:56Z","pushed_at":"2016-06-16T20:33:16Z","git_url":"git://github.com/broadinstitute/hail.git","ssh_url":"git@github.com:broadinstitute/hail.git","clone_url":"https://github.com/broadinstitute/hail.git","svn_url":"https://github.com/broadinstitute/hail","homepage":"","size":10671,"stargazers_count":5,"watchers_count":5,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":177,"forks":3,"open_issues":177,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/broadinstitute/hail/pulls/401"},"html":{"href":"https://github.com/broadinstitute/hail/pull/401"},"issue":{"href":"https://api.github.com/repos/broadinstitute/hail/issues/401"},"comments":{"href":"https://api.github.com/repos/broadinstitute/hail/issues/401/comments"},"review_comments":{"href":"https://api.github.com/repos/broadinstitute/hail/pulls/401/comments"},"review_comment":{"href":"https://api.github.com/repos/broadinstitute/hail/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/broadinstitute/hail/pulls/401/commits"},"statuses":{"href":"https://api.github.com/repos/broadinstitute/hail/statuses/c43487e447789d9be72520a4c91a45767b6da1d3"}}}}
{"actor":{"display_login":"cseed"}}