You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ANTsR is an R package which wraps the well-established C++ biomedical image processing library <i>[ANTs](https://github.com/ANTsX/ANTs)</i>. It includes efficient reading and writing of medical images, algorithms for registration, segmentation, and statistical learning, as well as functions to create publication-ready visualizations.
17
+
18
+
If you are looking to train deep learning models on your medical images in R, you might be interested in [ANTsRNet](https://github.com/ANTsX/ANTsPy) which provides pre-trained models and utilities for training deep learning models on medical images.
19
+
20
+
<br />
21
+
22
+
## Installation
23
+
24
+
Currently, the only way to install ANTsR is from the pre-compiled binaries or from source. We are actively working on getting ANTsR onto CRAN / Bioconductor / etc.
25
+
26
+
### Binaries
27
+
28
+
The fastest way to install ANTsR is from pre-compile binaries. Download the relevant version and run this from the command-line:
To install ANTsR from source, you can use devtools to install the latest version of the code directly form GitHub:
20
37
21
-
A package providing [ANTs](https://github.com/ANTsX/ANTs) features in R as well as imaging-specific data representations, spatially regularized dimensionality reduction and segmentation tools. See also the **Neuroconductor**[site](https://www.neuroconductor.org/package/details/ANTsR).
38
+
```R
39
+
devtools::install_github('ANTsX/ANTsR')
40
+
```
41
+
42
+
### From source using R CMD INSTALL
22
43
23
-
## Description
44
+
Alternatively, you can clone and install ANTsR and its two main dependencies (ANTsRCore, ITKR) and then install them as you would traditional R source packages.
Install the binary, after downloading, via command line:
62
-
63
-
```
64
-
R CMD INSTALL ANTsR_*.tgz
65
-
```
66
93
67
94
## Research using ANTsR
68
95
@@ -101,178 +128,3 @@ architectures ported to the R language.
101
128
* DenseNet (2-D, 3-D)
102
129
* Object detection
103
130
* Single Shot MultiBox Detector (2-D, 3-D)
104
-
105
-
## Installation from source
106
-
107
-
Please read this entire section before choosing which method you prefer.
108
-
109
-
In general, these **assume** you have [git](http://git-scm.com/) installed / accessible in your environment, as well as a compiler, preferably `clang`. you may also need [cmake](http://www.cmake.org) if you do/can not install `cmaker`.
110
-
111
-
Windows users should see [Rtools](http://cran.r-project.org/bin/windows/Rtools/) and maybe, also, [installr](https://github.com/talgalili/installr) for assistance in setting up their environment for building (must have a compiler too). To my knowledge, there are no recorded instances of ANTsR being installed on Windows. If someone does so, we would like to know.
112
-
113
-
You will need to install R packages that ANTsR requires. Minimally:
114
-
**Install ITKR and ANTsRCore**[here](https://github.com/stnava/ITKR/releases) and [here](https://github.com/ANTsX/ANTsRCore/releases) then do:
You can gain additional functionality by installing packages that
120
-
are listed in the [`DESCRIPTION` file](https://github.com/ANTsX/ANTsR/blob/master/DESCRIPTION) under `Suggests`.
121
-
A complete list of recommended ancillary packages [here](https://github.com/ANTsX/ANTsR/wiki/ANTsR-Dependencies-for-(close-to)-full-functionality).
122
-
123
-
**Method 1: with devtools in R**
124
-
```
125
-
library( devtools )
126
-
# install_github("stnava/cmaker") # if you do not have cmake
127
-
install_github("stnava/ANTsR")
128
-
```
129
-
130
-
**Method 2: from command line (most traditional method)**
131
-
132
-
Assumes git, cmake and compilers are available in your environment (as above).
The [`travis.yml` file](https://github.com/ANTsX/ANTsR/blob/master/.travis.yml) also shows a way to install from Linux command line.
R CMD INSTALL ANTsR_0.6_R_x86_64-pc-linux-gnu.tar.gz
162
-
```
163
-
164
-
165
-
**Method 4: platform independent via docker and kitematic**
166
-
167
-
This is a beta operation that is in flux but may be convenient for some users.
168
-
169
-
* based on [this approach](https://github.com/rocker-org/rocker/wiki/Using-the-RStudio-image)
170
-
171
-
* create a docker username
172
-
173
-
* download and install kitematic
174
-
175
-
* login to kitematic with your docker username
176
-
177
-
* search for `antsr` in the kitematic repository search bar
178
-
179
-
* create a new container from the `stnava` version of `antsr`
180
-
181
-
* start the container
182
-
183
-
* type the "access url" address into a browser to run rstudio with antsr.
184
-
it should be something like `http://192.168.99.100:32989/`
185
-
186
-
* you can also add your home folders to the container instance by adjusting
187
-
the "volumes" option under the settings tab. then you can access local data.
188
-
189
-
## Usage
190
-
Load the package:
191
-
```
192
-
library(ANTsR)
193
-
```
194
-
List the available functions in the namespace ANTsR:
195
-
```
196
-
ANTsR::<double-tab>
197
-
```
198
-
199
-
Call help on a function via ?functionName or see function arguments
200
-
via `args(functionName)`
201
-
202
-
203
-
# Tagging a beta release
204
-
205
-
```
206
-
git tag -d beta
207
-
git push origin :refs/tags/beta
208
-
git tag beta
209
-
git push --tags origin
210
-
```
211
-
212
-
213
-
# Release notes
214
-
215
-
More like *development highlights*, as opposed to *release notes*. See `git log` for the complete history. We try to follow [these versioning recommendations for R packages](http://yihui.name/en/2013/06/r-package-versioning/). Under these guidelines, only `major.minor` is an official release.
216
-
217
-
## 0.4.0
218
-
219
-
* ENH: better compilation and release style.
220
-
* ENH: return boolean same size as image
221
-
* ENH: improved decomposition methods
222
-
* ENH: easier to use antsrSurf and antsrVol
223
-
224
-
## 0.3.3
225
-
226
-
* ENH: spare distance matrix, multi scale svd
227
-
228
-
## 0.3.2
229
-
230
-
* ENH: added domainImg option to plot.antsImage which can standardize plot.
231
-
232
-
* COMP: test for DVCL define requirement to improve clang and gcc compilations
233
-
234
-
* WIP: transform objects can be created on the fly and manipulated thanks to jeff duda
0 commit comments