<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Virtual Fly Brain – python</title>
    <link>https://www.virtualflybrain.org/categories/python/</link>
    <description>Recent content in python on Virtual Fly Brain</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Thu, 30 Jan 2025 00:00:00 +0000</lastBuildDate>
    
	  <atom:link href="https://www.virtualflybrain.org/categories/python/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Docs: Tool landscape</title>
      <link>https://www.virtualflybrain.org/docs/past-workshops/connectome/tools/</link>
      <pubDate>Mon, 27 Dec 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.virtualflybrain.org/docs/past-workshops/connectome/tools/</guid>
      <description>
        
        
        &lt;p align=&#34;center&#34;&gt;
&lt;img src=&#34;https://github.com/VirtualFlyBrain/training/raw/main/presentations/_static/vfb_workshop.png&#34; width=&#34;600&#34;&gt;
&lt;/p&gt;
&lt;p&gt;Below are brief descriptions of the libraries/packages. For details, I defer
to their respective (excellent) documentations.&lt;/p&gt;
&lt;h2 id=&#34;querying-vfb&#34;&gt;Querying VFB&lt;/h2&gt;
&lt;p&gt;Queries against VFB&amp;rsquo;s REST API are easiest with
&lt;a href=&#34;https://vfb-connect.readthedocs.io/&#34;&gt;&lt;code&gt;vfb_connect&lt;/code&gt;&lt;/a&gt; for Python.
For R there is a &lt;code&gt;vfb_connect&lt;/code&gt; wrapper, &lt;a href=&#34;https://github.com/jefferis/vfbconnectr&#34;&gt;&lt;code&gt;vfbconnectr&lt;/code&gt;&lt;/a&gt;.
See also David&amp;rsquo;s presentation for details.&lt;/p&gt;
&lt;h2 id=&#34;r&#34;&gt;R&lt;/h2&gt;
&lt;p&gt;In R, the &lt;a href=&#34;http://natverse.org&#34;&gt;natverse&lt;/a&gt; is your one-stop-shop for all things
neuron: it&amp;rsquo;s a collection of various R packages that are built on top of
the &lt;strong&gt;n&lt;/strong&gt;euro&lt;strong&gt;a&lt;/strong&gt;natomy &lt;strong&gt;t&lt;/strong&gt;oolbox, &lt;code&gt;nat&lt;/code&gt;. Of particular relevance for
this workshop:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;http://natverse.org/nat/&#34;&gt;&lt;code&gt;nat&lt;/code&gt;&lt;/a&gt; is a general purpose library for working
with morphological neuron data. In this workshop, we make heavy use of
&lt;code&gt;nat&lt;/code&gt;&amp;rsquo;s plotting capabilities but its capabilities extend far beyond that.
If you want to run any morphological analysis, I highly recommend
you have a look at the &amp;ldquo;Articles&amp;rdquo; in nat&amp;rsquo;s &lt;a href=&#34;http://natverse.org/nat/&#34;&gt;doc&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;http://natverse.org/neuprintr/reference/&#34;&gt;&lt;code&gt;neuprintr&lt;/code&gt;&lt;/a&gt; and
&lt;a href=&#34;http://natverse.org/hemibrainr/&#34;&gt;&lt;code&gt;hemibrainr&lt;/code&gt;&lt;/a&gt; provide an interface with
neuprint and the Janelia hemibrain dataset
(&lt;a href=&#34;https://neuprint.janelia.org&#34;&gt;link&lt;/a&gt;). The former lets you run queries
against neuprint&amp;rsquo;s neo4j database while the latter contains meta data
and various convenience functions to work with the hemibrain dataset.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;http://natverse.org/rcatmaid/&#34;&gt;&lt;code&gt;rcatmaid&lt;/code&gt;&lt;/a&gt; provides an interface with
CATMAID servers such as those the VFB uses to host published from the
FAFB or larval fruit fly dataset. &lt;code&gt;rcatmaid&lt;/code&gt; is built on top of &lt;code&gt;nat&lt;/code&gt; and
you can use &lt;code&gt;nat&lt;/code&gt; functions with neurons pulled via &lt;code&gt;rcatmaid&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;python&#34;&gt;Python&lt;/h2&gt;
&lt;p&gt;In Python, we find packages analogous to those in R:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&#34;https://navis.readthedocs.io/en/latest/&#34;&gt;&lt;code&gt;navis&lt;/code&gt;&lt;/a&gt; is &lt;code&gt;nat&lt;/code&gt;&amp;rsquo;s serpentine
sibling: a general purpose neuron library for visualization and analysis
of neuronal morphologies. It also features interfaces e.g. with
&lt;a href=&#34;https://www.blender.org&#34;&gt;Blender 3D&lt;/a&gt; and the &lt;code&gt;natverse&lt;/code&gt; via &lt;code&gt;rpy2&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/connectome-neuprint/neuprint-python&#34;&gt;&lt;code&gt;python-neuprint&lt;/code&gt;&lt;/a&gt;
is a Python library to interface with neuprint maintained by Janelia. Note
that &lt;code&gt;navis&lt;/code&gt; wraps this library and adds some convenience functions.
See &lt;a href=&#34;https://navis.readthedocs.io/en/latest/source/tutorials/neuprint.html&#34;&gt;this&lt;/a&gt; tutorial.&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://pymaid.readthedocs.io/en/latest/&#34;&gt;&lt;code&gt;pymaid&lt;/code&gt;&lt;/a&gt; lets you interface with
CATMAID servers. Critically, it&amp;rsquo;s built on top of &lt;code&gt;navis&lt;/code&gt; and you can
natively use &lt;code&gt;navis&lt;/code&gt; functions with &lt;code&gt;pymaid&lt;/code&gt; neurons. Note that due to a
name clash the library is called &lt;code&gt;python-catmaid&lt;/code&gt; on PyPI.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;noteworthy-mentions&#34;&gt;Noteworthy mentions&lt;/h2&gt;
&lt;p&gt;There are a few more packages/functions that you might hear of over the course
of the workshop.&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
&lt;img src=&#34;https://github.com/VirtualFlyBrain/training/raw/main/presentations/_static/vfb_workshop2.png&#34; width=&#34;600&#34;&gt;
&lt;/p&gt;
&lt;h3 id=&#34;nblast&#34;&gt;NBLAST&lt;/h3&gt;
&lt;p&gt;NBLAST is an algorithm that computes morphological similarity between neurons
(&lt;a href=&#34;https://www.cell.com/neuron/fulltext/S0896-6273(16)30265-3?_returnURL=https%3A%2F%2Flinkinghub.elsevier.com%2Fretrieve%2Fpii%2FS0896627316302653%3Fshowall%3Dtrue&#34;&gt;Costa et al., 2016&lt;/a&gt;). This has proven incredibly useful to find similar
neurons across datasets but also to cluster neurons into cell types.&lt;/p&gt;
&lt;p&gt;On the R side the algorithm is implemented in
&lt;a href=&#34;https://natverse.github.io/nat.nblast/&#34;&gt;&lt;code&gt;nat.nblast&lt;/code&gt;&lt;/a&gt; and in Python it is
part of &lt;code&gt;navis&lt;/code&gt; (see this &lt;a href=&#34;https://navis.readthedocs.io/en/latest/source/tutorials/nblast.html&#34;&gt;tutorial&lt;/a&gt;).&lt;/p&gt;
&lt;h3 id=&#34;transforms&#34;&gt;Transforms&lt;/h3&gt;
&lt;p&gt;You will note that neurons pulled from VFB are typically in the same
template space which makes co-visualization of neurons from different
datasets a breeze. If you want to transform spatial data between
template brains, e.g. from FAFB (&amp;ldquo;FAFB14&amp;rdquo;) to hemibrain (&amp;ldquo;JRCFIB2018F&amp;rdquo;), you
should look for &lt;a href=&#34;https://natverse.github.io/nat.flybrains/&#34;&gt;&lt;code&gt;nat.flybrains&lt;/code&gt;&lt;/a&gt; &amp;amp; &lt;a href=&#34;https://github.com/natverse/nat.jrcbrains&#34;&gt;&lt;code&gt;nat.jrcbrains&lt;/code&gt;&lt;/a&gt; in R and
&lt;a href=&#34;https://github.com/schlegelp/navis-flybrains&#34;&gt;&lt;code&gt;navis-flybrains&lt;/code&gt;&lt;/a&gt; in Python.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: Introduction to connectomic data and tools</title>
      <link>https://www.virtualflybrain.org/docs/past-workshops/connectome/introvideo/</link>
      <pubDate>Tue, 04 May 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.virtualflybrain.org/docs/past-workshops/connectome/introvideo/</guid>
      <description>
        
        
        
&lt;div style=&#34;position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;&#34;&gt;
  &lt;iframe src=&#34;https://www.youtube.com/embed/FfhAgQLxx0Q?autoplay=1&#34; style=&#34;position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;&#34; allowfullscreen title=&#34;YouTube Video&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;


      </description>
    </item>
    
    <item>
      <title>Docs: Hacking the connectome workshop materials</title>
      <link>https://www.virtualflybrain.org/docs/past-workshops/connectome/</link>
      <pubDate>Wed, 04 Jan 2017 00:00:00 +0000</pubDate>
      
      <guid>https://www.virtualflybrain.org/docs/past-workshops/connectome/</guid>
      <description>
        
        
        &lt;p&gt;Below you can watch the recorded introduction session of our workshop and follow along with the workshop notebooks we work through to show examples of how you can use the available  {{ ref &amp;ldquo;tools.md&amp;rdquo; tools }} to explore and analyse the published connectomes available on VFB.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: Workshop Materials</title>
      <link>https://www.virtualflybrain.org/docs/past-workshops/</link>
      <pubDate>Thu, 30 Jan 2025 00:00:00 +0000</pubDate>
      
      <guid>https://www.virtualflybrain.org/docs/past-workshops/</guid>
      <description>
        
        
        &lt;p&gt;Materials from past workshops run by VFB.&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
