Skip to content

Commit

Permalink
Packaging setup and registration to PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
raamana committed Mar 6, 2017
1 parent c5a153e commit 339c7ff
Show file tree
Hide file tree
Showing 18 changed files with 95 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ __pycache__/
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

Expand Down
8 changes: 8 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# file GENERATED by distutils, do NOT edit
setup.py
neuropredict/__init__.py
neuropredict/freesurfer.py
neuropredict/neuropredict.py
neuropredict/posthoc.py
neuropredict/rhst.py
neuropredict/test_rhst.py
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# psy
# neuropredict

Automatic estimation of predictive power of commonly used structural imaging features as well as user-defined features.

Expand Down
2 changes: 2 additions & 0 deletions build/lib/neuropredict/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

all = ['neuropredict']
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added dist/neuropredict-0.1-py2.py3-none-any.whl
Binary file not shown.
48 changes: 48 additions & 0 deletions neuropredict.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
Metadata-Version: 1.0
Name: neuropredict
Version: 0.1
Summary: Neuroimaging Predictive Analysis
Home-page: https://github.com/raamana/neuropredict
Author: Pradeep Reddy Raamana
Author-email: [email protected]
License: UNKNOWN
Description: # neuropredict

Automatic estimation of predictive power of commonly used structural imaging features as well as user-defined features.

The aim of this python module would be to automatically assess the predictive power of commonly used neuroimaging features (such as resting-state connectibity, fractional anisotropy, subcortical volumes and cortical thickness features) automatically read from the processing of popular tools such as FSL, DTIstudio, AFNI and Freesurfer, and present a comprehensive report on a given dataset. It is mainly aimed (to lower or remove the barriers) at clinical users who would like to understand what features and brain regions are discriminative in their shiny new dataset before diving into the deep grey sea of feature extraction and optimization.

PS: It sounds similar (on the surface) to other software available, however it is aimed to lower the barriers even further, or remove them altogether! All the user would need to provide are commonly used features (such as a Freesurfer output directory) and obtain an easy to read report, along with well-packaged export of performance metrics (for sharing and posthoc comparison) on the predictive power of the features they are interested in.

## usage:

```
usage: neuropredict [-h] -m METADATAFILE [-f FSDIR] [-u USERDIR] [-o OUTDIR]

optional arguments:
-h, --help show this help message and exit
-m METADATAFILE, --metadatafile METADATAFILE
Abs path to file containing metadata for subjects to
be included for analysis. At the minimum, each subject
should have an id per row followed by the class it
belongs to. E.g. sub001,control sub002,control
sub003,disease sub004,disease
-f FSDIR, --fsdir FSDIR
Abs. path of SUBJECTS_DIR containing the finished runs
of Freesurfer parcellation
-u USERDIR, --userdir USERDIR
Abs. path to an user's own features.This contains a
separate folder for each subject (named after its ID
in the metadata file) containing a file called
features.txt with one number per line. All the
subjects must have the number of features (#lines in
file)
-o OUTDIR, --outdir OUTDIR
Output folder to store features and results.
```





Platform: UNKNOWN
12 changes: 12 additions & 0 deletions neuropredict.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
setup.py
neuropredict/__init__.py
neuropredict/freesurfer.py
neuropredict/neuropredict.py
neuropredict/posthoc.py
neuropredict/rhst.py
neuropredict/test_rhst.py
neuropredict.egg-info/PKG-INFO
neuropredict.egg-info/SOURCES.txt
neuropredict.egg-info/dependency_links.txt
neuropredict.egg-info/requires.txt
neuropredict.egg-info/top_level.txt
1 change: 1 addition & 0 deletions neuropredict.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 2 additions & 0 deletions neuropredict.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy
sklearn
1 change: 1 addition & 0 deletions neuropredict.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
neuropredict
2 changes: 2 additions & 0 deletions neuropredict/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

all = ['neuropredict']
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
numpy
sklearn
nibabel
pyradigm
14 changes: 14 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python

from setuptools import setup

setup(name='neuropredict',
version='0.1',
description='Neuroimaging Predictive Analysis',
long_description=open('README.md').read(),
author='Pradeep Reddy Raamana',
author_email='[email protected]',
url='https://github.com/raamana/neuropredict',
packages=['neuropredict'],
install_requires=['numpy', 'sklearn'],
)

0 comments on commit 339c7ff

Please sign in to comment.