{"action":"created","comment":{"url":"https://api.github.com/repos/ga4gh/server/pulls/comments/38631885","id":38631885,"diff_hunk":"@@ -280,14 +293,36 @@ def downloadFastas(self):\n                 'display': 'fasta',\n                 'range': '{}-{}'.format(0, maxPos)})\n             url = '{}%26{}'.format(path, args)\n+            tempFileName = '{}.fa.temp'.format(chromosome)\n             fileName = '{}.fa'.format(chromosome)\n-            downloader = utils.HttpFileDownloader(url, fileName)\n+            downloader = utils.HttpFileDownloader(url, tempFileName)\n             downloader.download()\n+            # We need to replace the header on the downloaded FASTA\n+            with open(tempFileName, \"r\") as inFasta,\\\n+                    open(fileName, \"w\") as outFasta:\n+                # Write the new header\n+                print(\">{}\".format(chromosome), file=outFasta)","path":"scripts/download_data.py","position":54,"original_position":54,"commit_id":"692ae5bb7b0402caa107511ade92c4845f12cb98","original_commit_id":"692ae5bb7b0402caa107511ade92c4845f12cb98","user":{"login":"jeromekelleher","id":2664569,"avatar_url":"https://avatars.githubusercontent.com/u/2664569?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromekelleher","html_url":"https://github.com/jeromekelleher","followers_url":"https://api.github.com/users/jeromekelleher/followers","following_url":"https://api.github.com/users/jeromekelleher/following{/other_user}","gists_url":"https://api.github.com/users/jeromekelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromekelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromekelleher/subscriptions","organizations_url":"https://api.github.com/users/jeromekelleher/orgs","repos_url":"https://api.github.com/users/jeromekelleher/repos","events_url":"https://api.github.com/users/jeromekelleher/events{/privacy}","received_events_url":"https://api.github.com/users/jeromekelleher/received_events","type":"User","site_admin":false},"body":"Why? I prefer using print, as I don't have to remember to put \"\\n\" into the string. Feels like I'm writing C doing that!","created_at":"2015-09-03T10:29:50Z","updated_at":"2015-09-03T10:29:50Z","html_url":"https://github.com/ga4gh/server/pull/603#discussion_r38631885","pull_request_url":"https://api.github.com/repos/ga4gh/server/pulls/603","_links":{"self":{"href":"https://api.github.com/repos/ga4gh/server/pulls/comments/38631885"},"html":{"href":"https://github.com/ga4gh/server/pull/603#discussion_r38631885"},"pull_request":{"href":"https://api.github.com/repos/ga4gh/server/pulls/603"}}},"pull_request":{"url":"https://api.github.com/repos/ga4gh/server/pulls/603","id":44005106,"html_url":"https://github.com/ga4gh/server/pull/603","diff_url":"https://github.com/ga4gh/server/pull/603.diff","patch_url":"https://github.com/ga4gh/server/pull/603.patch","issue_url":"https://api.github.com/repos/ga4gh/server/issues/603","number":603,"state":"open","locked":false,"title":"Added reference metadata + updated scripts.","user":{"login":"jeromekelleher","id":2664569,"avatar_url":"https://avatars.githubusercontent.com/u/2664569?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromekelleher","html_url":"https://github.com/jeromekelleher","followers_url":"https://api.github.com/users/jeromekelleher/followers","following_url":"https://api.github.com/users/jeromekelleher/following{/other_user}","gists_url":"https://api.github.com/users/jeromekelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromekelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromekelleher/subscriptions","organizations_url":"https://api.github.com/users/jeromekelleher/orgs","repos_url":"https://api.github.com/users/jeromekelleher/repos","events_url":"https://api.github.com/users/jeromekelleher/events{/privacy}","received_events_url":"https://api.github.com/users/jeromekelleher/received_events","type":"User","site_admin":false},"body":"Work in progress.\r\n\r\nAdds metadata to the reference object by associating a JSON file with it.\r\n\r\nDatadriven tests need to be fixed and extended.","created_at":"2015-09-02T15:22:36Z","updated_at":"2015-09-03T10:29:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f03488bee572dfb39b8171b13e0b60f9b74b5c34","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga4gh/server/pulls/603/commits","review_comments_url":"https://api.github.com/repos/ga4gh/server/pulls/603/comments","review_comment_url":"https://api.github.com/repos/ga4gh/server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga4gh/server/issues/603/comments","statuses_url":"https://api.github.com/repos/ga4gh/server/statuses/692ae5bb7b0402caa107511ade92c4845f12cb98","head":{"label":"jeromekelleher:references-metadata","ref":"references-metadata","sha":"692ae5bb7b0402caa107511ade92c4845f12cb98","user":{"login":"jeromekelleher","id":2664569,"avatar_url":"https://avatars.githubusercontent.com/u/2664569?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromekelleher","html_url":"https://github.com/jeromekelleher","followers_url":"https://api.github.com/users/jeromekelleher/followers","following_url":"https://api.github.com/users/jeromekelleher/following{/other_user}","gists_url":"https://api.github.com/users/jeromekelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromekelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromekelleher/subscriptions","organizations_url":"https://api.github.com/users/jeromekelleher/orgs","repos_url":"https://api.github.com/users/jeromekelleher/repos","events_url":"https://api.github.com/users/jeromekelleher/events{/privacy}","received_events_url":"https://api.github.com/users/jeromekelleher/received_events","type":"User","site_admin":false},"repo":{"id":22882845,"name":"server","full_name":"jeromekelleher/server","owner":{"login":"jeromekelleher","id":2664569,"avatar_url":"https://avatars.githubusercontent.com/u/2664569?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromekelleher","html_url":"https://github.com/jeromekelleher","followers_url":"https://api.github.com/users/jeromekelleher/followers","following_url":"https://api.github.com/users/jeromekelleher/following{/other_user}","gists_url":"https://api.github.com/users/jeromekelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromekelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromekelleher/subscriptions","organizations_url":"https://api.github.com/users/jeromekelleher/orgs","repos_url":"https://api.github.com/users/jeromekelleher/repos","events_url":"https://api.github.com/users/jeromekelleher/events{/privacy}","received_events_url":"https://api.github.com/users/jeromekelleher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeromekelleher/server","description":"A reference implementation of the APIs defined in the schemas repository.","fork":true,"url":"https://api.github.com/repos/jeromekelleher/server","forks_url":"https://api.github.com/repos/jeromekelleher/server/forks","keys_url":"https://api.github.com/repos/jeromekelleher/server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeromekelleher/server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeromekelleher/server/teams","hooks_url":"https://api.github.com/repos/jeromekelleher/server/hooks","issue_events_url":"https://api.github.com/repos/jeromekelleher/server/issues/events{/number}","events_url":"https://api.github.com/repos/jeromekelleher/server/events","assignees_url":"https://api.github.com/repos/jeromekelleher/server/assignees{/user}","branches_url":"https://api.github.com/repos/jeromekelleher/server/branches{/branch}","tags_url":"https://api.github.com/repos/jeromekelleher/server/tags","blobs_url":"https://api.github.com/repos/jeromekelleher/server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeromekelleher/server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeromekelleher/server/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeromekelleher/server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeromekelleher/server/statuses/{sha}","languages_url":"https://api.github.com/repos/jeromekelleher/server/languages","stargazers_url":"https://api.github.com/repos/jeromekelleher/server/stargazers","contributors_url":"https://api.github.com/repos/jeromekelleher/server/contributors","subscribers_url":"https://api.github.com/repos/jeromekelleher/server/subscribers","subscription_url":"https://api.github.com/repos/jeromekelleher/server/subscription","commits_url":"https://api.github.com/repos/jeromekelleher/server/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeromekelleher/server/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeromekelleher/server/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeromekelleher/server/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeromekelleher/server/contents/{+path}","compare_url":"https://api.github.com/repos/jeromekelleher/server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeromekelleher/server/merges","archive_url":"https://api.github.com/repos/jeromekelleher/server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeromekelleher/server/downloads","issues_url":"https://api.github.com/repos/jeromekelleher/server/issues{/number}","pulls_url":"https://api.github.com/repos/jeromekelleher/server/pulls{/number}","milestones_url":"https://api.github.com/repos/jeromekelleher/server/milestones{/number}","notifications_url":"https://api.github.com/repos/jeromekelleher/server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeromekelleher/server/labels{/name}","releases_url":"https://api.github.com/repos/jeromekelleher/server/releases{/id}","created_at":"2014-08-12T15:39:03Z","updated_at":"2015-02-12T09:23:10Z","pushed_at":"2015-09-02T15:20:26Z","git_url":"git://github.com/jeromekelleher/server.git","ssh_url":"git@github.com:jeromekelleher/server.git","clone_url":"https://github.com/jeromekelleher/server.git","svn_url":"https://github.com/jeromekelleher/server","homepage":null,"size":3362,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"ga4gh:develop","ref":"develop","sha":"2fe8072c85d55d1b06b61e2c94025abf310e3914","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":22882621,"name":"server","full_name":"ga4gh/server","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/server","description":"A reference implementation of the APIs defined in the schemas repository.","fork":false,"url":"https://api.github.com/repos/ga4gh/server","forks_url":"https://api.github.com/repos/ga4gh/server/forks","keys_url":"https://api.github.com/repos/ga4gh/server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga4gh/server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga4gh/server/teams","hooks_url":"https://api.github.com/repos/ga4gh/server/hooks","issue_events_url":"https://api.github.com/repos/ga4gh/server/issues/events{/number}","events_url":"https://api.github.com/repos/ga4gh/server/events","assignees_url":"https://api.github.com/repos/ga4gh/server/assignees{/user}","branches_url":"https://api.github.com/repos/ga4gh/server/branches{/branch}","tags_url":"https://api.github.com/repos/ga4gh/server/tags","blobs_url":"https://api.github.com/repos/ga4gh/server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga4gh/server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga4gh/server/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga4gh/server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga4gh/server/statuses/{sha}","languages_url":"https://api.github.com/repos/ga4gh/server/languages","stargazers_url":"https://api.github.com/repos/ga4gh/server/stargazers","contributors_url":"https://api.github.com/repos/ga4gh/server/contributors","subscribers_url":"https://api.github.com/repos/ga4gh/server/subscribers","subscription_url":"https://api.github.com/repos/ga4gh/server/subscription","commits_url":"https://api.github.com/repos/ga4gh/server/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga4gh/server/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga4gh/server/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga4gh/server/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga4gh/server/contents/{+path}","compare_url":"https://api.github.com/repos/ga4gh/server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga4gh/server/merges","archive_url":"https://api.github.com/repos/ga4gh/server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga4gh/server/downloads","issues_url":"https://api.github.com/repos/ga4gh/server/issues{/number}","pulls_url":"https://api.github.com/repos/ga4gh/server/pulls{/number}","milestones_url":"https://api.github.com/repos/ga4gh/server/milestones{/number}","notifications_url":"https://api.github.com/repos/ga4gh/server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga4gh/server/labels{/name}","releases_url":"https://api.github.com/repos/ga4gh/server/releases{/id}","created_at":"2014-08-12T15:31:49Z","updated_at":"2015-07-24T08:16:15Z","pushed_at":"2015-09-03T10:29:48Z","git_url":"git://github.com/ga4gh/server.git","ssh_url":"git@github.com:ga4gh/server.git","clone_url":"https://github.com/ga4gh/server.git","svn_url":"https://github.com/ga4gh/server","homepage":null,"size":6508,"stargazers_count":40,"watchers_count":40,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":62,"forks":42,"open_issues":62,"watchers":40,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ga4gh/server/pulls/603"},"html":{"href":"https://github.com/ga4gh/server/pull/603"},"issue":{"href":"https://api.github.com/repos/ga4gh/server/issues/603"},"comments":{"href":"https://api.github.com/repos/ga4gh/server/issues/603/comments"},"review_comments":{"href":"https://api.github.com/repos/ga4gh/server/pulls/603/comments"},"review_comment":{"href":"https://api.github.com/repos/ga4gh/server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga4gh/server/pulls/603/commits"},"statuses":{"href":"https://api.github.com/repos/ga4gh/server/statuses/692ae5bb7b0402caa107511ade92c4845f12cb98"}}}}