-
Notifications
You must be signed in to change notification settings - Fork 5
/
README.Rmd
94 lines (67 loc) · 4.66 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
89
90
91
92
93
94
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# `slapnap`
> Super LeArner Predictions using NAb Panels
__Authors:__ [David Benkeser](https://www.github.com/benkeser/), [Brian D. Williamson](https://www.github.com/bdwilliamson/), Craig A. Magaret, Courtney Simmons, Sohail Nizam, Peter B. Gilbert
[![Build Status](https://travis-ci.com/benkeser/slapnap.svg?token=WgmsWkd2hyf88ZxhK8bp&branch=master)](https://travis-ci.com/benkeser/slapnap)
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
<!-- [![DOI](https://zenodo.org/badge/75324341.svg)](https://zenodo.org/badge/latestdoi/75324341) -->
---
## Description
`slapnap` is a Docker image for developing cross-validation-based ensemble predictors of neutralization sensitivity/resistance using HIV sequences from the [CATNAP database](http://www.hiv.lanl.gov/). The image provides an automated tool for reading the data from the online database, compiling analytic data sets, developing prediction models, and summarizing results.
---
## Usage
This GitHub repository contains the source code needed to build the `slapnap` docker image. The repository is also set up for continuous integration via Travis-CI, with built images found on [DockerHub](https://cloud.docker.com/u/slapnap/repository/docker/slapnap/slapnap). See the [Docker website](https://docs.docker.com/docker-for-windows/install/) for installation instructions.
From a terminal the image can be downloaded from DockerHub via the command line.
```{bash, eval = FALSE}
docker pull slapnap/slapnap
```
`slapnap` is executed using the docker run command. For example, the following code will instruct `slapnap` to create and evaluate a neutralization predictor for the bnAb combination VRC07-523-LS and PGT121:
```{bash, eval = FALSE}
docker run \
-v path/to/local/save/directory:/home/output/ \
-e nab="VRC07-523-LS;PGT121" \
-e outcomes=”ic50;estsens” \
-e combination_method="additive" \
-e learners=”rf;lasso” \
-e importance_grp=”marg” \
-e importance_ind=”pred” \
slapnap/slapnap:latest
```
The `–v` tag specifies the directory on the user’s computer where the report will be saved, and `path/to/local/save/directory` should be replaced with the desired target directory. Options for the analysis are passed to the container via the `-e` tag; these options include the bnAbs to include in the analysis (`nab`), the neutralization outcomes of interest (`outcomes`), the method for predicting combination neutralization (`combination_method`), the learners to use in the analysis (`learners`), and the types of variable importance to compute (`importance_grp`, for groups of variables; `importance_ind`, for individual variables). Other output (e.g., the formatted analysis dataset and the fitted learners) can be requested via the `return` option. A full list of options and their syntax are available in the [`slapnap` documentation](https://benkeser.github.io/slapnap/3-sec-runningcontainer.html).
Complete documentation is available [here](https://benkeser.github.io/slapnap/).
## Issues
If you encounter any bugs or have any specific feature requests, please [file an
issue](https://github.com/benkeser/slapnap/issues).
---
## License
© 2019--present David Benkeser
The contents of this repository are distributed under the MIT license:
```
The MIT License (MIT)
Copyright (c) 2019--present David Benkeser
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```