-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
91 lines (68 loc) · 2.5 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
---
output:
github_document:
toc: true
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = FALSE,
comment = "",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# 🎶 sigrap {#id_-sigrap}
Wrappers for somatic mutation signature analysis tools
(HRDetect, CHORD, MutationalPatterns).
- Docs: <https://umccr.github.io/sigrap/>
<!-- badges: start -->
[![Conda install](https://anaconda.org/umccr/r-sigrap/badges/installer/conda.svg)](https://anaconda.org/umccr/r-sigrap)
<!-- badges: end -->
## Installation
```r
remotes::install_github("umccr/sigrap")
```
- Or if used inside a conda environment:
```bash
conda install r-sigrap -c umccr -c conda-forge -c bioconda
```
## Main Modules
### 🔍 HRDetect {#id_-hrdetect}
Wraps functionality from the [HRDetect](https://github.com/Nik-Zainal-Group/signature.tools.lib)
framework - see
vignette at <https://umccr.github.io/sigrap/articles/hrdetect.html>.
### 🎸 CHORD {#id_-chord}
Wraps functionality from [CHORD](https://github.com/UMCUGenetics/CHORD) - see
vignette at <https://umccr.github.io/sigrap/articles/chord.html>.
### 🐾 MutationalPatterns {#id_-mutationalpatterns}
Wraps functionality from [MutationalPatterns](https://github.com/UMCUGenetics/MutationalPatterns) - see
vignette at <https://umccr.github.io/sigrap/articles/mutationalpatterns.html>.
## 💻 CLI {#id_-cli}
A `sigrap` command line interface is available for convenience.
- If you're using the conda package, the `sigrap.R` command will already be set up
inside an activated conda environment.
- If you're _not_ using the conda package, you need to export the
`sigrap/inst/cli/` directory to your `PATH` in order to use `sigrap.R`.
```{bash echo=TRUE, eval=FALSE}
sigrap_cli=$(Rscript -e 'x = system.file("cli", package = "sigrap"); cat(x, "\n")' | xargs)
export PATH="${sigrap_cli}:${PATH}"
```
```{bash prompt=TRUE, echo=FALSE}
sigrap_cli=$(Rscript -e 'x = system.file("cli", package = "sigrap"); cat(x, "\n")' | xargs)
export PATH="${sigrap_cli}:${PATH}"
echo "sigrap.R --version" & sigrap.R --version
echo ""
echo "#-----------------------------------#"
echo "sigrap.R --help" & sigrap.R --help
echo ""
echo "#------- HRDetect -------#"
echo "sigrap.R hrdetect --help" & sigrap.R hrdetect --help
echo ""
echo "#------- CHORD -------#"
echo "sigrap.R chord --help" & sigrap.R chord --help
echo ""
echo "#------- MutationalPatterns -------#"
echo ""
echo "sigrap.R mutpat --help" & sigrap.R mutpat --help
```