Skip to content

Commit

Permalink
feat(CloudVolume): created minimal implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Jul 25, 2017
1 parent 0499d27 commit 81f7e34
Show file tree
Hide file tree
Showing 17 changed files with 2,504 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@ ENV/

# mypy
.mypy_cache/

# OS X
.DS_Store

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2017,
Copyright (c) 2017, Ignacio Tartavull, William Silversmith, and later authors.
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,41 @@
# cloud-volume
Client for reading and writing to Neuroglancer Precomputed volumes on cloud services.

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

```
git clone [email protected]:seung-lab/cloud-volume.git
cd cloud-volume
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
```





Loading

0 comments on commit 81f7e34

Please sign in to comment.