Created
          August 24, 2017 02:41 
        
      - 
      
- 
        Save dyf/5bd9b802e3118b860333de6607f1f0bd to your computer and use it in GitHub Desktop. 
    save nrrd uncompressed
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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