Skip to content

nipraxis-spring-2022/first-validation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

First validation

Make sure you have followed the installation instructions. You will need Git, Python and the various Python libraries installed.

cd $HOME/Documents
If you get `The system cannot find the path specified`, and you are on Windows,
make sure you are running a **Powershell** shell, not the much older Windows `cmd` shell.

Make a new directory to store your work, if you have not already done this in the installation instructions.

mkdir nipraxis-work

Change your shell to that directory:

cd nipraxis-work

Next go to this page : https://github.com/nipraxis/first-validation

Click on the "Fork" button on the mid-top-right.

Accept the defaults and click on "Create fork"

You will find yourself at the page for your new Fork. In my case that is https://github.com/matthew-brett/first-validation but the address will have your username in it, rather than matthew-brett.

Copy the URL.

Clone the repository from the command line, by typing git clone at the terminal and then copy-pasting the URL. For example, for me, that would be git clone https://github.com/matthew-brett/first-validation but you need to make sure you clone your own fork, with your own URL.

cd first-validation
python get_data.py

You should see something like this:

Saving files to "data" directory
Fetched mni_icbm152_t1_tal_nlin_asym_09a_masked_222.nii to /Users/mb312/Library/Caches/nipraxis/0.4/mni_icbm152_t1_tal_nlin_asym_09a_masked_222.nii
Copied /Users/mb312/Library/Caches/nipraxis/0.4/mni_icbm152_t1_tal_nlin_asym_09a_masked_222.nii to data/mni_icbm152_t1_tal_nlin_asym_09a_masked_222.nii
Fetched ds114_sub009_highres_brain_222.nii to /Users/mb312/Library/Caches/nipraxis/0.4/ds114_sub009_highres_brain_222.nii
Copied /Users/mb312/Library/Caches/nipraxis/0.4/ds114_sub009_highres_brain_222.nii to data/ds114_sub009_highres_brain_222.nii
Fetched 24719.f3_beh_CHYM.csv to /Users/mb312/Library/Caches/nipraxis/0.4/24719.f3_beh_CHYM.csv
Copied /Users/mb312/Library/Caches/nipraxis/0.4/24719.f3_beh_CHYM.csv to data/24719.f3_beh_CHYM.csv
Contents of "data" subdirectory:
   data/mni_icbm152_t1_tal_nlin_asym_09a_masked_222.nii
   data/24719.f3_beh_CHYM.csv
   data/ds114_sub009_highres_brain_222.nii

You will see a different cache directory in the printout above. My cache directory was /Users/mb312/Library/Caches/nipraxis/0.4/ but your directory will be specific to you, and the current version of the nipraxis module.

If there are any errors, let us know.

Check the files are in the data sub-directory with:

ls data

You will see and extra file in that directory, called data_hashes.txt.

Next run the data validation script:

python first_validation.py

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%