GithubHelp home page GithubHelp logo

brainhack-school2020 / abide-fmri Goto Github PK

View Code? Open in Web Editor NEW
35.0 6.0 13.0 43.5 MB

Repository for the Brainhack School 2020 team working with fMRI and ABIDE data to train machine learning models.

License: Creative Commons Zero v1.0 Universal

Jupyter Notebook 99.82% Python 0.18%
brainhack-school abide-data resting-state-fmri fmri cross-validation autism support-vector-classification cv-classifier jupyter-notebooks nilearn

abide-fmri's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

abide-fmri's Issues

Check if feature file exists

For the preparation function it would be nice if it would check if the features have already been extracted and then use the saved file instead.

Include Requirements.txt

In order for everyone to be able to run the scripts, we should include a Requirements.txt file that lists the required packages. We could also think about alternative ways to make sure everyone can run the code, like virtual environments or containers.

Deprecation message when loading dataset using `nilearn.datasets.fetch`

See scripts for leave-site-out or group-k classifier for issue when loading dataset with the following code:

#Import modules for this step
from nilearn import datasets
import pandas as pd
import os
#Fetch data using nilearn.datasets.fetch
abide = datasets.fetch_abide_pcp(data_dir=/path/to/data),
                                 pipeline="cpac",
                                 quality_checked=True)

#Load phenotypic data into pandas dataframe
abide_pheno = pd.DataFrame(abide.phenotypic)

#Create array to hold unique site names
groups = abide_pheno["SITE_ID"].unique()

Receiving this warning message:

VisibleDeprecationWarning: Reading unicode strings without specifying the encoding argument is deprecated. Set the encoding, use None for the system default.
  output = genfromtxt(fname, **kwargs)

Any idea what's going on here? Does not necessarily prevent script from running.

@pbellec @surchs

The project itself

Section that goes over the project, its goal, and the results we obtained

Getting an error when running the script

I tried running the script after your commit @anproulx , but I am getting the following error:

Traceback (most recent call last):
  File "./script-scaffolding.py", line 100, in <module>
    run_analysis()
  File "./script-scaffolding.py", line 91, in run_analysis
    X_features_pca, y_target = prepare_data(args.data_dir, args.output_dir)
  File "./script-scaffolding.py", line 56, in prepare_data
    X_features[i]=list(X_features[i][np.triu_indices(64)])
IndexError: too many indices for array

Also the function prepare_data does not return anything, but it should return X_features and y_target.

Please create a new branch, fix the errors on the branch by testing the code and then do a pull request.

Documentation of notebooks

It would be nice if there was some information on each of the notebooks, summarizing what it does and why in the README file.

organization

Hi guys ,

Should we reorganize our abide-fmri repo? Maybe put all our .ipynb in a separate folder... prep data+requirements together? What do you think?

Getting the data ready

Before going into the ML, to get our feature (X) ready, we need to:

  1. Remove half the matrix since it is redundant
  2. Apply PCA to keep only relevant features (less computational cost also)

I will add this code to the script-scaffolding.py

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.