Skip to content

Instantly share code, notes, and snippets.

@slarson
slarson / OpenWorm-Office-11-7-12
Created November 7, 2012 18:41
OpenWorm Office Hours 11/7/12
["Welcome to OpenWorm office!"]
[09:27] == OpenWorm [6cd86e7a@gateway/web/freenode/ip.108.216.110.122] has joined #openworm-office
[09:28] <OpenWorm> hi tarelli
[09:31] <@tarelli> sup
[09:32] == mode/#openworm-office [+o OpenWorm] by tarelli
[09:32] == tarelli changed the topic of #openworm-office to: "Welcome to OpenWorm office!"
[09:36] == lambdanaut [~lambdanau@rrcs-70-63-207-139.midsouth.biz.rr.com] has joined #openworm-office
[09:36] <lambdanaut> Hello!
[09:36] <lambdanaut> You guys need better advertising. There needs to at LEAST be a hundred people in here right now.
[09:37] <@tarelli> agreed:)
@slarson
slarson / gist:4126820
Created November 21, 2012 18:46
OpenWorm Office Hours 11/21/12
[09:35] <+openworm> who has a question i can answer?
[09:36] <+openworm> It has been an interesting few weeks for the project
[09:37] <+openworm> we are reaching the end of our third release
[09:37] <+openworm> meaning we will have some new downloads by the beginning of december
[09:37] <+xrazybud> where will they be available?
[09:37] <+openworm> we will post on twitter, tumblr, g+
[09:38] <+openworm> i'm thinking we may need to add a download section to our website
[09:38] <+openworm> right now our downloads are a bit scattered
[09:38] <+openworm> here is where they are right now
[09:38] <+openworm> https://code.google.com/p/openworm/downloads/list
@slarson
slarson / OpenWorm-Office-12-5-12
Created December 5, 2012 19:07
OpenWorm Office Hours 12/5/12
[09:27] <juan_idolo> Yolo!
[09:27] <@OpenWorm> haha
[09:29] <@OpenWorm> How are we doing ?
[09:35] <juan_idolo> all good ;)
[09:35] <@OpenWorm> To kick off our conversation, I wanted to show you guys the progress we made in release 3: https://docs.google.com/document/d/1cg1YnKI92tN9HZeXachTfpRlKP10OuJhXlRBabeTnuI/edit#
[09:35] <@OpenWorm> We are still working to add links to this document before mailing it out, but the accomplishments are there.
[09:36] <@OpenWorm> if folks have questions about this stuff it would be interesting to hear as I can clarify them now
[09:36] == Jeff2 [~Adium@cpc1-cmbg14-2-0-cust156.5-4.cable.virginmedia.com] has joined #openworm-office
[09:36] <@OpenWorm> Hi Jeff
[09:36] <Jeff2> Hello
@slarson
slarson / OpenWorm-Office-1-30-13
Created January 30, 2013 18:42
OpenWorm Office Hours 1/30/13
09:20] == JimLacey [~androirc@212.183.128.38] has joined #openworm-office
[09:20] <@OpenWorm> Hi Jim
[09:21] <JimLacey> Hi got an android irc client this time. Much better :-)
[09:21] <@OpenWorm> Cool!
[09:22] <JimLacey> You're all here early, thought I would test before anyone joined
[09:30] <vellamike> I think we are ready to begin?
[09:31] <@OpenWorm> Yes -- hi everyone
[09:31] <vellamike> hello all
[09:31] <john_idol> hi
[09:32] <@OpenWorm> We started up a conversation on our discuss mailing list about multi-compartmental neuronal solvers -- this might be a good topic to carry into this session
@slarson
slarson / gist:5102708
Created March 6, 2013 20:21
Sample revision of d3-converter.py
#OpenWorm CSV to JSON
#Author: Gaston Gentile
import gspread, getpass, os
os.system('clear')
#Primer paso, los datos son tomados / First Step, data is taken.
def start():
print 'Convert CSV to JSON'
[
{"name":"flare.analytics.cluster.AgglomerativeCluster","size":3938,"imports":["flare.animate.Transitioner","flare.vis.data.DataList","flare.util.math.IMatrix","flare.analytics.cluster.MergeEdge","flare.analytics.cluster.HierarchicalCluster","flare.vis.data.Data"]},
{"name":"flare.analytics.cluster.CommunityStructure","size":3812,"imports":["flare.analytics.cluster.HierarchicalCluster","flare.animate.Transitioner","flare.vis.data.DataList","flare.analytics.cluster.MergeEdge","flare.util.math.IMatrix"]},
{"name":"flare.analytics.cluster.HierarchicalCluster","size":6714,"imports":["flare.vis.data.EdgeSprite","flare.vis.data.NodeSprite","flare.vis.data.DataList","flare.vis.data.Tree","flare.util.Arrays","flare.analytics.cluster.MergeEdge","flare.util.Sort","flare.vis.operator.Operator","flare.util.Property","flare.vis.data.Data"]},
{"name":"flare.analytics.cluster.MergeEdge","size":743,"imports":[]},
{"name":"flare.analytics.graph.BetweennessCentrality","size":3534,"imports":["flare.animate.Transitioner","flare
@slarson
slarson / gist:5114643
Created March 8, 2013 06:42
First cut at a script to analyse c. elegans connectome graph
"""
worm2nx.py
Simple script for turning connectome tables into NetworkX graphs.
Note that the tables were extracted manually from the connectivity spreadsheet
of the c. elegans and should accompany this script.
Author: Pedro Tabacof (tabacof at gmail dot com)
Stephen Larson (stephen@openworm.org)
License: Public Domain
@slarson
slarson / gist:5122744
Created March 9, 2013 05:21
connectome plotting
"""
worm2nx.py
Simple script for turning connectome tables into NetworkX graphs.
Note that the tables were extracted manually from the connectivity spreadsheet
of the c. elegans and should accompany this script.
Author: Pedro Tabacof (tabacof at gmail dot com)
Stephen Larson (stephen@openworm.org)
License: Public Domain
@slarson
slarson / gist:5177419
Created March 16, 2013 17:34
SPARQL query for HeatMap
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX property:<http://neurolex.org/wiki/Special:URIResolver/Property-3A>
##########################################################################
## Get me all neurons and print out "true" if a property a neuron should have
## is filled in. Print out "false" if that property is not filled in.
###########################################################################
select DISTINCT (str(?name) as ?names) (bound(?def) as ?defs)
@slarson
slarson / celegans-networkX-ipythonnb
Last active September 7, 2017 03:53
Working with the C. Elegans connectome data and the NetworkX library in iPython Notebook
{
"metadata": {
"name": "NetworkX C. Elegans Connectome"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{