FSL-R Interface package
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
docs
inst
man
vignettes
.Rbuildignore
.gitignore
.lintr
.travis.yml
Archive.zip
DESCRIPTION
NAMESPACE
NEWS.md
README.Rmd
README.md
appveyor.yml
cran-comments.md
fslr.Rproj
fslr_Generic_Function.R
fslr_Generic_Maker.R
fslr_Generic_fslmaths.R
fslr_Generic_fslmaths_Maker.R
fslr_Generic_fslmaths_onefile.R
fslr_Generic_fslstats.R
fslr_Generic_fslstats_Maker.R
fslr_Generic_fslstats_nonzero.R
fslr_maths_helpfile.R
fslr_underscore_functions.R
fslr_underscore_functions_maker.R
icon.png
sticker.R
sticker.png

README.md

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.

Build Status CRAN_Status_Badge AppVeyor Build Status Coverage Status

Installation

You can install fslr from github with:

# 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.

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, you may have to add

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