Skip to content

[BUG] Dimension Changed via using fsaverage_to_fslr #201

@elleryyu

Description

@elleryyu

Issue summary

Hi, I aim to convert a func.gii file from fsaverage space to fs_LR 32k space.
However, the output has a different shape—(time, vertex) instead of the expected (vertex, data).

Image

Detailed issue description

Below is my code:

from neuromaps.images import load_gifti
import numpy as np
from neuromaps.transforms import fsaverage_to_fslr

gii_L = load_gifti()
resampled_L, = fsaverage_to_fslr(
gii_L,
target_density='32k',
method='linear'
)

nib.save(resampled_L,)

As shown in the figure, the above shape is my orginal func.gii, and the below is the shape of transformed func.gii.

Steps to reproduce issue

>>>
>>>
>>>
...

Software version

No response

Code of Conduct

  • I agree to follow the neuromaps Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions