Fslr
FSL-R Interface package
Install / Use
/learn @muschellij2/FslrREADME
fslr
<img src="man/figures/sticker.png" width="100">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.
<!-- badges: start --> <!-- badges: end -->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
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
