-
Notifications
You must be signed in to change notification settings - Fork 11
/
README.Rmd
88 lines (64 loc) · 3.75 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-"
)
```
# 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 -->
[![Build Status](https://travis-ci.org/muschellij2/fslr.svg?branch=master)](https://travis-ci.org/muschellij2/fslr)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/fslr)](https://cran.r-project.org/package=fslr)
[![](https://cranlogs.r-pkg.org/badges/fslr)](https://cran.rstudio.com/web/packages/fslr/index.html)
[![](http://cranlogs.r-pkg.org/badges/grand-total/fslr)](http://cran.rstudio.com/web/packages/fslr/index.html)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/muschellij2/fslr?branch=master&svg=true)](https://ci.appveyor.com/project/muschellij2/fslr)
[![Coverage Status](https://coveralls.io/repos/github/muschellij2/fslr/badge.svg?branch=master)](https://coveralls.io/r/muschellij2/fslr?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e07ba6cce2ea4eeaa1819e1041637914)](https://www.codacy.com/manual/muschellij2/fslr?utm_source=github.com&utm_medium=referral&utm_content=muschellij2/fslr&utm_campaign=Badge_Grade)
[![R-CMD-check](https://github.com/muschellij2/fslr/workflows/R-CMD-check/badge.svg)](https://github.com/muschellij2/fslr/actions)
<!-- badges: end -->
## 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/)