PSF file

4 views
Skip to first unread message

Remi Silva

unread,
Jul 10, 2024, 6:54:36 AM (7 days ago) Jul 10
to Clinica
Hi,
I am trying to run the pet-surface pipeline but it keeps raising an error with the psf tsv file. 
this is my file:
participant_id session_id acq_label psf_x psf_y psf_z
sub-ADNI041S1411 ses-M000 11CPIB 5.0 5.0 5.0

This is the error message:
RuntimeError: Subject sub-ADNI041S1411 with session ses-M000 and tracer Tracer.PIB that you want to proceed was not found in the TSV file containing PSF specifications
I don't understand what in my file is wrong that clinica cannot proceed

Many thanks,
Renata

Nicolas Gensollen

unread,
Jul 10, 2024, 8:02:28 AM (7 days ago) Jul 10
to Clinica
Hi,

What is the command line you used to run the pet-surface pipeline ?

I don't see anything wrong with your file. Actually, I tried to copy-paste it and call `read_psf_information` on it, and it worked as expected:

```bash
$ cat psf.tsv

participant_id session_id acq_label psf_x psf_y psf_z
sub-ADNI041S1411 ses-M000 11CPIB 5.0 5.0 5.0
```

```python
>>> from clinica.utils.pet import read_psf_information
>>> read_psf_information("psf.tsv", ["sub-ADNI041S1411"], ["ses-M000"], "11CPIB")
[[5.0, 5.0, 5.0]]
```

Nicolas
Reply all
Reply to author
Forward
0 new messages