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

AFQ-Insight, AFQ-Browser not compatible with pyAFQ_tractometry from qsiprep? #140

Open
dkp opened this issue Dec 1, 2023 · 0 comments
Open

Comments

@dkp
Copy link

dkp commented Dec 1, 2023

Goal: Use qsiprep generated pyafq-tractometry results with AFQ-Browser and AFQ-Insight.

Problem: I cannot display my results in AFQ-Browser: I cannot find the streamlines.json file, nor is it clear to me how to find the x,y,z coordinates that appear to be necessary for that file.

I'm really spinning my wheels here. Any help would be greatly appreciated.

What I did:

  • I ran qsiprep 0.19 and then the pyafq_tractometry reconstruction pipeline on the HPC.
  • Subsequently, I installed AFQ-Browser in conda on Ubuntu 22 and copied my qsirecon derivatives directory to that machine.
  • I tried the path to the top level qsirecon directory, and then to the subject level and session level, and even the dwi directory.
  • The error is the same in every case.

Command-line output:

(pyafqbrowser) [dema:Downloads () 2048] $ afqbrowser-assemble ./qsirecon_pyafq_tractometry/
Page title [AFQ Browser]:
Page subtitle [None]:
Title hyperlink (including http(s)://) [None]: test
Subtitle hyperlink (including http(s)://) [None]:
Traceback (most recent call last):
  File "/home/dpat/miniconda3/envs/pyafqbrowser/bin/afqbrowser-assemble", line 53, in <module>
    afqb.assemble(args.source, target=args.target, metadata=args.metadata,
  File "/home/dpat/miniconda3/envs/pyafqbrowser/lib/python3.8/site-packages/afqbrowser/browser.py", line 635, in assemble
    tracula2nodes(source, out_path=out_path, metadata=metadata)
  File "/home/dpat/miniconda3/envs/pyafqbrowser/lib/python3.8/site-packages/afqbrowser/browser.py", line 306, in tracula2nodes
    nodes_df = pd.concat(dfs)
  File "/home/dpat/miniconda3/envs/pyafqbrowser/lib/python3.8/site-packages/pandas/core/reshape/concat.py", line 372, in concat
    op = _Concatenator(
  File "/home/dpat/miniconda3/envs/pyafqbrowser/lib/python3.8/site-packages/pandas/core/reshape/concat.py", line 429, in __init__
    raise ValueError("No objects to concatenate")
ValueError: No objects to concatenate

# In case I got the path wrong:
(pyafqbrowser) [dema:Downloads () 2050] $ cd qsirecon_pyafq_tractometry/
(pyafqbrowser) [dema:qsirecon_pyafq_tractometry () 2052] $ afqbrowser-assemble ./sub-CAM003/ses-01brain/dwi/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant