hammerlab / cohorts

Utilities for analyzing mutations and neoepitopes in patient cohorts
Apache License 2.0
20 stars 4 forks source link

add get-blob method to gcio #244

Closed jburos closed 7 years ago

jburos commented 7 years ago

Very minor PR to add get_blob method.

This allows one to use other methods on the blob (e.g. checksum, or get filesize) that are not directly supported by our gcloud_storage.py methods.

In my scenario, I wanted to test for a filesize of 0 in order to handle an edge case in my download-from-gcloud-to-local-device code. The empty files failed to download.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.2%) to 52.53% when pulling 5b15dcb02248111768e3d7dfc92fc34171bad9a5 on add-get-blob into c5844cd91a5e27308b59d870b4bf34dfe331e80e on master.