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

MNI coordinate calculation, storage, and display #135

Open
wants to merge 37 commits into
base: main
Choose a base branch
from

Commits on Sep 9, 2015

  1. Configuration menu
    Copy the full SHA
    0319664 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2015

  1. current state of the align_to_mni function, which has all the compone…

    …nts in place but is still waiting for WarpMapper and its final form.
    smerdis committed Sep 23, 2015
    Configuration menu
    Copy the full SHA
    f244c60 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    57f7bcc View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2015

  1. Configuration menu
    Copy the full SHA
    0b961c3 View commit details
    Browse the repository at this point in the history
  2. changes to anat_to_mni function, which is still incomplete. the reori…

    …ented anatomicals are saved in the anat_dir, not /tmp, and the commands are printed for debugging use. in future the anatomicals may be saved to /tmp again, since the reoriented versions are not necessary for getting the correct coordinates in the identity transform
    smerdis committed Sep 30, 2015
    Configuration menu
    Copy the full SHA
    54de550 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2015

  1. deleted warpmapper since it's not actually needed and pointmapper wil…

    …l do, reverted the addition in __init__ also
    smerdis committed Oct 1, 2015
    Configuration menu
    Copy the full SHA
    7bde778 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2015

  1. working align function (though some calls are still disabled in this …

    …commit). reorients anatomicals, does flirt, feeds this to fnirt, saves the resulting warpfield in the database. then samples the warp field to get a Volume of translations, maps this to vertices, and creates arrays corresponding to the pts array but with the MNI coordinates, not the anatomical ones. saves this as a surfinfo in the database.
    smerdis committed Oct 14, 2015
    Configuration menu
    Copy the full SHA
    08b339e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    20cb2ae View commit details
    Browse the repository at this point in the history
  3. initial mapper documentation

    smerdis committed Oct 14, 2015
    Configuration menu
    Copy the full SHA
    2cb70a9 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2015

  1. Configuration menu
    Copy the full SHA
    e614145 View commit details
    Browse the repository at this point in the history
  2. modified align.py to return the points and associated mni coords. als…

    …o removed extraneous argument.
    smerdis committed Oct 23, 2015
    Configuration menu
    Copy the full SHA
    1231533 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2015

  1. completed MNI coordinate lookup feature. clicking anywhere in the bri…

    …an brings up the MNI coords box for the selected vertex. Coordinates are editable, and hitting enter or Submit looks up the nearest MNI coordinate using a kdTree of MNI points which was previously created. It then adds a marker there.
    smerdis committed Oct 27, 2015
    Configuration menu
    Copy the full SHA
    c372264 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e1f3238 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    944a4eb View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2015

  1. removed some debug output

    smerdis committed Nov 3, 2015
    Configuration menu
    Copy the full SHA
    fb2aa8d View commit details
    Browse the repository at this point in the history
  2. removed some debug output

    smerdis committed Nov 3, 2015
    Configuration menu
    Copy the full SHA
    acb4d62 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2e2490e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d57d6fd View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2015

  1. Configuration menu
    Copy the full SHA
    fc055ff View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2015

  1. some small but important changes: all files except the final surfinfo…

    … are now stored in a per-session tempfile, so they don't permanently clutter the db but are still safe for multiple sessions. some unneeded parameters and imports were removed. additional comments were added, and the do parameter, which allows the function to be run in dummy mode if False.
    smerdis committed Nov 10, 2015
    Configuration menu
    Copy the full SHA
    f7cba2b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f2927b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cc009a4 View commit details
    Browse the repository at this point in the history
  4. added coord_disp=True parameter to show(). if False, the MNI coordian…

    …te box is left out of the template. I verified that the picker still works in this case.
    smerdis committed Nov 10, 2015
    Configuration menu
    Copy the full SHA
    993f493 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2015

  1. UI updates: reduced size of coord box, added radio button to select M…

    …NI or magnet isocenter coords, hooked this button up to a function that toggles the coordinate display, made the picker smarter also so that it displays the selected coordinates and not MNI every time.
    smerdis committed Nov 11, 2015
    Configuration menu
    Copy the full SHA
    ab216b6 View commit details
    Browse the repository at this point in the history
  2. bugfix: form submission did not respect coord system radio button, al…

    …ways searched for nearest mni coordinate. that has been fixed now, meaning one can search by MNI and magnet iso-center coords.
    smerdis committed Nov 11, 2015
    Configuration menu
    Copy the full SHA
    da69a59 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    783e214 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2015

  1. Configuration menu
    Copy the full SHA
    3479c53 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2015

  1. changed the native space display to be voxels, not mm. changes to bot…

    …h the picker and the function that reacts to coord space radio button.
    smerdis committed Nov 14, 2015
    Configuration menu
    Copy the full SHA
    cb588ed View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2015

  1. Configuration menu
    Copy the full SHA
    7fa1317 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    352b42a View commit details
    Browse the repository at this point in the history
  3. added the standardfile and projection (interpolation method) argument…

    …s to mni_nl, wrote some logic to use them, also correctly used the outfile so that get_surfinfo can specify the filename
    smerdis committed Nov 17, 2015
    Configuration menu
    Copy the full SHA
    1e3c52f View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2015

  1. Configuration menu
    Copy the full SHA
    83a298c View commit details
    Browse the repository at this point in the history
  2. fixed bug where outfile was being overwritten and thus the surfinfo w…

    …as not being saved in teh appropriate place
    smerdis committed Nov 18, 2015
    Configuration menu
    Copy the full SHA
    329f926 View commit details
    Browse the repository at this point in the history
  3. changed first param of mni_nl() back to outfile, and used tmpfile for…

    … the intermediate file instead. Also fixed the output to match what other surfinfo functions do: now the hemispheres' data are called left and right (instead of leftpts and rightpts), and I transposed them (plus re-transpose in ctm load)
    smerdis committed Nov 18, 2015
    Configuration menu
    Copy the full SHA
    dfefa58 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2015

  1. fixed coordinate display and search so that MNI coords are in mm, the…

    … other set (which i call 'magnet' in the code) is in voxel indices. both of these are correctly displayed and can be searched against and toggled between. also, the selected vertex's coords are displayed in the box after search.
    smerdis committed Nov 19, 2015
    Configuration menu
    Copy the full SHA
    c31c4e3 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2015

  1. Configuration menu
    Copy the full SHA
    1dffcba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    388f86b View commit details
    Browse the repository at this point in the history