{"action":"created","comment":{"url":"https://api.github.com/repos/ga4gh/schemas/pulls/comments/24516327","id":24516327,"diff_hunk":"@@ -120,30 +168,66 @@ record Call {\n   union { null, string } callSetName = null;\n \n   /**\n-  The genotype of this variant call. Each value represents either the value\n-  of the referenceBases field or is a 1-based index into alternateBases.\n+  The genotype of this variant call. Must be null if there is an associated\n+  `Allele`, which implies a uniform genotype of that `Allele`.\n+\n+  A 0 value represents the reference allele of the associated `Variant`. Any\n+  other value is a 1-based index into the alternate alleles of the associated\n+  `Variant`.\n+\n   If a variant had a referenceBases field of \"T\", an alternateBases\n   value of [\"A\", \"C\"], and the genotype was [2, 1], that would mean the call\n   represented the heterozygous value \"CA\" for this variant. If the genotype\n   was instead [0, 1] the represented value would be \"TA\". Ordering of the\n   genotype values is important if the phaseset field is present.\n+\n+  If the API server supports the \"classic\" mode, and this `Call` is associated\n+  with a `Variant`, this field must not be null.\n   */\n-  array<int> genotype = [];\n+  union { null, array<int> } genotype = null;","path":"src/main/resources/avro/variants.avdl","position":101,"original_position":101,"commit_id":"89f7e321a3fadeb7268139fcf11ceb960926234e","original_commit_id":"aa9e614a3e673bc3f76927cc7527f6a0e8ae59d1","user":{"login":"fnothaft","id":3752466,"avatar_url":"https://avatars.githubusercontent.com/u/3752466?v=3","gravatar_id":"","url":"https://api.github.com/users/fnothaft","html_url":"https://github.com/fnothaft","followers_url":"https://api.github.com/users/fnothaft/followers","following_url":"https://api.github.com/users/fnothaft/following{/other_user}","gists_url":"https://api.github.com/users/fnothaft/gists{/gist_id}","starred_url":"https://api.github.com/users/fnothaft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnothaft/subscriptions","organizations_url":"https://api.github.com/users/fnothaft/orgs","repos_url":"https://api.github.com/users/fnothaft/repos","events_url":"https://api.github.com/users/fnothaft/events{/privacy}","received_events_url":"https://api.github.com/users/fnothaft/received_events","type":"User","site_admin":false},"body":"Why are we encoding behavior via a `null` here? This is clunky.","created_at":"2015-02-11T17:55:14Z","updated_at":"2015-02-11T17:55:14Z","html_url":"https://github.com/ga4gh/schemas/pull/238#discussion_r24516327","pull_request_url":"https://api.github.com/repos/ga4gh/schemas/pulls/238","_links":{"self":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/comments/24516327"},"html":{"href":"https://github.com/ga4gh/schemas/pull/238#discussion_r24516327"},"pull_request":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/238"}}},"pull_request":{"url":"https://api.github.com/repos/ga4gh/schemas/pulls/238","id":28584284,"html_url":"https://github.com/ga4gh/schemas/pull/238","diff_url":"https://github.com/ga4gh/schemas/pull/238.diff","patch_url":"https://github.com/ga4gh/schemas/pull/238.patch","issue_url":"https://api.github.com/repos/ga4gh/schemas/issues/238","number":238,"state":"open","locked":false,"title":"Graph Support for GA4GH API","user":{"login":"adamnovak","id":5062495,"avatar_url":"https://avatars.githubusercontent.com/u/5062495?v=3","gravatar_id":"","url":"https://api.github.com/users/adamnovak","html_url":"https://github.com/adamnovak","followers_url":"https://api.github.com/users/adamnovak/followers","following_url":"https://api.github.com/users/adamnovak/following{/other_user}","gists_url":"https://api.github.com/users/adamnovak/gists{/gist_id}","starred_url":"https://api.github.com/users/adamnovak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamnovak/subscriptions","organizations_url":"https://api.github.com/users/adamnovak/orgs","repos_url":"https://api.github.com/users/adamnovak/repos","events_url":"https://api.github.com/users/adamnovak/events{/privacy}","received_events_url":"https://api.github.com/users/adamnovak/received_events","type":"User","site_admin":false},"body":"This PR adds graph support to the References, Reads, and Variant APIs in a backwards-compatible way.\r\n\r\n`common.avdl` is enhanced with `Segment` and `Path` types, as well as the notion of a sequence and a sequence graph, which is described at length at the top of the file.\r\n\r\n`Reference`s can now have associated `Segment`s, placing them in a sequence graph for the ReferenceSet.\r\n\r\nReads in the Reads API can now be aligned using `GraphAlignment`s as well as `LinearAlignment`s.\r\n\r\n`Variant`s in the Variants API can have `Allele`s defining their reference and alternate forms as paths in a sequence graph, and `Call`s can call copy numbers for individual `Allele`s as well as genotypes for `Variant`s.\r\n\r\nCloses #233 \r\n\r\n","created_at":"2015-02-03T20:08:30Z","updated_at":"2015-02-11T17:55:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e420fe62ab94acc2dc59ea9d8ab14b2fc512197","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga4gh/schemas/pulls/238/commits","review_comments_url":"https://api.github.com/repos/ga4gh/schemas/pulls/238/comments","review_comment_url":"https://api.github.com/repos/ga4gh/schemas/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ga4gh/schemas/issues/238/comments","statuses_url":"https://api.github.com/repos/ga4gh/schemas/statuses/89f7e321a3fadeb7268139fcf11ceb960926234e","head":{"label":"adamnovak:graphBackport","ref":"graphBackport","sha":"89f7e321a3fadeb7268139fcf11ceb960926234e","user":{"login":"adamnovak","id":5062495,"avatar_url":"https://avatars.githubusercontent.com/u/5062495?v=3","gravatar_id":"","url":"https://api.github.com/users/adamnovak","html_url":"https://github.com/adamnovak","followers_url":"https://api.github.com/users/adamnovak/followers","following_url":"https://api.github.com/users/adamnovak/following{/other_user}","gists_url":"https://api.github.com/users/adamnovak/gists{/gist_id}","starred_url":"https://api.github.com/users/adamnovak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamnovak/subscriptions","organizations_url":"https://api.github.com/users/adamnovak/orgs","repos_url":"https://api.github.com/users/adamnovak/repos","events_url":"https://api.github.com/users/adamnovak/events{/privacy}","received_events_url":"https://api.github.com/users/adamnovak/received_events","type":"User","site_admin":false},"repo":{"id":19353046,"name":"schemas","full_name":"adamnovak/schemas","owner":{"login":"adamnovak","id":5062495,"avatar_url":"https://avatars.githubusercontent.com/u/5062495?v=3","gravatar_id":"","url":"https://api.github.com/users/adamnovak","html_url":"https://github.com/adamnovak","followers_url":"https://api.github.com/users/adamnovak/followers","following_url":"https://api.github.com/users/adamnovak/following{/other_user}","gists_url":"https://api.github.com/users/adamnovak/gists{/gist_id}","starred_url":"https://api.github.com/users/adamnovak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamnovak/subscriptions","organizations_url":"https://api.github.com/users/adamnovak/orgs","repos_url":"https://api.github.com/users/adamnovak/repos","events_url":"https://api.github.com/users/adamnovak/events{/privacy}","received_events_url":"https://api.github.com/users/adamnovak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adamnovak/schemas","description":"The Data Working Group concentrates on data representation, storage, and analysis, including working with platform development partners and industry leaders to develop standards that will facilitate interoperability.","fork":true,"url":"https://api.github.com/repos/adamnovak/schemas","forks_url":"https://api.github.com/repos/adamnovak/schemas/forks","keys_url":"https://api.github.com/repos/adamnovak/schemas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adamnovak/schemas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adamnovak/schemas/teams","hooks_url":"https://api.github.com/repos/adamnovak/schemas/hooks","issue_events_url":"https://api.github.com/repos/adamnovak/schemas/issues/events{/number}","events_url":"https://api.github.com/repos/adamnovak/schemas/events","assignees_url":"https://api.github.com/repos/adamnovak/schemas/assignees{/user}","branches_url":"https://api.github.com/repos/adamnovak/schemas/branches{/branch}","tags_url":"https://api.github.com/repos/adamnovak/schemas/tags","blobs_url":"https://api.github.com/repos/adamnovak/schemas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adamnovak/schemas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adamnovak/schemas/git/refs{/sha}","trees_url":"https://api.github.com/repos/adamnovak/schemas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adamnovak/schemas/statuses/{sha}","languages_url":"https://api.github.com/repos/adamnovak/schemas/languages","stargazers_url":"https://api.github.com/repos/adamnovak/schemas/stargazers","contributors_url":"https://api.github.com/repos/adamnovak/schemas/contributors","subscribers_url":"https://api.github.com/repos/adamnovak/schemas/subscribers","subscription_url":"https://api.github.com/repos/adamnovak/schemas/subscription","commits_url":"https://api.github.com/repos/adamnovak/schemas/commits{/sha}","git_commits_url":"https://api.github.com/repos/adamnovak/schemas/git/commits{/sha}","comments_url":"https://api.github.com/repos/adamnovak/schemas/comments{/number}","issue_comment_url":"https://api.github.com/repos/adamnovak/schemas/issues/comments/{number}","contents_url":"https://api.github.com/repos/adamnovak/schemas/contents/{+path}","compare_url":"https://api.github.com/repos/adamnovak/schemas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adamnovak/schemas/merges","archive_url":"https://api.github.com/repos/adamnovak/schemas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adamnovak/schemas/downloads","issues_url":"https://api.github.com/repos/adamnovak/schemas/issues{/number}","pulls_url":"https://api.github.com/repos/adamnovak/schemas/pulls{/number}","milestones_url":"https://api.github.com/repos/adamnovak/schemas/milestones{/number}","notifications_url":"https://api.github.com/repos/adamnovak/schemas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adamnovak/schemas/labels{/name}","releases_url":"https://api.github.com/repos/adamnovak/schemas/releases{/id}","created_at":"2014-05-01T18:09:26Z","updated_at":"2014-12-04T22:52:14Z","pushed_at":"2015-02-11T17:46:19Z","git_url":"git://github.com/adamnovak/schemas.git","ssh_url":"git@github.com:adamnovak/schemas.git","clone_url":"https://github.com/adamnovak/schemas.git","svn_url":"https://github.com/adamnovak/schemas","homepage":"","size":1079,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ga4gh:master","ref":"master","sha":"b010f064148f6bdd21bf7aefcd1622de65adbd09","user":{"login":"ga4gh","id":6921777,"avatar_url":"https://avatars.githubusercontent.com/u/6921777?v=3","gravatar_id":"","url":"https://api.github.com/users/ga4gh","html_url":"https://github.com/ga4gh","followers_url":"https://api.github.com/users/ga4gh/followers","following_url":"https://api.github.com/users/ga4gh/following{/other_user}","gists_url":"https://api.github.com/users/ga4gh/gists{/gist_id}","starred_url":"https://api.github.com/users/ga4gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga4gh/subscriptions","organizations_url":"https://api.github.com/users/ga4gh/orgs","repos_url":"https://api.github.com/users/ga4gh/repos","events_url":"https://api.github.com/users/ga4gh/events{/privacy}","received_events_url":"https://api.github.com/users/ga4gh/received_events","type":"Organization","site_admin":false},"repo":{"id":17925227,"name":"schemas","full_name":"ga4gh/schemas","owner":{"login":"ga4gh","id":6921777,"avatar_url":"https://avatars.githubusercontent.com/u/6921777?v=3","gravatar_id":"","url":"https://api.github.com/users/ga4gh","html_url":"https://github.com/ga4gh","followers_url":"https://api.github.com/users/ga4gh/followers","following_url":"https://api.github.com/users/ga4gh/following{/other_user}","gists_url":"https://api.github.com/users/ga4gh/gists{/gist_id}","starred_url":"https://api.github.com/users/ga4gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga4gh/subscriptions","organizations_url":"https://api.github.com/users/ga4gh/orgs","repos_url":"https://api.github.com/users/ga4gh/repos","events_url":"https://api.github.com/users/ga4gh/events{/privacy}","received_events_url":"https://api.github.com/users/ga4gh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga4gh/schemas","description":"Work on data models and APIs for Genomic data.","fork":false,"url":"https://api.github.com/repos/ga4gh/schemas","forks_url":"https://api.github.com/repos/ga4gh/schemas/forks","keys_url":"https://api.github.com/repos/ga4gh/schemas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga4gh/schemas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga4gh/schemas/teams","hooks_url":"https://api.github.com/repos/ga4gh/schemas/hooks","issue_events_url":"https://api.github.com/repos/ga4gh/schemas/issues/events{/number}","events_url":"https://api.github.com/repos/ga4gh/schemas/events","assignees_url":"https://api.github.com/repos/ga4gh/schemas/assignees{/user}","branches_url":"https://api.github.com/repos/ga4gh/schemas/branches{/branch}","tags_url":"https://api.github.com/repos/ga4gh/schemas/tags","blobs_url":"https://api.github.com/repos/ga4gh/schemas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga4gh/schemas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga4gh/schemas/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga4gh/schemas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga4gh/schemas/statuses/{sha}","languages_url":"https://api.github.com/repos/ga4gh/schemas/languages","stargazers_url":"https://api.github.com/repos/ga4gh/schemas/stargazers","contributors_url":"https://api.github.com/repos/ga4gh/schemas/contributors","subscribers_url":"https://api.github.com/repos/ga4gh/schemas/subscribers","subscription_url":"https://api.github.com/repos/ga4gh/schemas/subscription","commits_url":"https://api.github.com/repos/ga4gh/schemas/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga4gh/schemas/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga4gh/schemas/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga4gh/schemas/issues/comments/{number}","contents_url":"https://api.github.com/repos/ga4gh/schemas/contents/{+path}","compare_url":"https://api.github.com/repos/ga4gh/schemas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga4gh/schemas/merges","archive_url":"https://api.github.com/repos/ga4gh/schemas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga4gh/schemas/downloads","issues_url":"https://api.github.com/repos/ga4gh/schemas/issues{/number}","pulls_url":"https://api.github.com/repos/ga4gh/schemas/pulls{/number}","milestones_url":"https://api.github.com/repos/ga4gh/schemas/milestones{/number}","notifications_url":"https://api.github.com/repos/ga4gh/schemas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga4gh/schemas/labels{/name}","releases_url":"https://api.github.com/repos/ga4gh/schemas/releases{/id}","created_at":"2014-03-20T00:13:40Z","updated_at":"2015-02-09T19:07:11Z","pushed_at":"2015-02-11T03:17:36Z","git_url":"git://github.com/ga4gh/schemas.git","ssh_url":"git@github.com:ga4gh/schemas.git","clone_url":"https://github.com/ga4gh/schemas.git","svn_url":"https://github.com/ga4gh/schemas","homepage":"http://ga4gh.org/#/api","size":2382,"stargazers_count":111,"watchers_count":111,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":54,"forks":48,"open_issues":54,"watchers":111,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/238"},"html":{"href":"https://github.com/ga4gh/schemas/pull/238"},"issue":{"href":"https://api.github.com/repos/ga4gh/schemas/issues/238"},"comments":{"href":"https://api.github.com/repos/ga4gh/schemas/issues/238/comments"},"review_comments":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/238/comments"},"review_comment":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/238/commits"},"statuses":{"href":"https://api.github.com/repos/ga4gh/schemas/statuses/89f7e321a3fadeb7268139fcf11ceb960926234e"}}}}