{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Co-plotting flywire mesh with FAFB autosegments" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### This section contains example of fetching meshes from flywire and co-plotting with automatically segmented data in FAFB" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Import neccesary library modules now" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import navis\n", "import fafbseg\n", "import pymaid" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "import os\n", "from copy import deepcopy" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "from pyroglancer.layers import create_nglayer\n", "from pyroglancer.localserver import startdataserver, closedataserver\n", "from pyroglancer.ngviewer import openviewer, closeviewer\n", "from pyroglancer.ngspaces import create_ngspace\n", "from pyroglancer.createconfig import createconfig" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Fetch meshes from flywire" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "#set the flywire token here if you haven't set before..\n", "#fafbseg.flywire.set_chunkedgraph_secret(\"blabla\")" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "#mesh in flywire for which to find a match..\n", "flywire_id = 720575940633919863" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | \n", " |
|---|---|
| type | \n", "navis.MeshNeuron | \n", "
| name | \n", "None | \n", "
| id | \n", "720575940633919863 | \n", "
| units | \n", "1 nanometer | \n", "
| n_vertices | \n", "785994 | \n", "
| n_faces | \n", "1575396 | \n", "