Code Monkey home page Code Monkey logo

brainx's Introduction

================================================
 Brainx: network analysis for neuroimaging data
================================================

Brainx provides a set of tools, based on the NetworkX graph theory package, for
the analysis of graph properties of neuroimaging data.


Installation
============

For a normal installation, simply type::

  python setup.py install [other options here]

To install using setuptools support, use::

  python setup_egg.py install [other options here]

For example, to install using a development-mode setup in your personal user
directory, use::

  python setup_egg.py develop --prefix=$HOME/.local


Testing
=======

To run the test suite, once you have installed it as per the above
instructions,  simply use::

  nosetests brainx

or for more informative details::

  nosetests -vvs brainx

For further information, type ``nosetests -h``.


License information
===================

Brainx is licensed under the terms of the new BSD license. See the file
"LICENSE" for information on the history of this software, terms & conditions
for usage, and a DISCLAIMER OF ALL WARRANTIES.

brainx's People

Contributors

cindeem avatar dabliss avatar fperez avatar jarrodmillman avatar jbpoline avatar jrcohen02 avatar stefanv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brainx's Issues

Is this error due to the use of a newer networkx version ?

Hi Guys,
Installed Brainx on my UCI setup. We are running canopy. I have networkx 1.8.1-2 installed in my session. I get the error below. I think this is networkx version issue.
mod.simulated_annealing(pfc_graph). Is this correct? What version should I be using? Currently trying to get nx 1.6 installed


ValueError Traceback (most recent call last)
in ()
----> 1 mod.simulated_annealing(pfc_graph)

/home/rblumenf/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/brainx-0.1.dev-py2.7.egg/brainx/modularity.pyc in simulated_annealing(g, p0, temperature, temp_scaling, tmin, bad_accept_mod_ratio_max, bad_accept_nod_ratio_max, accept_mod_ratio_min, accept_nod_ratio_min, extra_info, debug)
1063 # make a graph partition object
1064 if p0 is None:
-> 1065 graph_partition = GraphPartition(g,part)
1066 else:
1067 graph_partition = p0

/home/rblumenf/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/brainx-0.1.dev-py2.7.egg/brainx/modularity.pyc in init(self, graph, index)
79
80 # Now, build the edge information used in modularity computations
---> 81 self.mod_e, self.mod_a = self._edge_info()
82
83

/home/rblumenf/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/brainx-0.1.dev-py2.7.egg/brainx/modularity.pyc in _edge_info(self, mod_e, mod_a, index)
113 #looks like a set when we read it in ipython
114 mat_within = mat[modnodes,:][:,modnodes]
--> 115 mat_between = mat[modnodes,:][:,btwnnodes]
116 perc_within = mat_within.sum() * norm_factor
117 perc_btwn = mat_between.sum() * norm_factor

/home/rblumenf/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/matrixlib/defmatrix.pyc in getitem(self, index)
314
315 try:
--> 316 out = N.ndarray.getitem(self, index)
317 finally:
318 self._getitem = False

ValueError: invalid literal for long() with base 10: '24d

simulated annealing directed graph?

Hi team,
I accidentally passed a digraph to mod.simulated_annealing(). The algo is currently churning away without throwing up an warning or error. Is this desirable?

Fix adjust_partition

Adjust partition is to be used with Newman Spectral partitioning, It is currently broken and has invalid tests. Update to allow for optomizing spectral partition, and look into new method (First principles mutiway spectral partitioning of graphs" that we plan to review. http://arxiv.org/abs/1209.5969) for same purpose

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.