Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/dmascali/mni2atlas
22 February 2025, 17:16:50 UTC
  • Code
  • Branches (3)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    • refs/tags/1.0
    • refs/tags/1.1
    No releases to show
  • 5de3fbe
  • /
  • README.md
Raw File Download
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge Iframe embedding
swh:1:cnt:3039b09d954b1d490065b1353c3b3aed20e63c5c
origin badgedirectory badge Iframe embedding
swh:1:dir:5de3fbed5d8882fc73b1c3b21aff733653a23abc
origin badgerevision badge
swh:1:rev:d05afff7081ddade66afc39c28d76c8cda1d6d39
origin badgesnapshot badge
swh:1:snp:1da0649ec76ab1d818888415746b1b0af6335b62
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: d05afff7081ddade66afc39c28d76c8cda1d6d39 authored by dmascali on 01 April 2021, 21:33:26 UTC
use which to identify atlas' path
Tip revision: d05afff
README.md
[![View mni2atlas on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://it.mathworks.com/matlabcentral/fileexchange/87047-mni2atlas)
# mni2atlas 
FSL Anatomical Labels for MNI Vector/ROI. Mni2atlas takes an ROI or a vector of coordinates (both in the MNI
space) and returns labels from different FSL atlases.

In **VECTOR** modality labels are returned in probability values (same results of FSL atlas tool).

In **ROI** modality the probability value reported for a label represents the frequency of that label in the roi for a given threshold of the FSL atlas
probability map (0, 25 or 50; default = 25).

## HOW TO USE
   mni2atlas(VECTOR/ROI) the first input can be a MNI vector or an ROI in the MNI space. Depending on the input the script switches between two
   different work modalities. With no other input the script will seek labels among all available fsl atalses.

   mni2atlas(VECTOR/ROI,ATLAS_SELECTOR) allows to choose among the following atlases:
   1. Juelich Histological Atlas
   2. Harvard-Oxford Cortical Structural Atlas
   3. Harvard-Oxford Subcortical Structural Atlas
   4. JHU ICBM-DTI-81 White Matter labels
   5. JHU White Matter tractography Atlas
   6. Oxford Thalamic Connectivity Atlas
   7. Cerebellar Atlas in MNI152 after FLIRT
   8. Cerebellar Atlas in MNI152 after FNIRT
   9. MNI Structural Atlas
   
   ATLAS_SELECTOR must be a row vector (i.e. [1,3,6]). Default value is [1:1:9]. You can also leave it as an empty vector (i.e. (VECTOR/ROI,[])).

   [ATLAS]=MNI2ATLAS(VECTOR/ROI,...) the script returns the structure ATLAS whit the following fields: .name (of the atlas), .labels (a cell vector). No stdout will be print.

   mni2atlas(VECTOR) prints on screen labels found for the MNI VECTOR position.

   mni2atlas(ROI) prints on screen labels found for the input ROI. ROI can be a preloaded (with load_nii) volume or the path of a nifti volume. 

### ADVANCED OPTIONS
   mni2atlas(ROI,ATLAS_SELECTOR,THR) THR allows to choose among 3 threshold levels: 0, 25, 50 (i.e,. 0, 25, 50). Default value is 25. Option available only under ROI modality.

   mni2atlas(VECTOR,ATLAS_SELECTOR,RESOLUTION) RESOLUTION allows to choose between ‘1mm’ or ‘2mm’ atlases. 1mm atlases performs better region identification but requires more loading time. Default value is ‘1mm’. Option available only under VECTOR modality.

## SYSTEM REQUIREMENTS
  [NifTI and ANALYZE tool](https://it.mathworks.com/matlabcentral/fileexchange/8797-tools-for-nifti-and-analyze-image) (version > 2012-10-12) 

## ACKNOWLEDGEMENTS
  This function uses some of the available [FSL atlases](https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/Atlases)

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top