{"action":"created","comment":{"url":"https://api.github.com/repos/ga4gh/schemas/pulls/comments/47828828","id":47828828,"diff_hunk":"@@ -0,0 +1,227 @@\n+@namespace(\"org.ga4gh.models\")\n+/**\n+This protocol defines annotations on GA4GH genomic sequences It includes two\n+types of annotations: continuous and discrete hierarchical.\n+\n+The discrete hierarchical annotations are derived from the Sequence Ontology\n+(SO) and GFF3 work \n+\n+   http://www.sequenceontology.org/gff3.shtml\n+\n+The goal is to be able to store annotations using the GFF3 and SO conceptual\n+model, although there is not necessarly a one-to-one mapping in Avro records\n+to GFF3 records.\n+\n+The minimum requirement is to be able to accurately represent the current\n+state of the art annotation data and the full SO model.  Feature is the\n+core generic record which corresponds to the a GFF3 record.\n+*/\n+protocol SequenceAnnotations {\n+\n+  import idl \"common.avdl\";\n+  import idl \"ontologies.avdl\";\n+\n+  /**\n+  Identifier from a public database\n+  */\n+  record ExternalIdentifier {\n+    /**\n+    The source of the identifier.\n+    (e.g. `Ensembl`)\n+    */\n+    string database;\n+\n+    /**\n+    The ID defined by the external database.\n+    (e.g. `ENST00000000000`)\n+    */\n+    string identifier;\n+\n+    /**\n+    The version of the object or the database\n+    (e.g. `78`)\n+    */\n+    string version;\n+  }\n+\n+  /**\n+  Type defining a collection of attributes associated with various protocol\n+  records.  Each attribute is a name that maps to an array of one or more\n+  values.  Values can be strings, external identifiers, or ontology terms.\n+  Values should be split into the array elements instead of using a separator\n+  syntax that needs to parsed.\n+  */\n+  // TODO: how are multiple instances of a given attribute vs multiple values\n+  // for an attribute distinguished\n+  record Attributes {\n+    map<array<union {string, ExternalIdentifier, OntologyTerm}>> vals = {};\n+  }\n+  \n+  /**\n+  Continuous numerical annotation along a path.\n+  */\n+  record Wiggle {\n+    /**\n+    The path for the region being annotated.\n+    Note that we are fusing parts of UCSC BedGraph and Wiggle syntax.\n+    The region is being fully annotated, but can be divided into bins.\n+    If you have gaps, you need to define a sequence of such Wiggles.\n+    */\n+    /* TODO: path not used yet, as graph code is not working in server.\n+       Fields below are copied directly from variants.avdl for now.\n+    Path path; */\n+\n+    /**\n+    The reference on which this feature occurs.\n+    (e.g. `chr20` or `X`)\n+\n+    If the API server supports the \"classic\" mode, this field must not be null.\n+    */\n+    union { null, string } referenceName = null;\n+\n+    /**\n+    The start position at which this feature occurs (0-based).\n+    This corresponds to the first base of the string of reference bases.\n+    Genomic positions are non-negative integers less than reference length.\n+    Features spanning the join of circular genomes are represented as\n+    two features one on each side of the join (position 0).\n+\n+    If the API server supports the \"classic\" mode, this field must not be null.\n+    */\n+    union { null, long } start = null;","path":"src/main/resources/avro/sequenceAnnotations.avdl","position":91,"original_position":91,"commit_id":"533e27d685d484fbb334d39cd38057591e85bbb2","original_commit_id":"533e27d685d484fbb334d39cd38057591e85bbb2","user":{"login":"macieksmuga","id":6685511,"avatar_url":"https://avatars.githubusercontent.com/u/6685511?v=3","gravatar_id":"","url":"https://api.github.com/users/macieksmuga","html_url":"https://github.com/macieksmuga","followers_url":"https://api.github.com/users/macieksmuga/followers","following_url":"https://api.github.com/users/macieksmuga/following{/other_user}","gists_url":"https://api.github.com/users/macieksmuga/gists{/gist_id}","starred_url":"https://api.github.com/users/macieksmuga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macieksmuga/subscriptions","organizations_url":"https://api.github.com/users/macieksmuga/orgs","repos_url":"https://api.github.com/users/macieksmuga/repos","events_url":"https://api.github.com/users/macieksmuga/events{/privacy}","received_events_url":"https://api.github.com/users/macieksmuga/received_events","type":"User","site_admin":false},"body":"`long start = 0`","created_at":"2015-12-16T20:24:12Z","updated_at":"2015-12-16T20:24:12Z","html_url":"https://github.com/ga4gh/schemas/pull/517#discussion_r47828828","pull_request_url":"https://api.github.com/repos/ga4gh/schemas/pulls/517","_links":{"self":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/comments/47828828"},"html":{"href":"https://github.com/ga4gh/schemas/pull/517#discussion_r47828828"},"pull_request":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/517"}}},"pull_request":{"url":"https://api.github.com/repos/ga4gh/schemas/pulls/517","id":53881344,"html_url":"https://github.com/ga4gh/schemas/pull/517","diff_url":"https://github.com/ga4gh/schemas/pull/517.diff","patch_url":"https://github.com/ga4gh/schemas/pull/517.patch","issue_url":"https://api.github.com/repos/ga4gh/schemas/issues/517","number":517,"state":"open","locked":false,"title":"RNA api schema","user":{"login":"saupchurch","id":1863477,"avatar_url":"https://avatars.githubusercontent.com/u/1863477?v=3","gravatar_id":"","url":"https://api.github.com/users/saupchurch","html_url":"https://github.com/saupchurch","followers_url":"https://api.github.com/users/saupchurch/followers","following_url":"https://api.github.com/users/saupchurch/following{/other_user}","gists_url":"https://api.github.com/users/saupchurch/gists{/gist_id}","starred_url":"https://api.github.com/users/saupchurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saupchurch/subscriptions","organizations_url":"https://api.github.com/users/saupchurch/orgs","repos_url":"https://api.github.com/users/saupchurch/repos","events_url":"https://api.github.com/users/saupchurch/events{/privacy}","received_events_url":"https://api.github.com/users/saupchurch/received_events","type":"User","site_admin":false},"body":"New RNA API schemas.","created_at":"2015-12-16T18:45:39Z","updated_at":"2015-12-16T20:24:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1855584eddcfb9a8585c4f98d03ee9047d438cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga4gh/schemas/pulls/517/commits","review_comments_url":"https://api.github.com/repos/ga4gh/schemas/pulls/517/comments","review_comment_url":"https://api.github.com/repos/ga4gh/schemas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga4gh/schemas/issues/517/comments","statuses_url":"https://api.github.com/repos/ga4gh/schemas/statuses/533e27d685d484fbb334d39cd38057591e85bbb2","head":{"label":"saupchurch:rna","ref":"rna","sha":"533e27d685d484fbb334d39cd38057591e85bbb2","user":{"login":"saupchurch","id":1863477,"avatar_url":"https://avatars.githubusercontent.com/u/1863477?v=3","gravatar_id":"","url":"https://api.github.com/users/saupchurch","html_url":"https://github.com/saupchurch","followers_url":"https://api.github.com/users/saupchurch/followers","following_url":"https://api.github.com/users/saupchurch/following{/other_user}","gists_url":"https://api.github.com/users/saupchurch/gists{/gist_id}","starred_url":"https://api.github.com/users/saupchurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saupchurch/subscriptions","organizations_url":"https://api.github.com/users/saupchurch/orgs","repos_url":"https://api.github.com/users/saupchurch/repos","events_url":"https://api.github.com/users/saupchurch/events{/privacy}","received_events_url":"https://api.github.com/users/saupchurch/received_events","type":"User","site_admin":false},"repo":{"id":37207818,"name":"schemas","full_name":"saupchurch/schemas","owner":{"login":"saupchurch","id":1863477,"avatar_url":"https://avatars.githubusercontent.com/u/1863477?v=3","gravatar_id":"","url":"https://api.github.com/users/saupchurch","html_url":"https://github.com/saupchurch","followers_url":"https://api.github.com/users/saupchurch/followers","following_url":"https://api.github.com/users/saupchurch/following{/other_user}","gists_url":"https://api.github.com/users/saupchurch/gists{/gist_id}","starred_url":"https://api.github.com/users/saupchurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saupchurch/subscriptions","organizations_url":"https://api.github.com/users/saupchurch/orgs","repos_url":"https://api.github.com/users/saupchurch/repos","events_url":"https://api.github.com/users/saupchurch/events{/privacy}","received_events_url":"https://api.github.com/users/saupchurch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/saupchurch/schemas","description":"Work on data models and APIs for Genomic data.","fork":true,"url":"https://api.github.com/repos/saupchurch/schemas","forks_url":"https://api.github.com/repos/saupchurch/schemas/forks","keys_url":"https://api.github.com/repos/saupchurch/schemas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saupchurch/schemas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saupchurch/schemas/teams","hooks_url":"https://api.github.com/repos/saupchurch/schemas/hooks","issue_events_url":"https://api.github.com/repos/saupchurch/schemas/issues/events{/number}","events_url":"https://api.github.com/repos/saupchurch/schemas/events","assignees_url":"https://api.github.com/repos/saupchurch/schemas/assignees{/user}","branches_url":"https://api.github.com/repos/saupchurch/schemas/branches{/branch}","tags_url":"https://api.github.com/repos/saupchurch/schemas/tags","blobs_url":"https://api.github.com/repos/saupchurch/schemas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saupchurch/schemas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saupchurch/schemas/git/refs{/sha}","trees_url":"https://api.github.com/repos/saupchurch/schemas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saupchurch/schemas/statuses/{sha}","languages_url":"https://api.github.com/repos/saupchurch/schemas/languages","stargazers_url":"https://api.github.com/repos/saupchurch/schemas/stargazers","contributors_url":"https://api.github.com/repos/saupchurch/schemas/contributors","subscribers_url":"https://api.github.com/repos/saupchurch/schemas/subscribers","subscription_url":"https://api.github.com/repos/saupchurch/schemas/subscription","commits_url":"https://api.github.com/repos/saupchurch/schemas/commits{/sha}","git_commits_url":"https://api.github.com/repos/saupchurch/schemas/git/commits{/sha}","comments_url":"https://api.github.com/repos/saupchurch/schemas/comments{/number}","issue_comment_url":"https://api.github.com/repos/saupchurch/schemas/issues/comments{/number}","contents_url":"https://api.github.com/repos/saupchurch/schemas/contents/{+path}","compare_url":"https://api.github.com/repos/saupchurch/schemas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saupchurch/schemas/merges","archive_url":"https://api.github.com/repos/saupchurch/schemas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saupchurch/schemas/downloads","issues_url":"https://api.github.com/repos/saupchurch/schemas/issues{/number}","pulls_url":"https://api.github.com/repos/saupchurch/schemas/pulls{/number}","milestones_url":"https://api.github.com/repos/saupchurch/schemas/milestones{/number}","notifications_url":"https://api.github.com/repos/saupchurch/schemas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saupchurch/schemas/labels{/name}","releases_url":"https://api.github.com/repos/saupchurch/schemas/releases{/id}","created_at":"2015-06-10T16:08:16Z","updated_at":"2015-06-10T16:08:17Z","pushed_at":"2015-12-16T19:06:47Z","git_url":"git://github.com/saupchurch/schemas.git","ssh_url":"git@github.com:saupchurch/schemas.git","clone_url":"https://github.com/saupchurch/schemas.git","svn_url":"https://github.com/saupchurch/schemas","homepage":"http://ga4gh.org/#/api","size":1180,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"cf2bc1bc97e3f1f2e3eef08a6ac6fad90a797283","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-12-09T00:55:08Z","pushed_at":"2015-12-16T19:10:31Z","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":13012,"stargazers_count":163,"watchers_count":163,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":87,"mirror_url":null,"open_issues_count":130,"forks":87,"open_issues":130,"watchers":163,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/517"},"html":{"href":"https://github.com/ga4gh/schemas/pull/517"},"issue":{"href":"https://api.github.com/repos/ga4gh/schemas/issues/517"},"comments":{"href":"https://api.github.com/repos/ga4gh/schemas/issues/517/comments"},"review_comments":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/517/comments"},"review_comment":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga4gh/schemas/pulls/517/commits"},"statuses":{"href":"https://api.github.com/repos/ga4gh/schemas/statuses/533e27d685d484fbb334d39cd38057591e85bbb2"}}}}