Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 7 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.1%) to scientific vocabulary
Repository
Stand alone fMRI software suite for layer-fMRI analyses.
Basic Info
Statistics
- Stars: 91
- Watchers: 12
- Forks: 27
- Open Issues: 19
- Releases: 16
Metadata Files
README.md
LayNii

This is a package of standalone layer (functional) magnetic resonance imaging (layer-fMRI) C++ programs that depends only on a C++ compiler. The purpose of this package is to provide layer-analysis software that are not (yet) included in the other major MRI analysis software.
Most essential programs (so far) are:
- LN2_LAYERS: To generate equi-distant or equi-volume layers from gray matter segmentation. (Alternative to LN_GROW_LAYERS in older versions of LayNii).
- LN_LAYER_SMOOTH: For layer-specific spatial smoothing.
- LN_BOCO: BOLD correction to attain the VASO contrast with SS-SI-VASO.
- LN2_MULTILATERATE & LN2_PATCH_FLATTEN: For flattening cortical chunks (see an application here)
Citation
If you use LayNii in your research please cite the following article:
- Huber, L., Poser, B. A., Bandettini, P. A., Arora, K., Wagstyl, K., Cho, S., Goense, J., Nothnagel, N., Morgan, A. T., van den Hurk, J., Mueller A. K., Reynolds, R. C., Glen, D. R., Goebel, R. W., Gulban, O. F. (2021). LayNii: A software suite for layer-fMRI. NeuroImage, 118091. https://doi.org/10.1016/j.neuroimage.2021.118091
In addition, please cite the software version of LayNii by using our Zenodo integration:
-
Installation
Method 1: [Easiest method] Download the zip file
Choose the right version for your computer from our releases page: https://github.com/layerfMRI/LAYNII/releases
Unzip the downloaded zip file to a desired location (e.g.
/home/user1/LayNii)Navigate to the unzipped folder in your terminal and execute a LayNii command:
bash cd /home/user1/LayNii ./LN2_LAYERS -h
Method 2: Compile yourself
A detailed descriptions of how to set up LayNii is provided here: https://layerfmri.com/laynii-setup/ A brief instruction is also given below.
Download the latest release and unzip it or clone the repository with the command:
bash git clone --depth 1 https://github.com/layerfMRI/layniiChange directory to laynii folder:
bash cd layniiCompile it with:
bash make all
Note-1: See this comment on cross-platform compatibility.
Note-2: See this comment on makefile and compilers.
Method 3: via conda-forge
LayNii is now also included in the software management system of conda forge. See this pull-request.
Docker image
See https://hub.docker.com/repositories/layerfmri .
Building the docker image
git clone --depth 1 https://github.com/layerfMRI/laynii
cd laynii
docker build . -t laynii:latest
Running the docker image
The template below would map some directories on your comptuer
to the /output and /input inside the container.
--user "$(id -u):$(id -g)" would ensure that the output of this docker run
is not owned by the root user (which is the default in docker).
```bash OUPUTDIR=FIXME INPUTDIR=FIXME
docker run -it --rm \ --user "$(id -u):$(id -g)" \ -v "${OUPUTDIR}":/output \ -v "${INPUTDIR}":/input \ laynii:latest \ laynii_command ```
Example to be run from the root folder of the LAYNII repository.
```bash INPUTDIR=${PWD}/testdata
mkdir ${PWD}/output OUTPUT_DIR=${PWD}/output
docker run -it --rm \ -v "${OUTPUTDIR}":/output \ -v "${INPUTDIR}":/input \ --user "$(id -u):$(id -g)" \ laynii:latest \ LNBOCO \ -Nulled "/input/loNulledintemp.nii" \ -BOLD "/input/loBOLDintemp.nii" \ -trialBOCO 40 -shift \ -output /output/loBOLD ```
Tutorials & Use Cases
Tutorials on layering, layer-smoothing, columnar analysis are here in layerfmri blog and here in ofgulban's youtube channel. Various pipeline script in the context of LayNii see the LayNii_extras Links to instruction of the specific programs are included in the help output of the respective programs and below"
- LN2_LAYERS algorithm
- LN2_LAYERS example application
- LN2_DEVEIN
- LN_BOCO
- LNCOLUMNARDIST
- LN_IMAGIRO
- LNLAYERSMOOTH
- LN_GRADSMOOTH
- LNGRADSMOOTHITER
- LNDIRECTSMOOTH
- LN_TEMPSMOOTH
- LN_INTPRO
- LNMP2RAGEDNOISE
- LN_SKEW
- LNNOISEKERNEL
- LNLEAKYLAYERS
- LN_LOITUMA
- LNGROWLAYERS usage
- LNGROWLAYERS example application
- LNGROWLAYERS example application
- LNGROWLAYERS example application
How to contribute?
If you have any issues when using LayNii, or want to request a new feature, we are happy to see them posted on our issues page. Please employ this as your preferred method (instead of sending individual emails to the authors), since fellow researchers might have similar issues and suggestions.
Code Contributors
- Renzo Huber
- Omer Faruk Gulban
- Alessandra Pizzuti
- Sebastian Dresbach
- Remi Gau
- Marco Barilari
License
LayNii is licensed under BSD-3-Clause.
Acknowledgments
In order to read and write Nifti data, we have adapted code that was originally developed by the Neuroimaging Informatics Technology Initiative. We thank Bob Cox, Daniel Glen and Rick Reynolds. Between 2019-2022, Renzo Huber was supported by NWO Veni Grant in Maastricht University. Since early 2020, development and maintenance of this project is being actively supported by Brain Innovation as one of the developers (Omer Faruk Gulban) works there.
Owner
- Login: layerfMRI
- Kind: user
- Location: USA
- Company: NIMH
- Website: https://layerfmri.com/
- Repositories: 3
- Profile: https://github.com/layerfMRI
Renzo Huber Lab site: https://mr-methods-mbic.com/renzo/
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Huber
given-names: Laurentius
orcid: https://orcid.org/0000-0002-3291-2202
- family-names: Benedikt
given-names: Poser
orcid: https://orcid.org/0000-0001-8190-4367
- family-names: Bandettini
given-names: Peter
orcid: https://orcid.org/0000-0001-9038-4746
- family-names: Arora
given-names: Kabir
orcid: https://orcid.org/0000-0003-3978-9443
- family-names: Wagstyl
given-names: Konrad
orcid: https://orcid.org/0000-0003-3439-5808
- family-names: Cho
given-names: Shinho
orcid: https://orcid.org/0000-0002-2849-188X
- family-names: Goense
given-names: Jozien
- family-names: Nothnagel
given-names: Nils
- family-names: Morgan
given-names: Andrew Tyler
orcid: https://orcid.org/0000-0001-6017-2179
- family-names: van den Hurk
given-names: Job
orcid: https://orcid.org/0000-0002-5507-7860
- family-names: Müller
given-names: Anna Katharina
orcid: https://orcid.org/0000-0003-2176-0861
- family-names: Reynolds
given-names: Richard
orcid: https://orcid.org/0000-0002-7267-5563
- family-names: Glen
given-names: Daniel
orcid: https://orcid.org/0000-0001-8456-5647
- family-names: Goebel
given-names: Rainer
orcid: https://orcid.org/0000-0003-1780-2467
- family-names: Gulban
given-names: Omer Faruk
orcid: https://orcid.org/0000-0001-7761-3727
title: "LayNii: A software suite for layer-fMRI"
version: v2.4.0
doi: 10.1016/j.neuroimage.2021.118091
date-released: 2021-07-16
GitHub Events
Total
- Create event: 2
- Release event: 2
- Issues event: 10
- Watch event: 13
- Issue comment event: 21
- Push event: 92
- Pull request event: 3
- Fork event: 2
Last Year
- Create event: 2
- Release event: 2
- Issues event: 10
- Watch event: 13
- Issue comment event: 21
- Push event: 92
- Pull request event: 3
- Fork event: 2
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 8
- Total pull requests: 0
- Average time to close issues: 10 months
- Average time to close pull requests: N/A
- Total issue authors: 6
- Total pull request authors: 0
- Average comments per issue: 2.25
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 4
- Pull requests: 0
- Average time to close issues: about 1 month
- Average time to close pull requests: N/A
- Issue authors: 4
- Pull request authors: 0
- Average comments per issue: 1.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- ofgulban (6)
- layerfMRI (2)
- zqsha (2)
- samtorrisi (1)
- Changwen-Wu (1)
- lesbinx (1)
- torilynnking (1)
- marcobarilari (1)
- layerConnectome (1)
Pull Request Authors
- marcobarilari (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- debian stretch-slim build
- actions/checkout v3 composite
- citation-file-format/cffconvert-github-action 2.0.0 composite