Skip to content

Instantly share code, notes, and snippets.

@dyf
Created August 24, 2017 02:41
Show Gist options
  • Save dyf/5bd9b802e3118b860333de6607f1f0bd to your computer and use it in GitHub Desktop.
Save dyf/5bd9b802e3118b860333de6607f1f0bd to your computer and use it in GitHub Desktop.
save nrrd uncompressed
from allensdk.core.mouse_connectivity_cache import MouseConnectivityCache
import nrrd
mcc = MouseConnectivityCache(manifest_file="/data/dynamic-brain-workshop/mouse_connectivity_cache/mouse_connectivity_manifest.json")
exps = mcc.get_experiments()
pd, _ = mcc.get_projection_density(exps[0]['id'])
nrrd.write('some_file.nrrd', pd, options={ 'encoding': 'raw' })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment