Giter Club home page Giter Club logo

What is AFNI?

AFNI (Analysis of Functional NeuroImages) is a suite of programs for looking at and analyzing MRI brain images at all stages of analysis (planning, setting up acquisition, preprocessing, analysis, quality control and statistical analysis). It contains C, Python and R programs, as well as shell scripts, primarily developed for the analysis and display of multiple MRI modalities:

  • functional MRI (FMRI)
    • resting state, task-based or naturalistic paradigms
    • single- or multi-echo acquisitions
  • anatomical/structural MRI
    • at various field strengths
  • diffusion weighted imaging (DWI)
    • for DTI or HARDI modeling and tractography

Many AFNI programs have been applied and adapted to other modalities, such as ECoG, EEG, MEG, and more.

It has graphical displays for both slice-wise and surface-based viewing. In both cases, many aspects of visualization can be scripted for automatic image generation.

Please visit these websites for more information and to ask questions:

Install AFNI on your computer

You can install AFNI on various Linux, macOS and Windows systems. Detailed instructions for each system are provided here. This is the way most users get the AFNI code to use.

Please make sure to use the AFNI system check to help guide you in the process, as well facilitate asking questions:

afni_system_check.py -check_all

Getting started with AFNI: quick guide links

Additional software collaborations

AFNI benefits from integration and collaboration with several other actively developed neuroimaging software packages. We greatly appreciate the work of (and often the discussions with) their developers, and note some of these projects here. Further useful dependencies are cited within the codebase.

The following software are distributed within AFNI directly:

  • dcm2niix, included as dcm2niix_afni
  • NiiVue, included as niivue_afni.umd.js

AFNI also has several programs and features that complement directly with the following projects:

  • FreeSurfer, via @SUMA_Make_Spec_FS and afni_proc.py
  • LayNii, for layer FMRI processing and visualization
  • tedana, via afni_proc.py
  • TORTOISE, via the FATCAT and other DWI tools in AFNI

One aspect of AFNI's wide usage and motivation for maintaining long-term stability is that it serves as an underlying part within several other software projects and pipeline tools in the field. Some projects that use AFNI include:

  • BrainSuite: Functional Pipeline: open-source workflow for processing FMRI data
  • C-PAC: Configurable Pipeline for the Analysis of Connectomes software package
  • DPABI: Data Processing & Analysis for Brain Imaging software suite
  • ENIGMA HALFpipe: software from a consortium combining imaging and genetics
  • fMRIPrep: FMRI preprocessing pipeline that combines tools from well-known software packages
  • LONI QC: data review platform for neuroimaging studies with one or more centers
  • NeoRS: Neonatal Resting State fMRI data preprocessing pipeline
  • NeuroDebian: an open, turnkey platform for neuroscience, integrating software
  • NeuroDesk: open platform of data analysis environments for reproducible neuroimaging
  • Nipype: an open-source initiative to integrate different packages in a workflow

NIFTI and GIFTI

AFNI developers also lead the maintenance of the following fundamental neuroimaging repositories:

These are the code for the standard volumetric and surface dataset formats, respectively, in MRI. These formats are central to how software input/output standard data, and most neuroimaging packages in the field (including AFNI itself) use at least one of these formats.

NIFTI was first developed by a consortium of neuroimaging developers in 2004, with AFNI's Bob Cox being a primary architect and first author of the format description, which is still so widely used today:

AFNI code directory

Currently, the top directory contains three sub-directories, each with further code stratification:

doc/

documentation for AFNI (though this is outdated; current doc content resides in its own git tree here: https://github.com/afni/afni_doc)

src/

source code for AFNI

src/python_scripts/

Python command programs and library files; distributed together as the afnipy module, which can be imported and used as:

from afnipy import ...

tests/

tests for AFNI codebase

Compilation of AFNI

In addition to standard installation of AFNI on computers, you can also compile the code locally on your computer (e.g., for development). In src/, you need to choose one of the Makefile.* files that is closest to your system, and cp it to be named Makefile. Makefile is set up to install into the INSTALLDIR location, defined in that file -- you should probably change that to be appropriate for your use.

If you are using Mac OS X, choose one of the Makefile.macosx* files.

For later versions of Mac OS X, Apple's C compiler does not support OpenMP, so we recommend downloading and installing a version of gcc from http://hpc.sourceforge.net/ or purchasing a commercial C compiler (e.g., Intel's icc) that does support OpenMP. Several important programs in the AFNI suite are parallelized via OpenMP, and will run much faster if compiled appropriately.

If you are using Linux, try Makefile.linux_openmp_64 first.

To make and install everything do:

make vastness

The command:

make cleanest

will remove all the *.o files, etc.

Making a pull request to the AFNI code base

Notes for making a fork and pull request to AFNI are provided here:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/devdocs/pull_requests/pr_ex.html
Users and developers are also welcome to open up GitHub Issues here:
https://github.com/afni/afni/issues
We also have a very active Message Board for asking questions about using AFNI programs, getting help with installations, seeing new features, staying up-to-date with Bootcamp and other announcements, and more:
https://discuss.afni.nimh.nih.gov/

Online testing notes

image

image

image

afni's Projects

afni icon afni

Official AFNI source and documentation

afni_doc icon afni_doc

Documentation for the AFNI package (mainly RST to build HTML docs)

afni_edu_scripts icon afni_edu_scripts

scripts used in AFNI class data trees, plus support/initializing scripts

afnistats icon afnistats

A place to iterate on an attempt at packaging afni's R code

apaper_apqc_etal icon apaper_apqc_etal

These scripts were used to process the dataset used to demo quality control (QC) tools in AFNI (Taylor et al., 2024).

apaper_hrf_profiles icon apaper_hrf_profiles

Scripts accompanying Chen et al. (2022/3) work on modeling, visualizing and understanding FMRI hemodynamic response.

docker_v1 icon docker_v1

start of notes for building AFNI docker more directly+simply

staged-recipes icon staged-recipes

A place to submit conda recipes before they become fully fledged conda-forge feedstocks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.