Skip to content

Commit

Permalink
Update 09_autobids.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlmrc committed Mar 19, 2024
1 parent b38c6e8 commit 1e97db5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions _guides/09_autobids.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ singularity run /srv/containers/cfmm2tar_v1.0.0.sif <out_dir>

`<out_dir>` is the directory where *cfmm2tar* puts the output data. You can use */local/scratch* as an output directory for *cfmm2tar*, but always remember to clean the directory when you are done.

You can add flags to *cfmm2tar* to perform this step on a specific project or dataset. With the flag -p <PRINCIPAL^PROJECT-ID> you can input to *cfmm2tar* all the datasets beloning to a specific project:
You can add flags to *cfmm2tar* to perform this step on a specific project or dataset. With the flag `-p <PRINCIPAL^PROJECT-ID>` you can input to *cfmm2tar* all the datasets beloning to a specific project:

```
singularity run /srv/containers/cfmm2tar_v1.0.0.sif -p <PRINCIPAL^PROJECT-ID> <out_dir>
```

With the flag -n <Patient's Name> you can input a specific dataset by using the "Patient's Name" field in the CFMM DICOM Server:
With the flag `-n <PARTICIPANT-ID>` you can input a specific dataset by using the "Patient's Name" field in the CFMM DICOM Server:

```
singularity run /srv/containers/cfmm2tar_v1.0.0.sif -n <Patient's Name> <out_dir>
Expand Down Expand Up @@ -103,6 +103,14 @@ def infotodict(seqinfo):
```

The variable `s` points to a spreadsheet that you can find in */local/scratch/BIDS/code/tar2bids_YYYY-MM-DD_XXhXXm_ZZZZ/heudiconv/PARTICIPANT-ID/info/dicominfo.tsv*. To create the heuristic file for your project, you need to edit the example above by using the information contained in the spreadsheet. The spreadsheet contains a row for each .dcm file included in the dataset. Each column contains information about .dcm files some. For example, in the case of the project to which the above heuristics belong, the column "series_description" contains the substring "1.8iso_AP" in functional runs, in which the column "dim4" contains a number >200 (which corresponds to the number of volumes collected in each functional run). You can create the spreadsheet by running tar2bids without the -h flag on the first dataset you collect:

```
singularity run /srv/containers/tar2bids_v0.2.4.sif -o <out_dir> <filename>.tar
```

This will create the *dicominfo.tsv* spreadsheet inside `<out_dir>` in the path specified above.

## Gradcorrect

After you have a BIDS repository with the Nifti files, run the following command:
Expand Down

0 comments on commit 1e97db5

Please sign in to comment.