{"action":"created","comment":{"url":"https://api.github.com/repos/broadinstitute/gatk/pulls/comments/171963663","pull_request_review_id":100914694,"id":171963663,"diff_hunk":"@@ -0,0 +1,39 @@\n+package org.broadinstitute.hellbender.tools.copynumber.gcnv;\n+\n+import htsjdk.variant.variantcontext.Allele;\n+import htsjdk.variant.variantcontext.writer.VariantContextWriter;\n+import htsjdk.variant.vcf.VCFHeaderLine;\n+import org.broadinstitute.hellbender.utils.Utils;\n+\n+import java.util.Arrays;\n+import java.util.List;\n+import java.util.Set;\n+\n+/**\n+ * Base class for {@link GermlineCNVIntervalVariantComposer} and {@link GermlineCNVSegmentVariantComposer}.\n+ *\n+ * @author Mehrtash Babadi &lt;mehrtash@broadinstitute.org&gt;\n+ */\n+public abstract class GermlineCNVAbstractVariantComposer {","path":"src/main/java/org/broadinstitute/hellbender/tools/copynumber/gcnv/GermlineCNVAbstractVariantComposer.java","position":17,"original_position":17,"commit_id":"6f3bd5af029b6eb49ae33a10cb7e2821895f3c23","original_commit_id":"2dbbe9541faceaaebc51054d02b01d81077781bd","user":{"login":"mbabadi","id":15305869,"avatar_url":"https://avatars1.githubusercontent.com/u/15305869?v=4","gravatar_id":"","url":"https://api.github.com/users/mbabadi","html_url":"https://github.com/mbabadi","followers_url":"https://api.github.com/users/mbabadi/followers","following_url":"https://api.github.com/users/mbabadi/following{/other_user}","gists_url":"https://api.github.com/users/mbabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/mbabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbabadi/subscriptions","organizations_url":"https://api.github.com/users/mbabadi/orgs","repos_url":"https://api.github.com/users/mbabadi/repos","events_url":"https://api.github.com/users/mbabadi/events{/privacy}","received_events_url":"https://api.github.com/users/mbabadi/received_events","type":"User","site_admin":false},"body":"https://google.github.io/styleguide/javaguide.html#s4.8.7-modifiers","created_at":"2018-03-02T21:11:21Z","updated_at":"2018-03-02T21:11:21Z","html_url":"https://github.com/broadinstitute/gatk/pull/4396#discussion_r171963663","pull_request_url":"https://api.github.com/repos/broadinstitute/gatk/pulls/4396","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/broadinstitute/gatk/pulls/comments/171963663"},"html":{"href":"https://github.com/broadinstitute/gatk/pull/4396#discussion_r171963663"},"pull_request":{"href":"https://api.github.com/repos/broadinstitute/gatk/pulls/4396"}},"in_reply_to_id":171087326},"pull_request":{"url":"https://api.github.com/repos/broadinstitute/gatk/pulls/4396","id":168727198,"html_url":"https://github.com/broadinstitute/gatk/pull/4396","diff_url":"https://github.com/broadinstitute/gatk/pull/4396.diff","patch_url":"https://github.com/broadinstitute/gatk/pull/4396.patch","issue_url":"https://api.github.com/repos/broadinstitute/gatk/issues/4396","number":4396,"state":"open","locked":false,"title":"Updated PostprocessGermlineCNVCalls (segments VCF writing, WDL scripts, unit tests, integration tests)","user":{"login":"mbabadi","id":15305869,"avatar_url":"https://avatars1.githubusercontent.com/u/15305869?v=4","gravatar_id":"","url":"https://api.github.com/users/mbabadi","html_url":"https://github.com/mbabadi","followers_url":"https://api.github.com/users/mbabadi/followers","following_url":"https://api.github.com/users/mbabadi/following{/other_user}","gists_url":"https://api.github.com/users/mbabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/mbabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbabadi/subscriptions","organizations_url":"https://api.github.com/users/mbabadi/orgs","repos_url":"https://api.github.com/users/mbabadi/repos","events_url":"https://api.github.com/users/mbabadi/events{/privacy}","received_events_url":"https://api.github.com/users/mbabadi/received_events","type":"User","site_admin":false},"body":"This PR adds segments VCF writing to `PostprocessGermlineCNVCalls`. Segmentation (Viterbi) and segment quality calculation are performed by `gcnvkernel`.\r\n\r\nThis PR introduces the following additional features:\r\n- Calls and model shards are not required to be provided in sorted order anymore\r\n- The user can specify the ref copy-number state for autosomal contigs, as well as allosomal contigs\r\n- For both intervals and segments VCF output: now we use either `<DUP>` or `<DEL>` alleles (in place of `CN_x` alleles), depending on whether the most likely copy-number call is below or above the  \r\ncontig baseline. The contig baseline state is whatever the user has specified for autosomal contigs, and the contig ploidy state on sex chromosomes (from the output of `DetermineGermlineContigPloidy`).\r\n- Fail-fast validations and better test coverage\r\n- Updated cohort and case WDL scripts and WDL tests","created_at":"2018-02-13T00:47:01Z","updated_at":"2018-03-02T21:11:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"401abc31a0958561bc1f2afa64dca0f50ac13098","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sooheelee","id":11543866,"avatar_url":"https://avatars2.githubusercontent.com/u/11543866?v=4","gravatar_id":"","url":"https://api.github.com/users/sooheelee","html_url":"https://github.com/sooheelee","followers_url":"https://api.github.com/users/sooheelee/followers","following_url":"https://api.github.com/users/sooheelee/following{/other_user}","gists_url":"https://api.github.com/users/sooheelee/gists{/gist_id}","starred_url":"https://api.github.com/users/sooheelee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sooheelee/subscriptions","organizations_url":"https://api.github.com/users/sooheelee/orgs","repos_url":"https://api.github.com/users/sooheelee/repos","events_url":"https://api.github.com/users/sooheelee/events{/privacy}","received_events_url":"https://api.github.com/users/sooheelee/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":192839165,"url":"https://api.github.com/repos/broadinstitute/gatk/labels/Copy%20Number%20tools","name":"Copy Number tools","color":"207de5","default":false},{"id":620336066,"url":"https://api.github.com/repos/broadinstitute/gatk/labels/Germline%20CNV","name":"Germline CNV","color":"d4c5f9","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/broadinstitute/gatk/pulls/4396/commits","review_comments_url":"https://api.github.com/repos/broadinstitute/gatk/pulls/4396/comments","review_comment_url":"https://api.github.com/repos/broadinstitute/gatk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/broadinstitute/gatk/issues/4396/comments","statuses_url":"https://api.github.com/repos/broadinstitute/gatk/statuses/6f3bd5af029b6eb49ae33a10cb7e2821895f3c23","head":{"label":"broadinstitute:mb_gcnv_postprocess_cli_update","ref":"mb_gcnv_postprocess_cli_update","sha":"6f3bd5af029b6eb49ae33a10cb7e2821895f3c23","user":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars0.githubusercontent.com/u/393552?v=4","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":27452807,"name":"gatk","full_name":"broadinstitute/gatk","owner":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars0.githubusercontent.com/u/393552?v=4","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/gatk","description":"Official code repository for GATK versions 4 and up","fork":false,"url":"https://api.github.com/repos/broadinstitute/gatk","forks_url":"https://api.github.com/repos/broadinstitute/gatk/forks","keys_url":"https://api.github.com/repos/broadinstitute/gatk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadinstitute/gatk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadinstitute/gatk/teams","hooks_url":"https://api.github.com/repos/broadinstitute/gatk/hooks","issue_events_url":"https://api.github.com/repos/broadinstitute/gatk/issues/events{/number}","events_url":"https://api.github.com/repos/broadinstitute/gatk/events","assignees_url":"https://api.github.com/repos/broadinstitute/gatk/assignees{/user}","branches_url":"https://api.github.com/repos/broadinstitute/gatk/branches{/branch}","tags_url":"https://api.github.com/repos/broadinstitute/gatk/tags","blobs_url":"https://api.github.com/repos/broadinstitute/gatk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadinstitute/gatk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadinstitute/gatk/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadinstitute/gatk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadinstitute/gatk/statuses/{sha}","languages_url":"https://api.github.com/repos/broadinstitute/gatk/languages","stargazers_url":"https://api.github.com/repos/broadinstitute/gatk/stargazers","contributors_url":"https://api.github.com/repos/broadinstitute/gatk/contributors","subscribers_url":"https://api.github.com/repos/broadinstitute/gatk/subscribers","subscription_url":"https://api.github.com/repos/broadinstitute/gatk/subscription","commits_url":"https://api.github.com/repos/broadinstitute/gatk/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadinstitute/gatk/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadinstitute/gatk/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadinstitute/gatk/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadinstitute/gatk/contents/{+path}","compare_url":"https://api.github.com/repos/broadinstitute/gatk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadinstitute/gatk/merges","archive_url":"https://api.github.com/repos/broadinstitute/gatk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadinstitute/gatk/downloads","issues_url":"https://api.github.com/repos/broadinstitute/gatk/issues{/number}","pulls_url":"https://api.github.com/repos/broadinstitute/gatk/pulls{/number}","milestones_url":"https://api.github.com/repos/broadinstitute/gatk/milestones{/number}","notifications_url":"https://api.github.com/repos/broadinstitute/gatk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadinstitute/gatk/labels{/name}","releases_url":"https://api.github.com/repos/broadinstitute/gatk/releases{/id}","deployments_url":"https://api.github.com/repos/broadinstitute/gatk/deployments","created_at":"2014-12-02T20:50:36Z","updated_at":"2018-03-02T02:53:09Z","pushed_at":"2018-03-02T20:58:46Z","git_url":"git://github.com/broadinstitute/gatk.git","ssh_url":"git@github.com:broadinstitute/gatk.git","clone_url":"https://github.com/broadinstitute/gatk.git","svn_url":"https://github.com/broadinstitute/gatk","homepage":"https://software.broadinstitute.org/gatk","size":211754,"stargazers_count":345,"watchers_count":345,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":131,"mirror_url":null,"archived":false,"open_issues_count":836,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":131,"open_issues":836,"watchers":345,"default_branch":"master"}},"base":{"label":"broadinstitute:master","ref":"master","sha":"8a7879020124a3ea4096adbd1c03b4889d72f80d","user":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars0.githubusercontent.com/u/393552?v=4","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":27452807,"name":"gatk","full_name":"broadinstitute/gatk","owner":{"login":"broadinstitute","id":393552,"avatar_url":"https://avatars0.githubusercontent.com/u/393552?v=4","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/gatk","description":"Official code repository for GATK versions 4 and up","fork":false,"url":"https://api.github.com/repos/broadinstitute/gatk","forks_url":"https://api.github.com/repos/broadinstitute/gatk/forks","keys_url":"https://api.github.com/repos/broadinstitute/gatk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/broadinstitute/gatk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/broadinstitute/gatk/teams","hooks_url":"https://api.github.com/repos/broadinstitute/gatk/hooks","issue_events_url":"https://api.github.com/repos/broadinstitute/gatk/issues/events{/number}","events_url":"https://api.github.com/repos/broadinstitute/gatk/events","assignees_url":"https://api.github.com/repos/broadinstitute/gatk/assignees{/user}","branches_url":"https://api.github.com/repos/broadinstitute/gatk/branches{/branch}","tags_url":"https://api.github.com/repos/broadinstitute/gatk/tags","blobs_url":"https://api.github.com/repos/broadinstitute/gatk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/broadinstitute/gatk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/broadinstitute/gatk/git/refs{/sha}","trees_url":"https://api.github.com/repos/broadinstitute/gatk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/broadinstitute/gatk/statuses/{sha}","languages_url":"https://api.github.com/repos/broadinstitute/gatk/languages","stargazers_url":"https://api.github.com/repos/broadinstitute/gatk/stargazers","contributors_url":"https://api.github.com/repos/broadinstitute/gatk/contributors","subscribers_url":"https://api.github.com/repos/broadinstitute/gatk/subscribers","subscription_url":"https://api.github.com/repos/broadinstitute/gatk/subscription","commits_url":"https://api.github.com/repos/broadinstitute/gatk/commits{/sha}","git_commits_url":"https://api.github.com/repos/broadinstitute/gatk/git/commits{/sha}","comments_url":"https://api.github.com/repos/broadinstitute/gatk/comments{/number}","issue_comment_url":"https://api.github.com/repos/broadinstitute/gatk/issues/comments{/number}","contents_url":"https://api.github.com/repos/broadinstitute/gatk/contents/{+path}","compare_url":"https://api.github.com/repos/broadinstitute/gatk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/broadinstitute/gatk/merges","archive_url":"https://api.github.com/repos/broadinstitute/gatk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/broadinstitute/gatk/downloads","issues_url":"https://api.github.com/repos/broadinstitute/gatk/issues{/number}","pulls_url":"https://api.github.com/repos/broadinstitute/gatk/pulls{/number}","milestones_url":"https://api.github.com/repos/broadinstitute/gatk/milestones{/number}","notifications_url":"https://api.github.com/repos/broadinstitute/gatk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/broadinstitute/gatk/labels{/name}","releases_url":"https://api.github.com/repos/broadinstitute/gatk/releases{/id}","deployments_url":"https://api.github.com/repos/broadinstitute/gatk/deployments","created_at":"2014-12-02T20:50:36Z","updated_at":"2018-03-02T02:53:09Z","pushed_at":"2018-03-02T20:58:46Z","git_url":"git://github.com/broadinstitute/gatk.git","ssh_url":"git@github.com:broadinstitute/gatk.git","clone_url":"https://github.com/broadinstitute/gatk.git","svn_url":"https://github.com/broadinstitute/gatk","homepage":"https://software.broadinstitute.org/gatk","size":211754,"stargazers_count":345,"watchers_count":345,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":131,"mirror_url":null,"archived":false,"open_issues_count":836,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":131,"open_issues":836,"watchers":345,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/broadinstitute/gatk/pulls/4396"},"html":{"href":"https://github.com/broadinstitute/gatk/pull/4396"},"issue":{"href":"https://api.github.com/repos/broadinstitute/gatk/issues/4396"},"comments":{"href":"https://api.github.com/repos/broadinstitute/gatk/issues/4396/comments"},"review_comments":{"href":"https://api.github.com/repos/broadinstitute/gatk/pulls/4396/comments"},"review_comment":{"href":"https://api.github.com/repos/broadinstitute/gatk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/broadinstitute/gatk/pulls/4396/commits"},"statuses":{"href":"https://api.github.com/repos/broadinstitute/gatk/statuses/6f3bd5af029b6eb49ae33a10cb7e2821895f3c23"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mbabadi"}}