Skip to main content

Read and write neuroglancer Precomputed formats to cloud storage

Project description

[![Build Status](https://travis-ci.org/seung-lab/cloud-volume.svg?branch=master)](https://travis-ci.org/seung-lab/cloud-volume)

# cloud-volume

Python client for reading and writing to Neuroglancer Precomputed volumes on cloud services. (https://github.com/google/neuroglancer/tree/master/src/neuroglancer/datasource/precomputed)

When working with a particular dataset, say an EM scan of a mouse, fish, or fly brain, you’ll typically store that as a grayscale data layer accessible to neuroglanger. You may store additional labellings and processing results as other layers.

## Usage

Supports reading and writing to neuroglancer data layers on Amazon S3, Google Storage, and the local file system.

Supported URLs are of the forms:

$PROTOCOL://$BUCKET/$DATASET/$LAYER

Supported Protocols:
  • gs: Google Storage

  • s3: Amazon S3

  • file: Local File System (absolute path)

` vol = CloudVolume('gs://mybucket/retina/image') # Basic Example image = vol[:,:,:] # Download the entire image stack into a numpy array vol[64:128, 64:128, 64:128] = image # Write a 64^3 image to the volume `

## Setup

You’ll need to set up your cloud credentials as well as the main install.

### Credentials

` mkdir -p ~/.neuroglancer/secrets/ echo $GOOGLE_STORAGE_PROJECT > ~/.neuroglancer/project_name # needed for Google mv aws-secret.json ~/.neuroglancer/secrets/ # needed for Google mv google-secret.json ~/.neuroglancer/secrets/ # needed for Amazon `

### pip

` pip install cloud-volume `

### Manual ` git clone git@github.com:seung-lab/cloud-volume.git cd cloud-volume virtualenv venv source venv/bin/activate pip install -e . `

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloud-volume-0.0.1.dev19.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

cloud_volume-0.0.1.dev19-py2-none-any.whl (27.0 kB view details)

Uploaded Python 2

File details

Details for the file cloud-volume-0.0.1.dev19.tar.gz.

File metadata

File hashes

Hashes for cloud-volume-0.0.1.dev19.tar.gz
Algorithm Hash digest
SHA256 cda01bf0c44aac43a322d0f4a204f5f9fdb937aebd7563f0eb368c85e7862a91
MD5 02ca708db878141f4017d14f909f1e8c
BLAKE2b-256 afd051addf3f06e11c7a3c2a6cda97f64219977347a5da3d842a051a494932d9

See more details on using hashes here.

File details

Details for the file cloud_volume-0.0.1.dev19-py2-none-any.whl.

File metadata

File hashes

Hashes for cloud_volume-0.0.1.dev19-py2-none-any.whl
Algorithm Hash digest
SHA256 0d55d4822df0934cf3dc72813901bafbdfe6fb41b8cc477a0eb956f27ffc525c
MD5 efd35cfd045d00eccdc4a97de17723ab
BLAKE2b-256 2bd8b9c4de5096c9e37d1feabb01ac8fd343ce8ce984257fefe9110e27edbd06

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page