This package contains a collection of miscellaneous functions for ecological studies.
See LICENSE.
You can install the development version of macam from GitHub with:
#install.packages("remotes")
remotes::install_github("ong8181/macam")
# Or build_vignettes = TRUE to install with vignettes
remotes::install_github("ong8181/macam", build_vignettes = TRUE, force = TRUE)
Type ?macam::xxxxx()
for detail. Also please check browseVignette("macam")
.
outdir_create()
: Create output directory.save_workspace()
: Save workspace.save_session_info()
: Save session information.
AllOrients()
: List up all orientations of primer sequence (from DADA2 tutrial).PrimerHits()
: Count the number of primer hits (from DADA2 tutrial)cov_info()
: Get coverage and diversity information of aphyloseq
object usingiNEXT
package.rarefy_even_coverage()
: Perform coverage-based rarefaction.plot_rarefy()
: Visualize results of coverage-based rarefaction.taxa_name_bundle()
: Bundle taxa names in phyloseq object for visualization purpose.assign_ps_barcol()
: Assign colors to the barplot generated byphyloseq::plot_bar()
.
s_map_rgl()
: Perform the regularized S-map in Cenci et al. (2019). A wrapper function ofextended_lnlp()
.extended_lnlp()
: A generalized function for the regularized S-map. For the multivariate S-map, please use this function.twin_surrogate_cpp()
: Generate twin surrogate time series from an original time series (see Thiel et al. 2006).uic_across()
: Perform UIC across columns (for the MDR S-map) (beta version).make_block_mvd()
: Generate data.frame for the calculation of multiview distance (for the MDR S-map) (beta version).compute_mvd()
: Compute multiview distance (for the MDR S-map) (beta version).s_map_mdr()
: Perform the MDR S-map in Chang et al. (2021) (beta version).s_map_mdr_all()
: A convenient all-in-one wrapper function for the MDR S-map. To fine-tune parameters, use step-by-step functions such ascompute_mvd()
etc (beta version).
-
label_10_to_power()
: Convert a numeric variable to a scientific notation (e.g., 1500 will be$1.5 \times 10^3$ )
data_4sp
: Demo time series data for time series analysis. Data is from Ushio et al. (2018).asv_sheet
: A demo ASV sheet for sequence analysis. Data is from Ushio (2019).sample_sheet
: A demo sample sheet for sequence analysis. Data is from Ushio (2019).tax_sheet
: A demo taxa sheet for sequence analysis. Data is from Ushio (2019).
- Cenci et al. (2019) Methods in Ecology and Evolution. https://doi.org/10.1111/2041-210X.13150
- Chang et al. (2021) Ecology Letters. https://doi.org/10.1111/ele.13897
- Chiu & Chao (2016) PeerJ. https://doi.org/10.7717/peerj.1634
- Hsieh et al. (2016) Methods in Ecology and Evolution. https://doi.org/10.1111/2041-210X.12613
- Osada & Ushio (2020) rUIC:Unified Information-theoretic Causality for R. https://doi.org/10.5281/zenodo.5163234
- Osada et al. (2023) bioRxiv. https://doi.org/10.1101/2023.04.20.537743
- Mikryukov (2018) vmikk/metagMisc: v.0.0.4. https://doi.org/10.5281/zenodo.571403