-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME.Rmd
154 lines (106 loc) · 5.8 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# tima <img src='https://raw.githubusercontent.com/taxonomicallyinformedannotation/tima/main/man/figures/logo.svg' align="right" height="139" />
<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![CRAN status](https://www.r-pkg.org/badges/version/tima)](https://CRAN.R-project.org/package=tima)
[![R-CMD-check](https://github.com/taxonomicallyinformedannotation/tima/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/taxonomicallyinformedannotation/tima/actions/workflows/R-CMD-check.yaml)
[![R-Universe](https://taxonomicallyinformedannotation.r-universe.dev/badges/tima)](https://taxonomicallyinformedannotation.r-universe.dev/tima)
[![Codecov test coverage](https://codecov.io/gh/taxonomicallyinformedannotation/tima/graph/badge.svg)](https://app.codecov.io/gh/taxonomicallyinformedannotation/tima)
[![Docker](https://badgen.net/badge/icon/docker?icon=docker&label)](https://hub.docker.com/r/adafede/tima-r/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5797920.svg)](https://doi.org/10.5281/zenodo.5797920)
<!-- badges: end -->
The initial work is available at <https://doi.org/10.3389/fpls.2019.01329>, with many improvements made since then.
The workflow is illustrated below.
![Workflow](https://raw.githubusercontent.com/taxonomicallyinformedannotation/tima/main/man/figures/tima.svg)\
This repository contains everything needed to perform **T**axonomically **I**nformed **M**etabolite **A**nnotation.
## Requirements
Here is what you *minimally* need:
- A feature list (.csv) (see [example features](https://github.com/taxonomicallyinformedannotation/tima-example-files/blob/main/example_features.csv))
- A spectral file corresponding to the feature list (.mgf) (see [example spectra](https://github.com/taxonomicallyinformedannotation/tima-example-files/blob/main/example_spectra_mini.mgf))
- The biological source(s) of the sample(s) you are annotating (.csv) (see [example metadata](https://github.com/taxonomicallyinformedannotation/tima-example-files/blob/main/example_metadata.tsv)) (File is optional if only a single organism)
Optionally, you may want to add:
- An in-house structure-organism pairs library (we provide **[LOTUS](https://lotusnprod.github.io/lotus-manuscript/)** as starting point for each user)
- Your own manual or automated annotations (we currently support annotations coming from SIRIUS (with some limitations))
## Installation
As the package is not (yet) available on CRAN, you will need to install with:
``` r
install.packages(
"tima",
repos = c(
"https://taxonomicallyinformedannotation.r-universe.dev",
"https://bioc.r-universe.dev",
"https://cloud.r-project.org"
)
)
```
Then, you should be able to install the rest with:
``` r
tima::install()
```
Normally, everything you need should then be installed (as tested in [here](https://github.com/taxonomicallyinformedannotation/tima-r/actions/workflows/external-use.yaml)).
If for some reason, some packages were not installed, try to install them manually.
To avoid such issues, we offer a containerized version (see [Docker](#docker)).
Once installed, you are ready to go through our [documentation](https://taxonomicallyinformedannotation.github.io/tima/articles/), with the major steps detailed.
In case you do not have your data ready, you can obtain some example data using:
``` r
tima::get_example_files()
```
Once you are done, you can open a small GUI to adapt your parameters and launch your job:
``` r
tima::run_app()
```
This command will open a small app in your default browser.
### Docker
A container is also available, together with a small compose file.
Main commands are below:
``` bash
docker pull adafede/tima-r
# docker build . -t adafede/tima-r
```
``` bash
docker run --user tima-user -v "$(pwd)/.tima/data:/home/tima-user/.tima/data" -p 3838:3838 adafede/tima-r Rscript -e "tima::run_app()"
# docker run --user tima-user -v "$(pwd)/.tima/data:/home/tima-user/.tima/data" adafede/tima-r Rscript -e "tima::tima_full()"
```
Or alternatively (if you did pull the repository and are located at the right place):
``` bash
docker compose up tima-run-app
# docker compose up tima-full
```
## Main Citations
According to which steps you used, please give credit to the authors of the tools/resources used.
### TIMA
General: <https://doi.org/10.3389/fpls.2019.01329>
⚠️ Do not forget to cite which version you used: <https://doi.org/10.5281/zenodo.5797920>
### LOTUS
General: <https://doi.org/10.7554/eLife.70780>
⚠️ Do not forget to cite which version you used: <https://doi.org/10.5281/zenodo.5794106>
### ISDB
General: <https://doi.org/10.1021/acs.analchem.5b04804>
⚠️ Do not forget to cite which version you used: <https://doi.org/10.5281/zenodo.5607185>
### GNPS
General: <https://doi.org/10.1038/nbt.3597>
### SIRIUS
General: <https://doi.org/10.1038/s41592-019-0344-8>
- *CSI:FingerId*: <https://doi.org/10.1073/pnas.1509788112>
- *ZODIAC*: <https://doi.org/10.1038/s42256-020-00234-6>
- *CANOPUS*: <https://doi.org/10.1038/s41587-020-0740-8>
- *COSMIC*: <https://doi.org/10.1038/s41587-021-01045-9>
### Others
- The *RforMassSpectrometry* packages suite for MS2 matching: <https://doi.org/10.3390/metabo12020173>
- ECMDB 2.0: <https://doi.org/10.1093/nar/gkv1060>
- HMDB 5.0: <https://doi.org/10.1093/nar/gkab1062>
- MassBank: <https://doi.org/10.5281/zenodo.3378723>
- NPClassifier: <https://doi.org/10.1021/acs.jnatprod.1c00399>
- ROTL: <https://doi.org/10.1111/2041-210X.12593>
- Spectral entropy: <https://doi.org/10.1038/s41592-021-01331-z>