-
Notifications
You must be signed in to change notification settings - Fork 142
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
MNI coordinate calculation, storage, and display #135
Open
smerdis
wants to merge
37
commits into
gallantlab:main
Choose a base branch
from
smerdis:master
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 18 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
0319664
added some initial documentation on the Aligner module.
smerdis f244c60
current state of the align_to_mni function, which has all the compone…
smerdis 57f7bcc
stub WarpMapper and modified list of mappers to include it.
smerdis 0b961c3
WarpMapper class to load up warp field and sample it, currently using…
smerdis 54de550
changes to anat_to_mni function, which is still incomplete. the reori…
smerdis 7bde778
deleted warpmapper since it's not actually needed and pointmapper wil…
smerdis 08b339e
working align function (though some calls are still disabled in this …
smerdis 20cb2ae
modifications to BrainCTM to store MNI data as an additional attribut…
smerdis 2cb70a9
initial mapper documentation
smerdis e614145
changes to javascript side to display MNI coordinates associated with…
smerdis 1231533
modified align.py to return the points and associated mni coords. als…
smerdis c372264
completed MNI coordinate lookup feature. clicking anywhere in the bri…
smerdis e1f3238
change text of Submit button to Go
smerdis 944a4eb
correct docstring, remove debug output, enable actual calling of comm…
smerdis fb2aa8d
removed some debug output
smerdis acb4d62
removed some debug output
smerdis 2e2490e
removed superfluous reference to warpmapper module, which no longer e…
smerdis d57d6fd
added stub documentation about anat_to_mni()
smerdis fc055ff
styling changes to make the coordinates box less space-filling.
smerdis f7cba2b
some small but important changes: all files except the final surfinfo…
smerdis 5f2927b
changed interpolation from nearest-neighbor to lanczos, which is ~sinc
smerdis cc009a4
added a check to ensure that this still works if there are no MNI coo…
smerdis 993f493
added coord_disp=True parameter to show(). if False, the MNI coordian…
smerdis ab216b6
UI updates: reduced size of coord box, added radio button to select M…
smerdis da69a59
bugfix: form submission did not respect coord system radio button, al…
smerdis 783e214
removed some extraneous output, and added one more useful line.
smerdis 3479c53
moved align.py/anat_to_mni() to surfinfo.py/mni_nl() and removed its …
smerdis cb588ed
changed the native space display to be voxels, not mm. changes to bot…
smerdis 7fa1317
removed extraneous manipulation of mni coords
smerdis 352b42a
added fsl_dir option to defaults.cfg
smerdis 1e3c52f
added the standardfile and projection (interpolation method) argument…
smerdis 83a298c
Merge branch 'master' of https://github.com/smerdis/pycortex into sme…
marklescroart 329f926
fixed bug where outfile was being overwritten and thus the surfinfo w…
smerdis dfefa58
changed first param of mni_nl() back to outfile, and used tmpfile for…
smerdis c31c4e3
fixed coordinate display and search so that MNI coords are in mm, the…
smerdis 1dffcba
Merge branch 'master' of https://github.com/smerdis/pycortex into sme…
marklescroart 388f86b
Small bug fixes in brainctm.py
marklescroart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
Aligner | ||
======= | ||
This module contains functions for manual and automatic alignment of brain images and cortical surfaces. For each transform, it saves a transform matrix, which maps pixels to voxels. | ||
|
||
The automatic() function does epi-to-anat registration using FLIRT with BBR, then inverts this with Transform.from_fsl() | ||
|
||
The anat_to_mni() function uses FNIRT to register the MNI surface to the subject's surface, then estimates the MNI coords corresponding to vertex coords. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Mapper | ||
====== | ||
This module contains functions and classes that translate between Volumes of data and the corresponding Vertices of a surface using any of several samplers. That is, if you have some data defined on a per-voxel basis (whether it's BOLD or a warp vector doesn't matter), you can create a Volume and use the map() function to sample from that data at the vertices of a surface. And you can specify the sampling method, be it nearest-neighbor, trilinear, sinc, etc... | ||
|
||
Important Classes: |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noclean
is not a parameter to this function.