{"action":"opened","number":10,"pull_request":{"url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/pulls/10","id":36992120,"html_url":"https://github.com/PersonalGenomesOrg/gennotes/pull/10","diff_url":"https://github.com/PersonalGenomesOrg/gennotes/pull/10.diff","patch_url":"https://github.com/PersonalGenomesOrg/gennotes/pull/10.patch","issue_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/issues/10","number":10,"state":"open","locked":false,"title":"WIP: Implemented parsing of ClinVar XML","user":{"login":"usajusaj","id":4275746,"avatar_url":"https://avatars.githubusercontent.com/u/4275746?v=3","gravatar_id":"","url":"https://api.github.com/users/usajusaj","html_url":"https://github.com/usajusaj","followers_url":"https://api.github.com/users/usajusaj/followers","following_url":"https://api.github.com/users/usajusaj/following{/other_user}","gists_url":"https://api.github.com/users/usajusaj/gists{/gist_id}","starred_url":"https://api.github.com/users/usajusaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usajusaj/subscriptions","organizations_url":"https://api.github.com/users/usajusaj/orgs","repos_url":"https://api.github.com/users/usajusaj/repos","events_url":"https://api.github.com/users/usajusaj/events{/privacy}","received_events_url":"https://api.github.com/users/usajusaj/received_events","type":"User","site_admin":false},"body":"Added xml parsing, with some sample values for each RCV record.\r\nTODO:\r\n1. make a list of properties we have to extract and their hstore keys\r\n2. create Relations in the db\r\n3. don't mix ClinVarVCFLine and manual parsing in the VCF part. Port everything to vcf2clinvar library\r\n4. encoding issues\r\n\r\nSmall fixes:\r\n- options to manually define local vcf and xml files (saves a lot of time in debugging/development/testing)\r\n- some workarounds (def _open(...)) to errors I've been having with encoding (utf8/ascii exceptions), I suspect it's related to \"from __future__ import unicode_literals\" from vcf2clinvar lib. Can somebody please confirm this?\r\n- speed optimization, get all existing Variants in one query and store them in a dict. Saves many selects over the db.\r\n- Can handle both .gz or deflated input files\r\n\r\nThe code can be safely executed on existing db records. My testing parameters are:\r\npython manage.py add_all_clinvar_variants -c ~/clinvar_20150504.vcf -x ~/ClinVarFullRelease_2015-05.xml\r\n\r\n(please note that xml file download is 122MB in size, and deflated is 2G)\r\n\r\nCheers,\r\nMatej","created_at":"2015-06-05T00:39:14Z","updated_at":"2015-06-05T00:39:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/pulls/10/commits","review_comments_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/pulls/10/comments","review_comment_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/issues/10/comments","statuses_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/statuses/0c791309274cf1f1e4193e3420f6968c5ca49f2b","head":{"label":"usajusaj:master","ref":"master","sha":"0c791309274cf1f1e4193e3420f6968c5ca49f2b","user":{"login":"usajusaj","id":4275746,"avatar_url":"https://avatars.githubusercontent.com/u/4275746?v=3","gravatar_id":"","url":"https://api.github.com/users/usajusaj","html_url":"https://github.com/usajusaj","followers_url":"https://api.github.com/users/usajusaj/followers","following_url":"https://api.github.com/users/usajusaj/following{/other_user}","gists_url":"https://api.github.com/users/usajusaj/gists{/gist_id}","starred_url":"https://api.github.com/users/usajusaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usajusaj/subscriptions","organizations_url":"https://api.github.com/users/usajusaj/orgs","repos_url":"https://api.github.com/users/usajusaj/repos","events_url":"https://api.github.com/users/usajusaj/events{/privacy}","received_events_url":"https://api.github.com/users/usajusaj/received_events","type":"User","site_admin":false},"repo":{"id":36873765,"name":"gennotes","full_name":"usajusaj/gennotes","owner":{"login":"usajusaj","id":4275746,"avatar_url":"https://avatars.githubusercontent.com/u/4275746?v=3","gravatar_id":"","url":"https://api.github.com/users/usajusaj","html_url":"https://github.com/usajusaj","followers_url":"https://api.github.com/users/usajusaj/followers","following_url":"https://api.github.com/users/usajusaj/following{/other_user}","gists_url":"https://api.github.com/users/usajusaj/gists{/gist_id}","starred_url":"https://api.github.com/users/usajusaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usajusaj/subscriptions","organizations_url":"https://api.github.com/users/usajusaj/orgs","repos_url":"https://api.github.com/users/usajusaj/repos","events_url":"https://api.github.com/users/usajusaj/events{/privacy}","received_events_url":"https://api.github.com/users/usajusaj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/usajusaj/gennotes","description":"GenNotes server","fork":true,"url":"https://api.github.com/repos/usajusaj/gennotes","forks_url":"https://api.github.com/repos/usajusaj/gennotes/forks","keys_url":"https://api.github.com/repos/usajusaj/gennotes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usajusaj/gennotes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usajusaj/gennotes/teams","hooks_url":"https://api.github.com/repos/usajusaj/gennotes/hooks","issue_events_url":"https://api.github.com/repos/usajusaj/gennotes/issues/events{/number}","events_url":"https://api.github.com/repos/usajusaj/gennotes/events","assignees_url":"https://api.github.com/repos/usajusaj/gennotes/assignees{/user}","branches_url":"https://api.github.com/repos/usajusaj/gennotes/branches{/branch}","tags_url":"https://api.github.com/repos/usajusaj/gennotes/tags","blobs_url":"https://api.github.com/repos/usajusaj/gennotes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usajusaj/gennotes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usajusaj/gennotes/git/refs{/sha}","trees_url":"https://api.github.com/repos/usajusaj/gennotes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usajusaj/gennotes/statuses/{sha}","languages_url":"https://api.github.com/repos/usajusaj/gennotes/languages","stargazers_url":"https://api.github.com/repos/usajusaj/gennotes/stargazers","contributors_url":"https://api.github.com/repos/usajusaj/gennotes/contributors","subscribers_url":"https://api.github.com/repos/usajusaj/gennotes/subscribers","subscription_url":"https://api.github.com/repos/usajusaj/gennotes/subscription","commits_url":"https://api.github.com/repos/usajusaj/gennotes/commits{/sha}","git_commits_url":"https://api.github.com/repos/usajusaj/gennotes/git/commits{/sha}","comments_url":"https://api.github.com/repos/usajusaj/gennotes/comments{/number}","issue_comment_url":"https://api.github.com/repos/usajusaj/gennotes/issues/comments{/number}","contents_url":"https://api.github.com/repos/usajusaj/gennotes/contents/{+path}","compare_url":"https://api.github.com/repos/usajusaj/gennotes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usajusaj/gennotes/merges","archive_url":"https://api.github.com/repos/usajusaj/gennotes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usajusaj/gennotes/downloads","issues_url":"https://api.github.com/repos/usajusaj/gennotes/issues{/number}","pulls_url":"https://api.github.com/repos/usajusaj/gennotes/pulls{/number}","milestones_url":"https://api.github.com/repos/usajusaj/gennotes/milestones{/number}","notifications_url":"https://api.github.com/repos/usajusaj/gennotes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usajusaj/gennotes/labels{/name}","releases_url":"https://api.github.com/repos/usajusaj/gennotes/releases{/id}","created_at":"2015-06-04T14:03:26Z","updated_at":"2015-06-04T14:03:26Z","pushed_at":"2015-06-05T00:27:20Z","git_url":"git://github.com/usajusaj/gennotes.git","ssh_url":"git@github.com:usajusaj/gennotes.git","clone_url":"https://github.com/usajusaj/gennotes.git","svn_url":"https://github.com/usajusaj/gennotes","homepage":null,"size":200,"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":"PersonalGenomesOrg:master","ref":"master","sha":"5e3d4a57a1c66c75c7a2c7bd3bfcec00bf718b06","user":{"login":"PersonalGenomesOrg","id":3341265,"avatar_url":"https://avatars.githubusercontent.com/u/3341265?v=3","gravatar_id":"","url":"https://api.github.com/users/PersonalGenomesOrg","html_url":"https://github.com/PersonalGenomesOrg","followers_url":"https://api.github.com/users/PersonalGenomesOrg/followers","following_url":"https://api.github.com/users/PersonalGenomesOrg/following{/other_user}","gists_url":"https://api.github.com/users/PersonalGenomesOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/PersonalGenomesOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PersonalGenomesOrg/subscriptions","organizations_url":"https://api.github.com/users/PersonalGenomesOrg/orgs","repos_url":"https://api.github.com/users/PersonalGenomesOrg/repos","events_url":"https://api.github.com/users/PersonalGenomesOrg/events{/privacy}","received_events_url":"https://api.github.com/users/PersonalGenomesOrg/received_events","type":"Organization","site_admin":false},"repo":{"id":35703252,"name":"gennotes","full_name":"PersonalGenomesOrg/gennotes","owner":{"login":"PersonalGenomesOrg","id":3341265,"avatar_url":"https://avatars.githubusercontent.com/u/3341265?v=3","gravatar_id":"","url":"https://api.github.com/users/PersonalGenomesOrg","html_url":"https://github.com/PersonalGenomesOrg","followers_url":"https://api.github.com/users/PersonalGenomesOrg/followers","following_url":"https://api.github.com/users/PersonalGenomesOrg/following{/other_user}","gists_url":"https://api.github.com/users/PersonalGenomesOrg/gists{/gist_id}","starred_url":"https://api.github.com/users/PersonalGenomesOrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PersonalGenomesOrg/subscriptions","organizations_url":"https://api.github.com/users/PersonalGenomesOrg/orgs","repos_url":"https://api.github.com/users/PersonalGenomesOrg/repos","events_url":"https://api.github.com/users/PersonalGenomesOrg/events{/privacy}","received_events_url":"https://api.github.com/users/PersonalGenomesOrg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PersonalGenomesOrg/gennotes","description":"GenNotes server","fork":false,"url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes","forks_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/forks","keys_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/teams","hooks_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/hooks","issue_events_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/issues/events{/number}","events_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/events","assignees_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/assignees{/user}","branches_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/branches{/branch}","tags_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/tags","blobs_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/git/refs{/sha}","trees_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/statuses/{sha}","languages_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/languages","stargazers_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/stargazers","contributors_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/contributors","subscribers_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/subscribers","subscription_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/subscription","commits_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/commits{/sha}","git_commits_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/git/commits{/sha}","comments_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/comments{/number}","issue_comment_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/issues/comments{/number}","contents_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/contents/{+path}","compare_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/merges","archive_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/downloads","issues_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/issues{/number}","pulls_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/pulls{/number}","milestones_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/milestones{/number}","notifications_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/labels{/name}","releases_url":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/releases{/id}","created_at":"2015-05-16T00:28:31Z","updated_at":"2015-06-04T14:31:37Z","pushed_at":"2015-06-04T19:56:15Z","git_url":"git://github.com/PersonalGenomesOrg/gennotes.git","ssh_url":"git@github.com:PersonalGenomesOrg/gennotes.git","clone_url":"https://github.com/PersonalGenomesOrg/gennotes.git","svn_url":"https://github.com/PersonalGenomesOrg/gennotes","homepage":null,"size":200,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":6,"forks":3,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/pulls/10"},"html":{"href":"https://github.com/PersonalGenomesOrg/gennotes/pull/10"},"issue":{"href":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/issues/10"},"comments":{"href":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/PersonalGenomesOrg/gennotes/statuses/0c791309274cf1f1e4193e3420f6968c5ca49f2b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":155,"deletions":12,"changed_files":3}}