-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathREADME.rmd
More file actions
93 lines (61 loc) · 2.53 KB
/
README.rmd
File metadata and controls
93 lines (61 loc) · 2.53 KB
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
89
90
91
92
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
<!-- badges: start -->
[](https://github.com/bbuchsbaum/rMVPA/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
## Multivoxel Pattern Analysis in R
```{r, echo = FALSE}
version <- as.vector(read.dcf('DESCRIPTION')[, 'Version'])
version <- gsub('-', '.', version)
```
### This package is under development.
### Introduction
`rMVPA` is an R library for multivariate pattern analysis of neuroimaging data. The goal of this library is to make MVPA analyses easy. It can be used both programmatically from within R or using a command line interface. 'rMVPA' provides a lightweight model registry and efficient resampling methods for machine learning. What `rMVPA` provides is the infrastructure for conducting machine learning analyses on neuroimaging data.
Documentation and vignettes: https://bbuchsbaum.github.io/rMVPA/
### Installation
### Using devtools
To install `rMVPA` from within R, use the `devtools` function `install_github`. You will need the development version of `neuroim2` as well.
From within R:
```
#library(devtools)
install_github("bbuchsbaum/neuroim2")
install_github("bbuchsbaum/rMVPA")
```
### Using `git` from the command line
```
git clone git@github.com:bbuchsbaum/rMVPA.git
R CMD install rMVPA
```
### Command line scripts
`rMVPA` now ships packaged CLI wrappers with native command names:
- `rmvpa-searchlight`
- `rmvpa-regional`
Install the package:
```r
pak::pak("bbuchsbaum/rMVPA")
```
Then copy the wrappers into a directory on your `PATH`:
```r
rMVPA::install_cli("~/.local/bin", overwrite = TRUE)
```
If needed, add that directory to `PATH`:
```bash
export PATH="$HOME/.local/bin:$PATH"
```
On macOS/Linux, you can then run:
```bash
rmvpa-searchlight --help
rmvpa-regional --help
rmvpa-searchlight --version
```
The unified CLI vignette is `vignette("CommandLine")`. The legacy source-tree
entrypoints remain available as compatibility shims, but the packaged commands
above are the supported interface.