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 * boss: The BOSS (https://docs.theboss.io/docs) * file: Local File System (absolute path)

### Examples

` 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 vol.save_mesh(12345) # save 12345 as ./12345.obj vol.save_mesh([12345, 12346, 12347]) # merge three segments into one obj `

## 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 mkvirtualenv cloud-volume workon cloud-volume 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.dev24.tar.gz (37.7 kB view details)

Uploaded Source

Built Distribution

cloud_volume-0.0.1.dev24-py2-none-any.whl (27.2 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for cloud-volume-0.0.1.dev24.tar.gz
Algorithm Hash digest
SHA256 f9f78395bdf81c14a73d22a4e6695c1ef30f7fb98548b769105fe8b6b398bf29
MD5 c413aae01b69379d35d6cd0ed18ede14
BLAKE2b-256 0f8f1dbed1ba76b0d277206bd51563c761c2b5b80e2391e5628f05823d79d152

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cloud_volume-0.0.1.dev24-py2-none-any.whl
Algorithm Hash digest
SHA256 ac4fb8fc9e7f34a33f7938dfb5a1700b5e2f004165983cd34a2b8d493406a6d2
MD5 e0be06982f453e7df1b845370f40a630
BLAKE2b-256 859041535fc2d007d8d69b02c958e18cd34411f3ef1f2f2ff023f4f1f6e0eefd

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