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

Openneuro viewer only lets you view the first few TRs #3001

Open
pjkohler opened this issue Feb 28, 2024 · 1 comment
Open

Openneuro viewer only lets you view the first few TRs #3001

pjkohler opened this issue Feb 28, 2024 · 1 comment

Comments

@pjkohler
Copy link

it used to be that you could step through all of the TRs in an fMRI dataset using the left and right arrow keys, but that no longer seems to be the case. The viewer seems to update for the first few TRs, and then stops. Here is an example, in a recent dataset, but I also see it in much older data. Is there a way to view the whole data set?

@hanayik
Copy link
Contributor

hanayik commented Apr 8, 2024

@pjkohler , The viewer uses Niivue, which has the ability to limit the number of preloaded volumes (aka frames). It looks like OpenNeuro have configured this to 5 volumes here. Generally, this is a good idea, and allows data to load faster in the user's browser (it spends less time downloading the entire dataset which may never be viewed).

Niivue can be configured to load all the volumes if the time series graph is shown.

@nellh and @effigies , please see this demo implementation of partially loading the first few volumes, and then allowing the full dataset to be loaded later. To load the full dataset, the graph must be visible in niivue, and the user must click on the three dots in the bottom right of the x-axis of the plot.

I would also recommend updating to the latest Niivue (0.41.1 at the time of this writing). It has a leaner package build, and many optimizations compared to your current version of 0.34.0.

The lines to add to */viewers/file-viewer-nifit.tsx are:

nv.graph.autoSizeMultiplanar = true
nv.opts.multiplanarForceRender = true
nv.graph.opacity = 1.0

the screenshot show the graph option turned on in Niivue

Screenshot 2024-04-08 at 12 20 38

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

2 participants