-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
88 lines (64 loc) · 2.59 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
---
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%"
)
```
# aquaman
<!-- badges: start -->
[![R-CMD-check](https://github.com/aquaMetrics/aquaman/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/aquaMetrics/aquaman/actions/workflows/R-CMD-check.yaml)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[![Codecov test coverage](https://codecov.io/gh/aquaMetrics/aquaman/branch/main/graph/badge.svg)](https://app.codecov.io/gh/aquaMetrics/aquaman?branch=main)
<!-- badges: end -->
The goal of `aquaman` R package is to calculate ecology metrics needed to assess
the mixing zone area, fulfilling these specific steps:
- Assign bacteria taxa from DNA reads using `dada2` package.
- Model IQI metric from assigned bacteria families.
This package is in an experimental phase. This package will provide inputs to
the `halia` package which then calculates the area of the mixing zone.
## Installation
You can install the development version of `aquaman` like so:
```r
install.packages("devtools")
devtools::install_github("aquaMetrics/aquaman")
```
## Model IQI
This example shows you how to calculate mixing zone from demo IQI input data:
```{r example}
library(aquaman)
```
Using assigned family-level bacteria taxa as predictors, calculate benthic
invert IQI as an outcome.
**WORK IN PROGRESS - DO NOT USE IN PRODUCTION**
```{r}
# Run the IQI model based on demo taxanomic data
iqi_scores <- iqi(demo_taxa)
head(iqi_scores, 5)
```
IQI prediction model created by Tom Wilding (SAMS) based on training data from
SEPA And MOWI.
## Assign Taxa
**WORK IN PROGRESS - DO NOT USE IN PRODUCTION**
Assign bacteria families based on S-16 DNA reads. This may in time provide the
input to `iqi()` function. Currently, a Qiime 2 command line script achieves
this part of the process.
*Note*, you will be prompted to download a reference taxonomic file on first
use. This will be stored locally.
```r
# Provide a path to the demo data within the package:
taxa <- assign_taxa(demo_path())
# ...this could take some time...
head(taxa, 5)
#> sample_id Family reads
#> 1 MHS-ARD-0-E2 Mitochondria 8
#> 2 MHS-ARD-0-E2 Mitochondria 47
#> 3 MHS-ARD-0-E2 Mitochondria 384
#> 4 MHS-ARD-0-E2 Anaerolineaceae 7
#> 5 MHS-ARD-0-E2 <NA> 10
```