Comments (8)
Of course, thanks! Do you mind sharing the file you're trying to export? I can't seem to replicate any issues on my end with the default files in ./brainMapsforTesting
from brainsurfer.
The file is an atlas I'm working on, which is currently in MNI space (attached). It might be just me being novice to freesurfer. But any file that I export from BrainSurfer, creashes when I load it in freeview (either as surface or overlay).
WholeBrain.nii.gz
Thank you so much for your help
from brainsurfer.
Hmm that's strange, when I export this file in brainSurfer (either using the automatically generated nifti when loading in or saving the overlay manually) it loads up successfully in Freeview. Just to check, does the attached file work for you? I can load this up on a lh.inflated fsaverage surface
from brainsurfer.
from brainsurfer.
Hi. Second question. As I played with brainSurfer more, I ran into another issue. I want to convert the very nice annotation file that brainSurfer creates and upload it in freeview (I use the 'perceptually distinct' colormap). But (as you can see in the pics), when I load the annot file in freeview, some of the ROIs are missing (most notable V1). You have any ideas on how to solve this?
from brainsurfer.
Looks like you caught a bug, thanks! Matlab normalizes rgb to be in the 256 range which is incompatible with other software. The values were being adjusted when exporting to .anot, but not fully. The below fix works on my end but do you mind testing it and letting me know if it also works for you? Then I'll push an update.
To test you just need to download the below oSelect.mlapp, unzip it, and overwrite the existing one you have in ./brainSurfer-main/GUIs. Then just resave the file as an .annot in brainSurfer and load it up in freeview as you did before.
And what a small world indeed! Looking forward to seeing all the cool work you guys are up to.
from brainsurfer.
First of all, thank you. The solution worked. However, I think I found two more bugs. When I load a nifti overlay on an fsaverage surface everything works smoothly. However, when I repeat the same process on an Fs_LR(s900,MSMAII) template it creates the overlay for the fsaverage instead. Also, I think the values of the voxels go out of whack if there is a missing number. for example, in the nifti atlas I gave you, the regions register well from region 1 (V1) all the way to 19. But because the value 20 is missing, there is incorrect registration for the same voxels between the volume and the surface (eg look how the voxels at the S1 region change value).
from brainsurfer.
Excellent, thanks for testing.
About the other two issues. The first I can't replicate on my end.
Perhaps you did not setup the path to the connectome workbench when you first started the GUI? If so you'll need to manually edit a text file in the main brainSurfer directory to update the path (see readme)
For the second issue, it would be helpful to have an image showing a demonstration as the atlas I'm looking at looks fine to me. A skipped value shouldn't matter. When projecting ROIs, the code looks for all unique values in the volume map, creates new maps for each one, projects each of them onto vertices, and then determines which ROI projection maps most strongly onto each vertex.
I'm going to go ahead and close this issue since we resolved what you initially opened but if you want to follow up on these other two just open another and we can troubleshoot what might be going wrong.
from brainsurfer.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brainsurfer.