{"action":"created","comment":{"url":"https://api.github.com/repos/qiime2/qiime2/pulls/comments/69762353","id":69762353,"diff_hunk":"@@ -33,3 +35,14 @@ def _from_data_dir(cls, data_dir, provenance):\n         # shutil.copytree doesn't allow the destination directory to exist.\n         viz._archiver.save_data(data_dir, distutils.dir_util.copy_tree)\n         return viz\n+\n+    @classmethod\n+    def get_index_paths(cls, fp):","path":"qiime/sdk/visualization.py","position":15,"original_position":15,"commit_id":"c2a4bd4f25e5f9d9d7b0ba0b851e641eaca917f7","original_commit_id":"c2a4bd4f25e5f9d9d7b0ba0b851e641eaca917f7","user":{"login":"ebolyen","id":3976804,"avatar_url":"https://avatars.githubusercontent.com/u/3976804?v=3","gravatar_id":"","url":"https://api.github.com/users/ebolyen","html_url":"https://github.com/ebolyen","followers_url":"https://api.github.com/users/ebolyen/followers","following_url":"https://api.github.com/users/ebolyen/following{/other_user}","gists_url":"https://api.github.com/users/ebolyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ebolyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebolyen/subscriptions","organizations_url":"https://api.github.com/users/ebolyen/orgs","repos_url":"https://api.github.com/users/ebolyen/repos","events_url":"https://api.github.com/users/ebolyen/events{/privacy}","received_events_url":"https://api.github.com/users/ebolyen/received_events","type":"User","site_admin":false},"body":"It isn't necessarily true that `Visualization` will have a zipped form.","created_at":"2016-07-06T16:16:09Z","updated_at":"2016-07-06T16:16:09Z","html_url":"https://github.com/qiime2/qiime2/pull/76#discussion_r69762353","pull_request_url":"https://api.github.com/repos/qiime2/qiime2/pulls/76","_links":{"self":{"href":"https://api.github.com/repos/qiime2/qiime2/pulls/comments/69762353"},"html":{"href":"https://github.com/qiime2/qiime2/pull/76#discussion_r69762353"},"pull_request":{"href":"https://api.github.com/repos/qiime2/qiime2/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/qiime2/qiime2/pulls/76","id":76360368,"html_url":"https://github.com/qiime2/qiime2/pull/76","diff_url":"https://github.com/qiime2/qiime2/pull/76.diff","patch_url":"https://github.com/qiime2/qiime2/pull/76.patch","issue_url":"https://api.github.com/repos/qiime2/qiime2/issues/76","number":76,"state":"open","locked":false,"title":"adds ResultBase.extract and Visualization.get_indices","user":{"login":"gregcaporaso","id":192372,"avatar_url":"https://avatars.githubusercontent.com/u/192372?v=3","gravatar_id":"","url":"https://api.github.com/users/gregcaporaso","html_url":"https://github.com/gregcaporaso","followers_url":"https://api.github.com/users/gregcaporaso/followers","following_url":"https://api.github.com/users/gregcaporaso/following{/other_user}","gists_url":"https://api.github.com/users/gregcaporaso/gists{/gist_id}","starred_url":"https://api.github.com/users/gregcaporaso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregcaporaso/subscriptions","organizations_url":"https://api.github.com/users/gregcaporaso/orgs","repos_url":"https://api.github.com/users/gregcaporaso/repos","events_url":"https://api.github.com/users/gregcaporaso/events{/privacy}","received_events_url":"https://api.github.com/users/gregcaporaso/received_events","type":"User","site_admin":false},"body":"This is ready for review. \r\n\r\nHere's how I envision using this:\r\n\r\n```python\r\nIn [1]: from qiime.sdk import Visualization\r\n\r\nIn [2]: Visualization.get_index_paths('pd-compare.qzv')\r\nOut[2]: {'html': 'pd-compare/data/index.html'}\r\n\r\nIn [3]: Visualization.extract('pd-compare.qzv', '.')\r\nOut[3]: '.'\r\n\r\nIn [5]: index_paths = Visualization.get_index_paths('pd-compare.qzv')\r\n\r\nIn [6]: output_dir = Visualization.extract('pd-compare.qzv', '.')\r\n\r\nIn [9]: import os\r\n\r\nIn [12]: html_path = os.path.join(output_dir, index_paths['html'])\r\n\r\nIn [13]: os.path.exists(html_path)\r\nOut[13]: True\r\n```","created_at":"2016-07-05T23:49:37Z","updated_at":"2016-07-06T16:16:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84e10449624a6c515978736f8978026cc93d7995","assignee":{"login":"ebolyen","id":3976804,"avatar_url":"https://avatars.githubusercontent.com/u/3976804?v=3","gravatar_id":"","url":"https://api.github.com/users/ebolyen","html_url":"https://github.com/ebolyen","followers_url":"https://api.github.com/users/ebolyen/followers","following_url":"https://api.github.com/users/ebolyen/following{/other_user}","gists_url":"https://api.github.com/users/ebolyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ebolyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebolyen/subscriptions","organizations_url":"https://api.github.com/users/ebolyen/orgs","repos_url":"https://api.github.com/users/ebolyen/repos","events_url":"https://api.github.com/users/ebolyen/events{/privacy}","received_events_url":"https://api.github.com/users/ebolyen/received_events","type":"User","site_admin":false},"assignees":[{"login":"ebolyen","id":3976804,"avatar_url":"https://avatars.githubusercontent.com/u/3976804?v=3","gravatar_id":"","url":"https://api.github.com/users/ebolyen","html_url":"https://github.com/ebolyen","followers_url":"https://api.github.com/users/ebolyen/followers","following_url":"https://api.github.com/users/ebolyen/following{/other_user}","gists_url":"https://api.github.com/users/ebolyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ebolyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebolyen/subscriptions","organizations_url":"https://api.github.com/users/ebolyen/orgs","repos_url":"https://api.github.com/users/ebolyen/repos","events_url":"https://api.github.com/users/ebolyen/events{/privacy}","received_events_url":"https://api.github.com/users/ebolyen/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/qiime2/qiime2/pulls/76/commits","review_comments_url":"https://api.github.com/repos/qiime2/qiime2/pulls/76/comments","review_comment_url":"https://api.github.com/repos/qiime2/qiime2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qiime2/qiime2/issues/76/comments","statuses_url":"https://api.github.com/repos/qiime2/qiime2/statuses/c2a4bd4f25e5f9d9d7b0ba0b851e641eaca917f7","head":{"label":"gregcaporaso:issue-74","ref":"issue-74","sha":"c2a4bd4f25e5f9d9d7b0ba0b851e641eaca917f7","user":{"login":"gregcaporaso","id":192372,"avatar_url":"https://avatars.githubusercontent.com/u/192372?v=3","gravatar_id":"","url":"https://api.github.com/users/gregcaporaso","html_url":"https://github.com/gregcaporaso","followers_url":"https://api.github.com/users/gregcaporaso/followers","following_url":"https://api.github.com/users/gregcaporaso/following{/other_user}","gists_url":"https://api.github.com/users/gregcaporaso/gists{/gist_id}","starred_url":"https://api.github.com/users/gregcaporaso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregcaporaso/subscriptions","organizations_url":"https://api.github.com/users/gregcaporaso/orgs","repos_url":"https://api.github.com/users/gregcaporaso/repos","events_url":"https://api.github.com/users/gregcaporaso/events{/privacy}","received_events_url":"https://api.github.com/users/gregcaporaso/received_events","type":"User","site_admin":false},"repo":{"id":53688129,"name":"qiime2","full_name":"gregcaporaso/qiime2","owner":{"login":"gregcaporaso","id":192372,"avatar_url":"https://avatars.githubusercontent.com/u/192372?v=3","gravatar_id":"","url":"https://api.github.com/users/gregcaporaso","html_url":"https://github.com/gregcaporaso","followers_url":"https://api.github.com/users/gregcaporaso/followers","following_url":"https://api.github.com/users/gregcaporaso/following{/other_user}","gists_url":"https://api.github.com/users/gregcaporaso/gists{/gist_id}","starred_url":"https://api.github.com/users/gregcaporaso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregcaporaso/subscriptions","organizations_url":"https://api.github.com/users/gregcaporaso/orgs","repos_url":"https://api.github.com/users/gregcaporaso/repos","events_url":"https://api.github.com/users/gregcaporaso/events{/privacy}","received_events_url":"https://api.github.com/users/gregcaporaso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gregcaporaso/qiime2","description":"It has begun...","fork":true,"url":"https://api.github.com/repos/gregcaporaso/qiime2","forks_url":"https://api.github.com/repos/gregcaporaso/qiime2/forks","keys_url":"https://api.github.com/repos/gregcaporaso/qiime2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gregcaporaso/qiime2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gregcaporaso/qiime2/teams","hooks_url":"https://api.github.com/repos/gregcaporaso/qiime2/hooks","issue_events_url":"https://api.github.com/repos/gregcaporaso/qiime2/issues/events{/number}","events_url":"https://api.github.com/repos/gregcaporaso/qiime2/events","assignees_url":"https://api.github.com/repos/gregcaporaso/qiime2/assignees{/user}","branches_url":"https://api.github.com/repos/gregcaporaso/qiime2/branches{/branch}","tags_url":"https://api.github.com/repos/gregcaporaso/qiime2/tags","blobs_url":"https://api.github.com/repos/gregcaporaso/qiime2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gregcaporaso/qiime2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gregcaporaso/qiime2/git/refs{/sha}","trees_url":"https://api.github.com/repos/gregcaporaso/qiime2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gregcaporaso/qiime2/statuses/{sha}","languages_url":"https://api.github.com/repos/gregcaporaso/qiime2/languages","stargazers_url":"https://api.github.com/repos/gregcaporaso/qiime2/stargazers","contributors_url":"https://api.github.com/repos/gregcaporaso/qiime2/contributors","subscribers_url":"https://api.github.com/repos/gregcaporaso/qiime2/subscribers","subscription_url":"https://api.github.com/repos/gregcaporaso/qiime2/subscription","commits_url":"https://api.github.com/repos/gregcaporaso/qiime2/commits{/sha}","git_commits_url":"https://api.github.com/repos/gregcaporaso/qiime2/git/commits{/sha}","comments_url":"https://api.github.com/repos/gregcaporaso/qiime2/comments{/number}","issue_comment_url":"https://api.github.com/repos/gregcaporaso/qiime2/issues/comments{/number}","contents_url":"https://api.github.com/repos/gregcaporaso/qiime2/contents/{+path}","compare_url":"https://api.github.com/repos/gregcaporaso/qiime2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gregcaporaso/qiime2/merges","archive_url":"https://api.github.com/repos/gregcaporaso/qiime2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gregcaporaso/qiime2/downloads","issues_url":"https://api.github.com/repos/gregcaporaso/qiime2/issues{/number}","pulls_url":"https://api.github.com/repos/gregcaporaso/qiime2/pulls{/number}","milestones_url":"https://api.github.com/repos/gregcaporaso/qiime2/milestones{/number}","notifications_url":"https://api.github.com/repos/gregcaporaso/qiime2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gregcaporaso/qiime2/labels{/name}","releases_url":"https://api.github.com/repos/gregcaporaso/qiime2/releases{/id}","deployments_url":"https://api.github.com/repos/gregcaporaso/qiime2/deployments","created_at":"2016-03-11T18:28:58Z","updated_at":"2016-03-11T18:28:58Z","pushed_at":"2016-07-06T16:05:53Z","git_url":"git://github.com/gregcaporaso/qiime2.git","ssh_url":"git@github.com:gregcaporaso/qiime2.git","clone_url":"https://github.com/gregcaporaso/qiime2.git","svn_url":"https://github.com/gregcaporaso/qiime2","homepage":"http://www.qiime.org","size":162,"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":"qiime2:master","ref":"master","sha":"d92611ed596673ab25c2f79a7bf2ce2c998d538f","user":{"login":"qiime2","id":18176583,"avatar_url":"https://avatars.githubusercontent.com/u/18176583?v=3","gravatar_id":"","url":"https://api.github.com/users/qiime2","html_url":"https://github.com/qiime2","followers_url":"https://api.github.com/users/qiime2/followers","following_url":"https://api.github.com/users/qiime2/following{/other_user}","gists_url":"https://api.github.com/users/qiime2/gists{/gist_id}","starred_url":"https://api.github.com/users/qiime2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiime2/subscriptions","organizations_url":"https://api.github.com/users/qiime2/orgs","repos_url":"https://api.github.com/users/qiime2/repos","events_url":"https://api.github.com/users/qiime2/events{/privacy}","received_events_url":"https://api.github.com/users/qiime2/received_events","type":"Organization","site_admin":false},"repo":{"id":50697819,"name":"qiime2","full_name":"qiime2/qiime2","owner":{"login":"qiime2","id":18176583,"avatar_url":"https://avatars.githubusercontent.com/u/18176583?v=3","gravatar_id":"","url":"https://api.github.com/users/qiime2","html_url":"https://github.com/qiime2","followers_url":"https://api.github.com/users/qiime2/followers","following_url":"https://api.github.com/users/qiime2/following{/other_user}","gists_url":"https://api.github.com/users/qiime2/gists{/gist_id}","starred_url":"https://api.github.com/users/qiime2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiime2/subscriptions","organizations_url":"https://api.github.com/users/qiime2/orgs","repos_url":"https://api.github.com/users/qiime2/repos","events_url":"https://api.github.com/users/qiime2/events{/privacy}","received_events_url":"https://api.github.com/users/qiime2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qiime2/qiime2","description":"Official repository for the QIIME 2 framework","fork":false,"url":"https://api.github.com/repos/qiime2/qiime2","forks_url":"https://api.github.com/repos/qiime2/qiime2/forks","keys_url":"https://api.github.com/repos/qiime2/qiime2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qiime2/qiime2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qiime2/qiime2/teams","hooks_url":"https://api.github.com/repos/qiime2/qiime2/hooks","issue_events_url":"https://api.github.com/repos/qiime2/qiime2/issues/events{/number}","events_url":"https://api.github.com/repos/qiime2/qiime2/events","assignees_url":"https://api.github.com/repos/qiime2/qiime2/assignees{/user}","branches_url":"https://api.github.com/repos/qiime2/qiime2/branches{/branch}","tags_url":"https://api.github.com/repos/qiime2/qiime2/tags","blobs_url":"https://api.github.com/repos/qiime2/qiime2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qiime2/qiime2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qiime2/qiime2/git/refs{/sha}","trees_url":"https://api.github.com/repos/qiime2/qiime2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qiime2/qiime2/statuses/{sha}","languages_url":"https://api.github.com/repos/qiime2/qiime2/languages","stargazers_url":"https://api.github.com/repos/qiime2/qiime2/stargazers","contributors_url":"https://api.github.com/repos/qiime2/qiime2/contributors","subscribers_url":"https://api.github.com/repos/qiime2/qiime2/subscribers","subscription_url":"https://api.github.com/repos/qiime2/qiime2/subscription","commits_url":"https://api.github.com/repos/qiime2/qiime2/commits{/sha}","git_commits_url":"https://api.github.com/repos/qiime2/qiime2/git/commits{/sha}","comments_url":"https://api.github.com/repos/qiime2/qiime2/comments{/number}","issue_comment_url":"https://api.github.com/repos/qiime2/qiime2/issues/comments{/number}","contents_url":"https://api.github.com/repos/qiime2/qiime2/contents/{+path}","compare_url":"https://api.github.com/repos/qiime2/qiime2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qiime2/qiime2/merges","archive_url":"https://api.github.com/repos/qiime2/qiime2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qiime2/qiime2/downloads","issues_url":"https://api.github.com/repos/qiime2/qiime2/issues{/number}","pulls_url":"https://api.github.com/repos/qiime2/qiime2/pulls{/number}","milestones_url":"https://api.github.com/repos/qiime2/qiime2/milestones{/number}","notifications_url":"https://api.github.com/repos/qiime2/qiime2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qiime2/qiime2/labels{/name}","releases_url":"https://api.github.com/repos/qiime2/qiime2/releases{/id}","deployments_url":"https://api.github.com/repos/qiime2/qiime2/deployments","created_at":"2016-01-29T23:15:03Z","updated_at":"2016-06-23T16:35:04Z","pushed_at":"2016-07-06T16:05:54Z","git_url":"git://github.com/qiime2/qiime2.git","ssh_url":"git@github.com:qiime2/qiime2.git","clone_url":"https://github.com/qiime2/qiime2.git","svn_url":"https://github.com/qiime2/qiime2","homepage":"http://americangut.org/qiime-2-will-revolutionize-microbiome-bioinformatics/","size":256,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":24,"forks":9,"open_issues":24,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qiime2/qiime2/pulls/76"},"html":{"href":"https://github.com/qiime2/qiime2/pull/76"},"issue":{"href":"https://api.github.com/repos/qiime2/qiime2/issues/76"},"comments":{"href":"https://api.github.com/repos/qiime2/qiime2/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/qiime2/qiime2/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/qiime2/qiime2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qiime2/qiime2/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/qiime2/qiime2/statuses/c2a4bd4f25e5f9d9d7b0ba0b851e641eaca917f7"}}}}
{"actor":{"display_login":"ebolyen"}}