https://github.com/muschellij2/fslr
FSL-R Interface package
https://github.com/muschellij2/fslr
fsl fslr neuroimaging neuroimaging-analysis neuroimaging-data-science
Last synced: about 1 year ago
JSON representation
FSL-R Interface package
- Host: GitHub
- URL: https://github.com/muschellij2/fslr
- Owner: muschellij2
- Created: 2014-03-31T19:35:03.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2025-02-06T01:07:18.000Z (over 1 year ago)
- Last Synced: 2025-03-29T09:09:18.675Z (about 1 year ago)
- Topics: fsl, fslr, neuroimaging, neuroimaging-analysis, neuroimaging-data-science
- Language: R
- Size: 19.2 MB
- Stars: 41
- Watchers: 9
- Forks: 11
- Open Issues: 9
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
Awesome Lists containing this project
README
---
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-"
)
```
# fslr

The goal of fslr is to port/wrap of FSL into R. As FSL has a fossil as it's logo and it was to sound like "fossil", that's why we have that as our logo.
Much of the operations of FSL, such as fslmaths and fslstats are incorporated. This package is very useful for structural imaging, such as MRI. Some of the fMRI functionality has not been ported or has limited capabiilty.
[](https://travis-ci.org/muschellij2/fslr)
[](https://cran.r-project.org/package=fslr)
[](https://cran.rstudio.com/web/packages/fslr/index.html)
[](http://cran.rstudio.com/web/packages/fslr/index.html)
[](https://ci.appveyor.com/project/muschellij2/fslr)
[](https://coveralls.io/r/muschellij2/fslr?branch=master)
[](https://www.codacy.com/manual/muschellij2/fslr?utm_source=github.com&utm_medium=referral&utm_content=muschellij2/fslr&utm_campaign=Badge_Grade)
[](https://github.com/muschellij2/fslr/actions)
## Installation
You can install fslr from github with:
```{r, eval = FALSE}
# install.packages("devtools")
devtools::install_github("muschellij2/fslr")
```
## Neurodebian builds
Neurodebian has caused some issues in the past for me. I used the following script to just shotgun copy everything. This was discussed in [issue #10](https://github.com/muschellij2/fslr/issues/10).
```{r, engine = "bash", eval = FALSE}
FSLDIR=/usr/local/fsl
FSLSHARE=/usr/share/data
mkdir -p ${FSLDIR}/bin && cp /usr/lib/fsl/5.0/* ${FSLDIR}/bin/
mkdir -p ${FSLDIR}/data/standard && mkdir -p ${FSLDIR}/data/atlases
#######################################
# Setting things up like other installers
#######################################
cp -R ${FSLSHARE}/fsl-mni152-templates/* ${FSLDIR}/data/standard/
# setting up atlases
cp -R ${FSLSHARE}/harvard-oxford-atlases/* ${FSLDIR}/data/atlases/
cp -R ${FSLSHARE}/juelich-histological-atlas/* ${FSLDIR}/data/atlases/
cp -R ${FSLSHARE}/bangor-cerebellar-atlas/* ${FSLDIR}/data/atlases/
cp -R ${FSLSHARE}/jhu-dti-whitematter-atlas/* ${FSLDIR}/data/atlases/
cp -R ${FSLSHARE}/forstmann-subthalamic-nucleus-atlas/* ${FSLDIR}/data/atlases/
cp -R ${FSLSHARE}/fsl-resting-connectivity-parcellation-atlases/* ${FSLDIR}/data/atlases/
cp -R ${FSLSHARE}/mni-structural-atlas/* ${FSLDIR}/data/atlases/
cp -R ${FSLSHARE}/oxford-thalamic-connectivity-atlas/* ${FSLDIR}/data/atlases/
cp -R ${FSLSHARE}/talairach-daemon-atlas/* ${FSLDIR}/data/atlases/
```
### RStudio Neurodebian Problems
Referenced in [another issue](https://github.com/muschellij2/Neurohacking/issues/4), you may have to add
```bash
export LD_LIBRARY_PATH=/usr/lib/fsl/5.0:$LD_LIBRARY_PATH
```
in your `.bash_profile` or `.profile` to get things to work.
Otherwise, you may get errors such as:
```
error while loading shared libraries: libnewimage.so: cannot open shared object file: No such file or directory
```
fossil icon by [Alice Ralph](https://thenounproject.com/aliceralph/)