Code Monkey home page Code Monkey logo

Comments (6)

alexandreroutier avatar alexandreroutier commented on June 14, 2024

Hi!

Thanks for your interest! :)

I installed this repo and had the same behaviour. I let @mdiazmel confirm but I think you need to fill the missing variables in the following file:

$ cat clinicadl/tests/test_preprocessing.py
# coding: utf8

from clinicadl.preprocessing.T1_lineal import preprocessing_t1w

bids_dir =
caps_dir =
tsv_file =
working_dir =
nproc = 2

wf = preprocessing_t1w(args.bids_directory,
        args.caps_dir,
        args.tsv_file,
        args.working_directory)

In practice, it simply runs clinicadl preprocessing command :)

In my opinion, you can safely type pytest clinicadl/tests/test_cli.py then run directly clinicadl preprocessing... as explained in the Wiki.

Once @mdiazmel will give further details, we will clarify the Wiki or update the code, sorry about that.

Best,
Alexandre

from clinicadl.

alexandreroutier avatar alexandreroutier commented on June 14, 2024

BTW, do not forget to install ANTs if you want to run the preprocessing pipeline.

from clinicadl.

mdiazmel avatar mdiazmel commented on June 14, 2024

Hi @CC0624 ,

I confirm the answer of @alexandreroutier . We are currently working in the unit test suite, and for the moment only the CLI part is tested using pytest. We are planning to provide unit tests for the other tasks in the future. If you want to run successfully the tests maybe you can use a command like this one:

pytest clinicadl/tests/test_cli.py

You can also try the command for preprocessing directly, in your terminal:

clinicadl preprocessing <bids_dir> <caps_dir> <working_dir> --np 32

Cheers,

from clinicadl.

CCF0211 avatar CCF0211 commented on June 14, 2024

Thanks, by the way, if I need to convert ADNI data to BIDS, can I download raw data without preprocessing from ADNI website?

from clinicadl.

alexandreroutier avatar alexandreroutier commented on June 14, 2024

Thanks, by the way, if I need to convert ADNI data to BIDS, can I download raw data without preprocessing from ADNI website?

I am not sure what do you mean by mean "raw data without preprocessing". We gave some details on adni-2-bids converter regarding which images to download:

T1-weighted MRI When several scans are available for a single session, the preferred scan (as identified in MAYOADIRL_MRI_IMAGEQC_12_08_15.csv) is chosen. If a preferred scan is not specified then the higher quality scan (as defined in MRIQUALITY.csv) is selected. If no quality control is found, then we choose the first scan for the visit. Gradwarp, B1-inhomogeneity corrected and N3 bias field corrected images are selected. 1.5 T images are preferred for ADNI 1 since they are available for a larger number of patients.

I hope this answers your question.

Best,
Alex

from clinicadl.

alexandreroutier avatar alexandreroutier commented on June 14, 2024

@CC0624: We have clarified this issue into PR #9

Do not hesitate to open another issue on this repo or Clinica or writing on the Clinica forum.

Best,
Alex

from clinicadl.

Related Issues (20)

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.