phytoclass

A pigment-based chemotaxonomic method to determine the biomass of phytoplanton classes.

https://github.com/phytoclass/phytoclass

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.1%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

A pigment-based chemotaxonomic method to determine the biomass of phytoplanton classes.

Basic Info
Statistics
  • Stars: 3
  • Watchers: 2
  • Forks: 3
  • Open Issues: 16
  • Releases: 0
Created almost 4 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog Contributing License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# phytoclass

The phytoclass package uses non-negative matrix factorization and simulated annealing to determine the chl a concentrations of different phytoplankton groups from pigment concentrations.

The main function is 'Simulated annealing'. This can be used in conjuction with the cluster function, which clusters larger datasets. To understand how to use your own matrices instead of the default dataset, please see the example in the vignette.

When setting up your matrices, it is important to ensure that pigments are in the same order in the Sm and Fm matrices. Chlorophyll a must be the final column.

There is a separate function when Divinyl chlorophyll a and Prochlorococcus are used. Here Divinyl chlorophyll a must be the 2nd to last column (see 'Fp').
Note: If dvchl is detected as the second-to-last column in your input matrix, 
the simulated_annealing() function will automatically call the 
Prochlorococcus-optimized version (simulated_annealing_Prochloro()).

The 'Steepest Descent'function is similar to that of CHEMTAX, and is unconstrained by minimum and maximum values, unlike the simualted annealing function. I would use this with more caution.


## Installation

It can be installed from CRAN with:

```r
install.packages("phytoclass")
```

Or the development version from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("AndyMcKenzieFromNZ/phytoclass")
```

## Example

For the built-in samples matrix Sm of pigment samples:

```{r example}
library(phytoclass)
set.seed("84545")

Results <- simulated_annealing(Sm, niter = 5)

Results$RMSE
Results$MAE
Results$Error
Results$`F matrix`
Results$`Class abudances`
Results$Figure
```


# Documentation
Documentation is built into a website using pkgdown and GitHub actions.
To build locally run `pkgdown::build_site()` and `pkgdown::preview_site()`.
Changes made to the `main` branch will trigger an automatic GitHub action to update the docs.
This process can take a few minutes from commit time to website update.

# Automated Testing
The included `./vignettes/` serve as tests for the project.
If the `pkgdown` build fails then something has gone wrong.

**Always test before pushing** by running `pkgdown::build_site()`.

Owner

  • Name: phytoclass
  • Login: phytoclass
  • Kind: organization

GitHub Events

Total
  • Issues event: 24
  • Watch event: 2
  • Member event: 1
  • Issue comment event: 27
  • Push event: 44
  • Pull request review comment event: 2
  • Pull request review event: 12
  • Pull request event: 28
  • Fork event: 3
  • Create event: 2
Last Year
  • Issues event: 24
  • Watch event: 2
  • Member event: 1
  • Issue comment event: 27
  • Push event: 44
  • Pull request review comment event: 2
  • Pull request review event: 12
  • Pull request event: 28
  • Fork event: 3
  • Create event: 2

Packages

  • Total packages: 1
  • Total downloads:
    • cran 514 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
cran.r-project.org: phytoclass

Estimate Chla Concentrations of Phytoplankton Groups

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 514 Last month
Rankings
Dependent packages count: 27.9%
Dependent repos count: 36.9%
Average: 50.3%
Downloads: 86.1%
Maintainers (1)
Last synced: 10 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 3.8 depends
  • Metrics * imports
  • RcppML * imports
  • bestNormalize * imports
  • dplyr * imports
  • dynamicTreeCut * imports
  • ggplot2 * imports
  • stats * imports
  • tidyr * imports
  • knitr * suggests
  • rmarkdown * suggests