Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

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

@dkp

Description

@dkp

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions