Comments (6)
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.
BTW, do not forget to install ANTs if you want to run the preprocessing pipeline.
from clinicadl.
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.
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.
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.
@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)
- data augmentation issues HOT 1
- unsupported operand type(s) for +=: 'PosixPath' and 'str' HOT 5
- categorical split variable flag HOT 1
- Subject: Inquiry on Using Pre-trained Models for Transfer Learning with ClinicaDL HOT 7
- Retrocompatibility problem with maps.json
- Issue with Limited Number of Samples in BIDS Conversion Using ClinicaDL
- Requirement for 'diagnosis' Column in Generalization Testing with ClinicaDL HOT 1
- T1-Volume quality check tsv are empty
- Clinica T1-Linear Pipeline Fails: FileNotFoundError for 'bias_image' in N4BiasFieldCorrection Node HOT 4
- Add option to save model for each epochs
- Expanding Modality Support for ML Classification in ClinicaDL HOT 1
- Clarification needed on `TSV_DIRECTORY` for Training after using `prepare-experiment` HOT 2
- Documentation copyright is outdated
- Use `parent` or `parents` attributes of Pathlib Path object instead of chaining ".." strings
- Use `setdefault()` method instead of looping over default dict
- No Hippocampus Mask Available/Compatible HOT 3
- File format not BIDS compliant
- get-progression turns 2-digits session labels to 3 digits HOT 1
- TypeError: can only concatenate str (not "PosixPath") to str
- MapsManager uses a different CAPS folder in predict than the one provided by the user HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clinicadl.