{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "ExecuteTime": { "end_time": "2019-02-27T01:54:30.072018Z", "start_time": "2019-02-27T01:54:26.658368Z" } }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/mnt/cube/tsainbur/conda_envs/tpy3/lib/python3.6/site-packages/tqdm/autonotebook/__init__.py:14: TqdmExperimentalWarning: Using `tqdm.autonotebook.tqdm` in notebook mode. Use `tqdm.tqdm` instead to force console mode (e.g. in jupyter console)\n", " \" (e.g. in jupyter console)\", TqdmExperimentalWarning)\n" ] } ], "source": [ "from birdbrain.atlas import atlas\n", "import numpy as np\n", "from birdbrain.visualization.plotting_3d import plot_regions_3d, rotate_plot" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "ExecuteTime": { "end_time": "2019-02-27T01:54:32.152182Z", "start_time": "2019-02-27T01:54:30.075016Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Data already download\n", "Getting voxel data from .img files...\n", "Getting location for each nucleus/region from voxel data...\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "", "version_major": 2, "version_minor": 0 }, "text/plain": [ "HBox(children=(IntProgress(value=0, max=41), HTML(value='')))" ] }, "metadata": {}, "output_type": "display_data" }, { "name": "stdout", "output_type": "stream", "text": [ "\r", "Atlas created\n" ] } ], "source": [ "dset_dir = '../../data/processed/mustached_bat/'\n", "\n", "mustached_bat_atlas = atlas(\n", " species = 'mustached_bat',\n", " dset_dir = dset_dir,\n", " um_mult = 1000,\n", " smoothing = []#['Brain', 'Brainregions']\n", ")" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "ExecuteTime": { "end_time": "2019-02-27T01:54:32.163769Z", "start_time": "2019-02-27T01:54:32.154344Z" } }, "outputs": [ { "data": { "text/plain": [ "array([['Exterior', 'Mustached_bat_delineations'],\n", " ['Inferior.Colliculus_IC', 'Mustached_bat_delineations'],\n", " ['Commissure.of.Inferior.Colliculus_cic',\n", " 'Mustached_bat_delineations']], dtype='