Comments (5)
Sure! This is fixed for all views in the develop branch now, including the 'si' view. Hemisphere shifting is implemented as an rglaction
and needs to be activated if you want it. If you checkout the development branch, you can try:
vis.subject.morph.native(sjd, sj, 'thickness', rglactions = list('shift_hemis_apart'=TRUE), surface='inflated', views='si')
or if you want a larger distance:
vis.subject.morph.native(sjd, sj, 'thickness', rglactions = list('shift_hemis_apart'=list('min_dist'=20)), surface='inflated', views='si')
Btw, to plot only one hemi using vis.data.on.subject
, pass NULL
for the data of the hemi you do not want:
vis.data.on.subject(sjd, sj, subject.morph.native(sjd, sj, 'thickness', 'lh'), NULL, views='t9')
vis.region.values.on.subject(sjd, sj, 'aparc', list('cuneus'=0.9, 'bankssts'=0.7), NULL)
What do you mean that one can only display one hemi at a time in Freeview? You can load several surfaces there as well.
from fsbrain.
@utooley This feature is available in v0.3.0, which is now on CRAN. Details are explained in the fsbrain FAQ.
from fsbrain.
Hi Ursula,
thanks for reporting this. I also noticed this, but did not pay much attention because I assumed it was not a bug, but a consequence of the inflation that leads to overlapping surfaces. (This does not happen in t4 view because in that view, only one of the 2 hemispheres is rendered at a time.) Now that you mention this, it occurs to me that it may very well be a bug. I will investigate and let you know.
Even if the surface coordinates in the mesh file are overlapping (as in the fsbrain visualization), one could of course introduce a feature that would allow the user to specify an amount by which to shift them apart. But let me first have a look.
Glad to hear you like fsbrain. :)
Btw, from that colorbar you have in the plot it looks like you have an old fsbrain version and could update your installation to get a better one.
from fsbrain.
The coordinates are definitely overlapping in the source files, strange. I have done a quick hack that pushes them apart manually by the amount they overlap:
It will need some more testing to ensure this does not break other things. Most likely I will add an option to shift the hemis and let the user decide whether or not he/she wants to do this. The feature will be available in the next release.
from fsbrain.
Wow--thanks so much for investigating so quickly and figuring out a way to implement a fix! I also thought it was likely expected behavior given that Freesurfer only allows you to view one hemi in Freeview at a time, but is very troublesome in my workflow, as I could not even figure out a hacky way to get different angles with screenshots and views="si"
(since si
doesn't work either with inflated
since it tries to display both hemispheres).
I would have been happy to plot each hemi separately in these functions and simply pull the images together outside fsbrain
afterwards, but there did not seem to be a way to plot only one hemisphere in either vis.data.on.subject
or vis.region.values.on.subject
.
from fsbrain.
Related Issues (20)
- Issues to create a GIF file using fsbrain docker image HOT 1
- Error in setwd(dir) : cannot change working directory - while creating GIF movie using fsbrain locally HOT 1
- Inflated views intertwined HOT 3
- datastructure returned by label.to.annot does not have 'fs.annot' class HOT 1
- New fsbrain installation on M1 Mac does not show colorbar HOT 3
- display p-values overlay HOT 1
- Render with R-shiny HOT 2
- visualising group difference maps HOT 8
- Export directly HOT 5
- Backup nitestdata on public, scientific repo HOT 1
- Support plotting on log scale HOT 1
- No picture out after running "vis.subject.annot" code in Ubuntu 20.04 HOT 6
- No figure output HOT 20
- MacOS support of fsbrain HOT 2
- 9 view inflated surface HOT 1
- Tight layout with 9 view inflated HOT 8
- save output as grob objects HOT 1
- Error: rgl.viewpoint is depreciated HOT 5
- Saving annotation to file HOT 2
- Add title to plots HOT 1
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 fsbrain.