{"action":"created","issue":{"url":"https://api.github.com/repos/samtools/htslib/issues/390","repository_url":"https://api.github.com/repos/samtools/htslib","labels_url":"https://api.github.com/repos/samtools/htslib/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/samtools/htslib/issues/390/comments","events_url":"https://api.github.com/repos/samtools/htslib/issues/390/events","html_url":"https://github.com/samtools/htslib/pull/390","id":160430330,"number":390,"title":"Add Google Cloud Storage support to htslib.","user":{"login":"jakeakopp","id":1377517,"avatar_url":"https://avatars.githubusercontent.com/u/1377517?v=3","gravatar_id":"","url":"https://api.github.com/users/jakeakopp","html_url":"https://github.com/jakeakopp","followers_url":"https://api.github.com/users/jakeakopp/followers","following_url":"https://api.github.com/users/jakeakopp/following{/other_user}","gists_url":"https://api.github.com/users/jakeakopp/gists{/gist_id}","starred_url":"https://api.github.com/users/jakeakopp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakeakopp/subscriptions","organizations_url":"https://api.github.com/users/jakeakopp/orgs","repos_url":"https://api.github.com/users/jakeakopp/repos","events_url":"https://api.github.com/users/jakeakopp/events{/privacy}","received_events_url":"https://api.github.com/users/jakeakopp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-06-15T14:04:02Z","updated_at":"2016-06-22T22:01:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/samtools/htslib/pulls/390","html_url":"https://github.com/samtools/htslib/pull/390","diff_url":"https://github.com/samtools/htslib/pull/390.diff","patch_url":"https://github.com/samtools/htslib/pull/390.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/samtools/htslib/issues/comments/227890429","html_url":"https://github.com/samtools/htslib/pull/390#issuecomment-227890429","issue_url":"https://api.github.com/repos/samtools/htslib/issues/390","id":227890429,"user":{"login":"jrobinso","id":933148,"avatar_url":"https://avatars.githubusercontent.com/u/933148?v=3","gravatar_id":"","url":"https://api.github.com/users/jrobinso","html_url":"https://github.com/jrobinso","followers_url":"https://api.github.com/users/jrobinso/followers","following_url":"https://api.github.com/users/jrobinso/following{/other_user}","gists_url":"https://api.github.com/users/jrobinso/gists{/gist_id}","starred_url":"https://api.github.com/users/jrobinso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrobinso/subscriptions","organizations_url":"https://api.github.com/users/jrobinso/orgs","repos_url":"https://api.github.com/users/jrobinso/repos","events_url":"https://api.github.com/users/jrobinso/events{/privacy}","received_events_url":"https://api.github.com/users/jrobinso/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T22:01:08Z","updated_at":"2016-06-22T22:01:08Z","body":"Hi,\n\nIGV supports this by using googles web service for accessing cloud \nstorage files by https.  Its simple to do if you already support https.  \nHere's the javascript function that converts a gs:// url to the \nequivalent https.\n\nigv.translateGoogleCloudURL =function(gsUrl) {\n\n     var i = gsUrl.indexOf('/',5);\n     if (i <0) {\n         console.log(\"Invalid gs url: \" + gsUrl);\n         return gsUrl;\n     }\n\n     var bucket = gsUrl.substring(5,i);\n     var object =encodeURIComponent(gsUrl.substring(i +1));\n\n     return \"https://www.googleapis.com/storage/v1/b/\" +bucket +\"/o/\" +object +\"?alt=media\";\n\n\n\n}\n\n\n\n\n\nOn 6/22/16 11:23 AM, Sheila wrote:\n>\n> @jmarshall <https://github.com/jmarshall> -- if you send an email to \n> info@isb-cgc.org <mailto:info@isb-cgc.org> with your google identity, \n> we (the ISB-CGC <www.isb-cgc.org> team) can provide you (and other \n> htslib maintainers who may need it) with a GCP for test purposes\n>\n> I have also pinged @jrobinso <https://github.com/jrobinso> to ask if \n> he might be able to add his wisdom to this discussion since he has \n> implemented access to bam files stored in GCS inside IGV (though maybe \n> not from C)\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub \n> <https://github.com/samtools/htslib/pull/390#issuecomment-227833430>, \n> or mute the thread \n> <https://github.com/notifications/unsubscribe/AA49HFd2t7H7FMSg7Pi6-FXsjFOnA-3Rks5qOX2XgaJpZM4I2ZCL>.\n>\n\n"}}
{"actor":{"display_login":"jrobinso"}}