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

error overlaying label file onto template using sliceSeries #19

Open
tulste opened this issue Oct 26, 2020 · 1 comment
Open

error overlaying label file onto template using sliceSeries #19

tulste opened this issue Oct 26, 2020 · 1 comment

Comments

@tulste
Copy link

tulste commented Oct 26, 2020

Trying to use sliceSeries as a way to view labels on a template and I'm getting the following error message:

Error in dim(slice) <- dims :
dims [product 41004] do not match the length of object [0]

used the following code:

anatVol <- mincArray(mincGetVolume(“secondlevel_template0.mnc”))
component1Labels <- mincArray(mincGetVolume(“new-coloured-labels/wholebrain-cluster-component1.mnc”))

sliceSeries(nrow = 5, ncol=5, dimension = 2, begin = 15, end = 165) %>%
anatomy(anatVol, low=0.5, high=12.5) %>%
overlay(component1Labels) %>%
legend(“t-statistics”) %>%
draw()

I checked that these files are in fact the same dimensions using mincinfo and using Display in minc to visualize. Moreover, the object created in the R environment show that they indeed have the same dimensions.

Thanks!

@gdevenyi
Copy link

Error is due to the defaults of overlay not handling the range of values well, overriding with low and high fixed it.

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