Giter Site home page Giter Site logo

bids-apps / niak Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 58.12 MB

Pipeline for preprocessing of fMRI and structural MRI scans

Home Page: http://niak.simexp-lab.org/

License: Other

Python 1.67% MATLAB 93.97% Perl 0.53% JavaScript 1.43% CSS 0.52% HTML 1.74% Shell 0.06% Dockerfile 0.09%
bids bidsapp

niak's People

Contributors

angela-tam avatar cdansereau avatar chrisgorgo avatar francoischouinard avatar gitter-badger avatar pbellec avatar poquirion avatar porban avatar pre-commit-ci[bot] avatar remi-gau avatar surchs avatar vperlbarg avatar yassinebha avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

niak's Issues

pipeline prologue

Fitting the niak preprocessing pipelines into pure individual / group stages is pretty straightforward. There is however a small component of the pipeline that does not follow this logic. The pipeline starts by copying/resampling a number of templates at the resolution requested by the user. These templates are then fed in the individual pipelines. I see two ways to implement that:

  1. BIDS apps have a "prologue" stage before individual analyses run.
  2. I refactor my pipeline to duplicate the generation of templates for each subject. That is a bit inefficient, but not a big deal considering the amount of other outputs generated.

@chrisfilo let me know what you think.

Example command?

Hello NIAK Bids App Administrator,

So far, I have successfully tested Niak in a Jupyter Notebook and in a terminal using the test data I pulled with the "niak_wget('data_test_niak_nii')" command. Very promising app!

Now I am ready to test the pipeline on a BIDS-validated dataset, but there isn't enough documentation to figure out how to get started. Once I pull the bids docker image, I made my best guess and ran the following command:

docker run -i --rm -v /Users/David/tmp:/bids_dataset:ro -v /Users/David/tmp/outputs:/outputs bids/niak /bids_dataset /outputs participant --participant_label 01

This returns an error as shown below:

Traceback (most recent call last):
File "/code/run.py", line 15, in
import pyniak.load_pipeline
ImportError: No module named pyniak.load_pipeline

Any ideas? Please help. Thank you.

Please fill in the README file

See the bids/example app. In particular please add the following sections:

  • Description
  • Documentation
  • Error reporting
  • Acknowledgements

doc

Write better/more usage example in doc

incorrect subject labels (should fail)

In your circle.yml you pass "2" as --participant_label, yet your sample dataset features only subjects with labels "0274" and "0275". What's going on?

sample_test/
sample_test/sub-0274/
sample_test/sub-0274/ses-1/
sample_test/sub-0274/ses-1/func/
sample_test/sub-0274/ses-1/func/sub-0274_ses-1_task-rest_run-2_bold.nii.gz
sample_test/sub-0274/ses-1/func/sub-0274_ses-1_task-rest_run-1_bold.nii.gz
sample_test/sub-0274/ses-1/anat/
sample_test/sub-0274/ses-1/anat/sub-0274_ses-1_T1w.nii.gz
sample_test/sub-0275/
sample_test/sub-0275/ses-1/
sample_test/sub-0275/ses-1/func/
sample_test/sub-0275/ses-1/func/sub-0275_ses-1_task-rest_run-1_bold.nii.gz
sample_test/sub-0275/ses-1/anat/
sample_test/sub-0275/ses-1/anat/sub-0275_ses-1_T1w.nii.gz
sample_test/dataset_description.json

source files are now missing for building image

see in circle Ci: https://app.circleci.com/pipelines/github/bids-apps/niak/5/workflows/ef367062-4569-4612-bbd3-eb4e3c3d0d1d/jobs/107

Step 17/37 : RUN wget --progress=dot:giga https://sites.google.com/site/bctnet/Home/functions/BCT.zip     && unzip BCT.zip     && rm BCT.zip     && wget --progress=dot:giga https://github.com/SIMEXP/psom/archive/v${PSOM_VERSION}.zip     && unzip v${PSOM_VERSION}.zip     && rm v${PSOM_VERSION}.zip     && cd /usr/local/bin     && ln -s ../niak/extensions/psom-${PSOM_VERSION}/psom_worker.py psom_worker.py     && ln -s ../niak/extensions/psom-${PSOM_VERSION}/container/psom_image_exec_redirection.sh psom_image_exec_redirection.sh     && ln -s ../niak/util/bin/niak_cmd.py niak_cmd.py     && mkdir /scratch
 ---> Running in 82b50f1cb8c1
--2023-01-04 12:12:36--  https://sites.google.com/site/bctnet/Home/functions/BCT.zip
Resolving sites.google.com (sites.google.com)... 172.217.12.238, 2607:f8b0:4004:c09::8a, 2607:f8b0:4004:c09::64, ...
Connecting to sites.google.com (sites.google.com)|172.217.12.238|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-01-04 12:12:36 ERROR 404: Not Found.

The command '/bin/sh -c wget --progress=dot:giga https://sites.google.com/site/bctnet/Home/functions/BCT.zip     && unzip BCT.zip     && rm BCT.zip     && wget --progress=dot:giga https://github.com/SIMEXP/psom/archive/v${PSOM_VERSION}.zip     && unzip v${PSOM_VERSION}.zip     && rm v${PSOM_VERSION}.zip     && cd /usr/local/bin     && ln -s ../niak/extensions/psom-${PSOM_VERSION}/psom_worker.py psom_worker.py     && ln -s ../niak/extensions/psom-${PSOM_VERSION}/container/psom_image_exec_redirection.sh psom_image_exec_redirection.sh     && ln -s ../niak/util/bin/niak_cmd.py niak_cmd.py     && mkdir /scratch' returned a non-zero code: 8

Exited with code exit status 8

log.txt

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.