Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with templateflow dir not found #172

Open
emullier opened this issue Sep 3, 2024 · 1 comment
Open

Issue with templateflow dir not found #172

emullier opened this issue Sep 3, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@emullier
Copy link

emullier commented Sep 3, 2024

Following my issue
Unclear inputs required #171 , I tried in parallel to run on my subject the giga_connectome not via docker but via github installation running this command

giga_connectome /home/localadmin/DATA/ds-sample_GigaConnectome /home/localadmin/DATA/ds-sample_GigaConnectome/derivatives/ participant --participant_label 01 

for which I get an error which seems to be related to templateflow_dir not found.

I checked I have templateflow installed on my computer (version 0.8.1)

And I have tried to export the path in my ubuntu terminal using this command

export TEMPLATEFLOW_HOME=/home/localadmin/.cache/templateflow

But it does not seem as it solved my error

Error

{'bids_dir': PosixPath('/home/localadmin/DATA/ds-sample_GigaConnectome'), 'output_dir': PosixPath('/home/localadmin/DATA/ds-sample_GigaConnectome/derivatives'), 'analysis_level': 'participant', 'participant_label': ['01'], 'work_dir': PosixPath('/opt/work'), 'atlas': 'MIST', 'denoise_strategy': 'simple', 'standardize': 'zscore', 'smoothing_fwhm': 5.0, 'reindex_bids': False, 'bids_filter_file': None, 'calculate_intranetwork_average_correlation': False}
{'name': 'MIST', 'parameters': {'atlas': 'BASC', 'template': 'MNI152NLin2009bAsym', 'resolution': '03', 'suffix': 'dseg'}, 'desc': [7, 12, 20, 36, 64, 122, 197, 325, 122, 444], 'templateflow_dir': None}
Traceback (most recent call last):
  File "/opt/fsl/bin/giga_connectome", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/fsl/lib/python3.11/site-packages/giga_connectome/run.py", line 111, in main
    workflow(args)
  File "/opt/fsl/lib/python3.11/site-packages/giga_connectome/workflow.py", line 31, in workflow
    atlas = load_atlas_setting(args.atlas)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/fsl/lib/python3.11/site-packages/giga_connectome/atlas.py", line 65, in load_atlas_setting
    p = templateflow.api.get(
        ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/fsl/lib/python3.11/site-packages/templateflow/conf/__init__.py", line 65, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/fsl/lib/python3.11/site-packages/templateflow/api.py", line 112, in get
    raise Exception("No results found")
Exception: No results found


@htwangtw htwangtw added the bug Something isn't working label Sep 3, 2024
@htwangtw htwangtw added this to the JOSS revies milestone Sep 3, 2024
@htwangtw
Copy link
Collaborator

htwangtw commented Sep 3, 2024

The reason is that the container image has downloaded all the atlases used for the app and a direct installation will require extra steps for set ups.

If the templateflow directory is downloaded with all the defaults, can you try to run this command:

giga_connectome /home/localadmin/DATA/ds-sample_GigaConnectome \
    /home/localadmin/DATA/ds-sample_GigaConnectome/derivatives/ \
    participant \
    --participant_label 01 \
    --atlas Schaefer2018

Since this is not the intended use case so I did not document it very well.
I will add extra instruction on contributor guide, and also direct users if they really want a bare bone installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants