Giter Site home page Giter Site logo

vsoch / pybraincompare Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 11.0 98.01 MB

brain image comparison and visualization methods for python!

License: BSD 3-Clause "New" or "Revised" License

Python 42.87% HTML 43.78% JavaScript 13.23% Shell 0.12%
neuro brain comparison d3

pybraincompare's Introduction

#pybraincompare Circle CI

Semantic and computational comparison methods for brain imaging data, and visualization of outputs.

Installation

manual Installation

git clone https://github.com/vsoch/pybraincompare
cd pybraincompare
sudo python setup.py install

pip Installation

pip install pybraincompare

The current version is for Python 3, the first of which is released on pip as 0.1.19. If you want Python 2 only, use 0.1.18:

# Python 2
pip install pybraincompare==0.1.18

# Python 3
pip install pybraincompare==0.1.19

For examples and demos, please see the documentation. Submit bugs and feature requests as issues.

pybraincompare's People

Contributors

chrisgorgo avatar htfy96 avatar vsoch avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

pybraincompare's Issues

update mr utils for update to scipy

  >>> standard_mask=get_standard_mask(4)
  /home/vsochat/.local/lib/python2.6/site-packages/scipy/ndimage/interpolation.py:435: UserWarning: The behaviour of affine_transform with a one-dimensional array supplied for the matrix parameter will change in scipy 0.18.0.
    "The behaviour of affine_transform with a one-dimensional "

Add transformation functions

The goal of this enhancement is to allow for synchronizing different applications that both calculate transformations (eg, NeuroVault and NeuroSynth). Specifically, in the words of Chris:

  1. creating, reading and writing reduced representations of a brain image. This is a vector of values created by downsampling the map to 4x4x4, reslicing it and picking only the voxels from within the brain mask. We use this representation for similarity calculations. It's close to what you do for decoding (using random sampling)
  2. calculating similarity between two maps - it's fairly simple, (it's just a correlation with pairwise deletion), but we can also share the code for it

In summary - shared downsampling code and low-resolution image representation.

Add graph structure generation

We must be able to take a list of images defined with cognitive atlas tags, and output a data structure that can be used for reverse inference analysis and visualization of result.

ValueError: unsupported format character '<' (0x3c) at index 3

Hi i am getting error on running code . can you please help

HTML_BODY= """

<title></title>
<style>
table {color: #333;font-family: calibri; width: 80%%;border-collapse:collapse; border-spacing: 0;}
td, th { border: 1px solid #CCC;width:100px; height: 30px; }
th {background: #F3F3F3;font-weight: bold;font-size: 13px;}
td {background: #FAFAFA;text-align: center; font-size: 12px;}
</style>




















S.No.

Scenario Name

Total Test Cases

Passed Test Cases

Failed Test Cases

1

%s%

%s%

%s%

%s%


 


















Total Scenario

Total Test Cases

Passed Test Cases

Failed Test Cases

%s%

%s%

%s%

%s%


 


""" %(self.__flow,self.__totalflowtestcases,self.__flowtestpass,self.__flowtestfail,self.__alltestcases,self.__alltestcases,self.__testpass,self.__testfail)

Test for pybraincompare atlas

Need to test if saved atlas object (eg labels, unique values) corresponds to image. It's exactly the same for a non-resampled image, however small regions can be eliminated with resampling even using nearest neighbor approach. The atlas labels come from the xml file, so it could be the case at a much larger voxel dimension, for much smaller regions, that the two lists do not coincide.

A warning should be added to the creation atlas step if a region is eliminated with a resampling.

Make all template css and js scripts optional

A user is possibly wanting to embed the similarity search in his or her page, in which case two versions of something like bootstrap or jquery is not ideal. I've modified similarity search interface to take a custom "remove_scripts" argument that corresponds to a tag in the template for rows that include the scripts. For this TODO:

  • I need to add these tags to every single template
  • I need documentation to tell a user what tags are removable

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.