{
  "_id": "6ad9d59d021a938ed758ec58",
  "Package": "eDNAfuns",
  "Type": "Package",
  "Title": "Working with Metabarcoding Data in a Tidy Format",
  "Version": "0.1.0",
  "Authors@R": "person(given = \"Ramón\",\nfamily= c(\"Gallego Simón\"),\nrole= c(\"aut\",\"cre\"),\nemail= \"ramongallego@gmail.com\")",
  "Description": "A series of R functions that come in handy while working\nwith metabarcoding data. The reasoning of doing this is to have\nthe same functions we use all the time stored in a curated,\nreproducible way. In a way it is all about putting together the\ngrammar of the 'tidyverse' from Wickham et al.(2019)\n<doi:10.21105/joss.01686> with the functions we have used in\ncommunity ecology compiled in packages like 'vegan' from Dixon\n(2003) <doi:10.1111/j.1654-1103.2003.tb02228.x> and 'phyloseq'\nMcMurdie & Holmes (2013) <doi:10.1371/journal.pone.0061217>.\nThe package includes functions to read sequences from FAST(A/Q)\ninto a tibble ('fasta_reader' and 'fastq_reader'), to process\n'cutadapt' Martin (2011) <doi:10.14806/ej.17.1.200> 'info-file'\noutput. When it comes to sequence counts across samples, the\npackage works with the long format in mind (a three column\n'tibble' with Sample, Sequence and counts ), with functions to\nmove from there to the wider format.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-22 09:16:28 UTC",
    "User": "root"
  },
  "Author": "Ramón Gallego Simón [aut, cre]",
  "Maintainer": "Ramón Gallego Simón <ramongallego@gmail.com>",
  "Config/pak/sysreqs": "cmake libglpk-dev make libicu-dev libuv1-dev\nlibxml2-dev libssl-dev libx11-dev zlib1g-dev",
  "Repository": "https://ramongallego.r-universe.dev",
  "Date/Publication": "2025-10-01 07:00:09 UTC",
  "RemoteUrl": "https://github.com/cran/eDNAfuns",
  "RemoteRef": "HEAD",
  "RemoteSha": "d56354ab3cb233850f64f9ff5cb3b81bbede0f73",
  "_user": "ramongallego",
  "_type": "src",
  "_file": "eDNAfuns_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/e801e507171a8bd92af68279dafebabb7acc77cd43278897a36edf917543ce4b",
  "_filesize": 238132,
  "_sha256": "e801e507171a8bd92af68279dafebabb7acc77cd43278897a36edf917543ce4b",
  "_expires": "2027-01-30T09:21:31.000Z",
  "_created": "2026-10-22T09:16:28.000Z",
  "_published": "2026-10-22T09:21:33.555Z",
  "_upstream": "https://github.com/cran/eDNAfuns",
  "_status": "success",
  "_maintainer": {
    "name": "Ramón Gallego Simón",
    "email": "ramongallego@gmail.com",
    "login": "ramongallego",
    "twitter": "@pollicipes",
    "description": "I am a marine biologist turned bioinformatician. I work with #metabarcoding data from #eDNA in marine systems. Currently a #CesarNombela fellow at UAM",
    "uuid": 15640943
  },
  "_jobs": [
    {
      "job": 119742005771,
      "time": 220,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12415341038"
    },
    {
      "job": 119742005716,
      "time": 239,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12414613454"
    },
    {
      "job": 119742006007,
      "time": 199,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12415435521"
    },
    {
      "job": 119742006744,
      "time": 251,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12415047677"
    },
    {
      "job": 119738351223,
      "time": 501,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12415410312"
    },
    {
      "job": 119742005755,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12415475373"
    },
    {
      "job": 119742005846,
      "time": 143,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12415830094"
    },
    {
      "job": 119742005982,
      "time": 184,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12414718625"
    },
    {
      "job": 119742005854,
      "time": 141,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12415750328"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ramongallego/actions/runs/39753092137",
  "_commit": {
    "id": "d56354ab3cb233850f64f9ff5cb3b81bbede0f73",
    "author": "Ramón Gallego Simón <ramongallego@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1759302009
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "googlesheets4",
      "role": "Imports"
    },
    {
      "package": "phyloseq",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "vegan",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "vroom",
      "role": "Imports"
    },
    {
      "package": "Biostrings",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "insect",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "tidyverse",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "ramongallego",
      "count": 1,
      "uuid": 15640943
    }
  ],
  "_userbio": {
    "uuid": 15640943,
    "type": "user",
    "name": "ramongallego",
    "followers": 22,
    "description": "I am a marine biologist turned bioinformatician. I work with #metabarcoding data from #eDNA in marine systems. Currently a #CesarNombela fellow at UAM"
  },
  "_downloads": {
    "count": 369,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/eDNAfuns"
  },
  "_searchresults": 25,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/eDNAfuns.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_realowner": "ramongallego",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-10-03"
    }
  ],
  "_exports": [
    "count_stop_codons",
    "eDNAindex",
    "fasta_reader",
    "fasta_writer",
    "fastq_reader",
    "fastq_writer",
    "mutation",
    "ng2nM",
    "nM2ng",
    "phyloseq2tidy",
    "plot_seq_len_hist",
    "read_indexing_PCR",
    "read_info_file",
    "read_step1_PCR",
    "tally_wide",
    "tibble_to_comm",
    "tibble_to_dist",
    "tibble_to_env",
    "tidy2phyloseq",
    "write_indexing_PCR"
  ],
  "_datasets": [
    {
      "name": "AMPURE",
      "title": "AMPURE",
      "object": "AMPURE",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Position",
        "Sample",
        "PCR_of_Origin",
        "Well_of_Origin",
        "Keepers",
        "n",
        "Well",
        "Row",
        "Column"
      ],
      "rows": 64,
      "table": true,
      "tojson": true
    },
    {
      "name": "ASV_table",
      "title": "ASV_table",
      "object": "ASV_table",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "sample_name",
        "Hash",
        "nReads"
      ],
      "rows": 9,
      "table": true,
      "tojson": true
    },
    {
      "name": "example_hashes",
      "title": "example_hashes",
      "object": "example_hashes",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "header",
        "seq",
        "seq_len"
      ],
      "rows": 5,
      "table": true,
      "tojson": true
    },
    {
      "name": "Index_PCR",
      "title": "Index_PCR",
      "object": "Index_PCR",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "metadata",
      "title": "metadata",
      "object": "metadata",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "sample_name",
        "Treatment",
        "Day"
      ],
      "rows": 3,
      "table": true,
      "tojson": true
    },
    {
      "name": "molarity.data",
      "title": "molarity.data",
      "object": "molarity.data",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Sample",
        "Molarity",
        "Amp_len",
        "mass"
      ],
      "rows": 3,
      "table": true,
      "tojson": true
    },
    {
      "name": "OTU_taxonomy",
      "title": "OTU_taxonomy",
      "object": "OTU_taxonomy",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Hash",
        "Kingdom",
        "Phylum",
        "Class",
        "Order",
        "Family",
        "Genus"
      ],
      "rows": 3,
      "table": true,
      "tojson": true
    },
    {
      "name": "ps",
      "title": "ps",
      "object": "ps",
      "class": [
        "phyloseq"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "template_PCR",
      "title": "template_PCR",
      "object": "template_PCR",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "test_seqs",
      "title": "test_seqs",
      "object": "test_seqs",
      "class": [
        "DNAbin"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "training.ASV.table",
      "title": "training.ASV.table",
      "object": "training.ASV.table",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Sample_name",
        "Locus",
        "Hash",
        "nReads"
      ],
      "rows": 1909,
      "table": true,
      "tojson": true
    },
    {
      "name": "training.metadata",
      "title": "training.metadata",
      "object": "training.metadata",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Sample_name",
        "eDNA.sample",
        "rep",
        "Transect",
        "position",
        "depth",
        "lat",
        "lon"
      ],
      "rows": 95,
      "table": true,
      "tojson": true
    },
    {
      "name": "tree",
      "title": "tree",
      "object": "tree",
      "class": [
        "phylo"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "UDI_Indices",
      "title": "UDI_Indices",
      "object": "UDI_Indices",
      "class": [
        "spec_tbl_df",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "Index",
        "Bases_in_Adapter_i7",
        "Bases_for_Sample_Sheet_i7",
        "Bases_for_Sample_Sheet_i5",
        "Bases_for_Sample_Sheet_i5_B",
        "Set"
      ],
      "rows": 384,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "AMPURE",
      "title": "AMPURE",
      "topics": [
        "AMPURE"
      ]
    },
    {
      "page": "ASV_table",
      "title": "ASV_table",
      "topics": [
        "ASV_table"
      ]
    },
    {
      "page": "count_stop_codons",
      "title": "Count stop codons or return translated sequence",
      "topics": [
        "count_stop_codons"
      ]
    },
    {
      "page": "eDNAindex",
      "title": "Create scaled relative proportions of the number of reads of taxa in different samples",
      "topics": [
        "eDNAindex"
      ]
    },
    {
      "page": "example_hashes",
      "title": "example_hashes",
      "topics": [
        "example_hashes"
      ]
    },
    {
      "page": "fasta_reader",
      "title": "Read FASTA or FASTQ files into a tibble",
      "topics": [
        "fasta_reader",
        "fastq_reader"
      ]
    },
    {
      "page": "fasta_writer",
      "title": "Read FASTA or FASTQ files into a tibble",
      "topics": [
        "fasta_writer",
        "fastq_writer"
      ]
    },
    {
      "page": "Index_PCR",
      "title": "Index_PCR",
      "topics": [
        "Index_PCR"
      ]
    },
    {
      "page": "metadata",
      "title": "metadata",
      "topics": [
        "metadata"
      ]
    },
    {
      "page": "molarity.data",
      "title": "molarity.data",
      "topics": [
        "molarity.data"
      ]
    },
    {
      "page": "mutation",
      "title": "Generate mutated DNA sequences",
      "topics": [
        "mutation"
      ]
    },
    {
      "page": "ng2nM",
      "title": "functions to translate mass into molarity and vice versa, given we are talking about double stranded DNA it requires two inputs, the mass (or molarity) and the length of the DNA fragment It works with the two most common concentrations used in Molecular Ecology labs ng/mul for mass nM for molarity",
      "topics": [
        "ng2nM",
        "nM2ng"
      ]
    },
    {
      "page": "OTU_taxonomy",
      "title": "OTU_taxonomy",
      "topics": [
        "OTU_taxonomy"
      ]
    },
    {
      "page": "plot_seq_len_hist",
      "title": "Plot sequence length distribution",
      "topics": [
        "plot_seq_len_hist"
      ]
    },
    {
      "page": "ps",
      "title": "ps",
      "topics": [
        "ps"
      ]
    },
    {
      "page": "read_PCR",
      "title": "Read Indexing PCR Spreadsheet",
      "topics": [
        "read_indexing_PCR",
        "read_step1_PCR"
      ]
    },
    {
      "page": "read_info_file",
      "title": "Read cutadapt info files",
      "topics": [
        "read_info_file"
      ]
    },
    {
      "page": "tally_wide",
      "title": "Create contingency tables with two variables",
      "topics": [
        "tally_wide"
      ]
    },
    {
      "page": "template_PCR",
      "title": "template_PCR",
      "topics": [
        "template_PCR"
      ]
    },
    {
      "page": "test_seqs",
      "title": "test_seqs",
      "topics": [
        "test_seqs"
      ]
    },
    {
      "page": "tibble_to_vegan",
      "title": "Convert a long tibble to a community matrix",
      "topics": [
        "tibble_to_comm",
        "tibble_to_dist",
        "tibble_to_env"
      ]
    },
    {
      "page": "phyloseq_tidy",
      "title": "Convert a tidy ASV table to a phyloseq object",
      "topics": [
        "phyloseq2tidy",
        "tidy2phyloseq"
      ]
    },
    {
      "page": "training.ASV.table",
      "title": "training.ASV.table",
      "topics": [
        "training.ASV.table"
      ]
    },
    {
      "page": "training.metadata",
      "title": "training.metadata",
      "topics": [
        "training.metadata"
      ]
    },
    {
      "page": "tree",
      "title": "tree",
      "topics": [
        "tree"
      ]
    },
    {
      "page": "UDI_Indices",
      "title": "UDI_Indices",
      "topics": [
        "UDI_Indices"
      ]
    },
    {
      "page": "write_indexing_PCR",
      "title": "Write Indexing PCR Spreadsheet",
      "topics": [
        "write_indexing_PCR"
      ]
    }
  ],
  "_readme": "https://github.com/cran/eDNAfuns/raw/HEAD/README.md",
  "_rundeps": [
    "ade4",
    "ape",
    "askpass",
    "Biobase",
    "BiocGenerics",
    "biomformat",
    "Biostrings",
    "bit",
    "bit64",
    "cellranger",
    "cli",
    "clipr",
    "cluster",
    "codetools",
    "cpp11",
    "crayon",
    "curl",
    "data.table",
    "digest",
    "dplyr",
    "farver",
    "foreach",
    "fs",
    "gargle",
    "generics",
    "ggplot2",
    "glue",
    "googledrive",
    "googlesheets4",
    "gtable",
    "hms",
    "httr",
    "ids",
    "igraph",
    "IRanges",
    "isoband",
    "iterators",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "MASS",
    "Matrix",
    "mgcv",
    "mime",
    "multtest",
    "nlme",
    "openssl",
    "permute",
    "phyloseq",
    "pillar",
    "pixmap",
    "pkgconfig",
    "plyr",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "readr",
    "rematch",
    "rematch2",
    "reshape2",
    "rlang",
    "S4Vectors",
    "S7",
    "scales",
    "Seqinfo",
    "sp",
    "stringi",
    "stringr",
    "survival",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "utf8",
    "uuid",
    "vctrs",
    "vegan",
    "viridisLite",
    "vroom",
    "withr",
    "XVector"
  ],
  "_score": 2.0969100130080562,
  "_indexed": true,
  "_nocasepkg": "ednafuns",
  "_universes": [
    "ramongallego"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-22T09:19:10.000Z",
      "distro": "resolute",
      "commit": "d56354ab3cb233850f64f9ff5cb3b81bbede0f73",
      "fileid": "https://r2.ropensci.org/20a278ed3935f4f062eb7daae9650b791203bdbdb9b6131c3652bbc56d153b91",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ramongallego/actions/runs/39753092137"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-10-22T09:19:04.000Z",
      "distro": "resolute",
      "commit": "d56354ab3cb233850f64f9ff5cb3b81bbede0f73",
      "fileid": "https://r2.ropensci.org/9e371f37571ce7ba6a7a5ee604ce48647a8f6ffb2b603d39f92dba01df4eef41",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ramongallego/actions/runs/39753092137"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-22T09:18:44.000Z",
      "commit": "d56354ab3cb233850f64f9ff5cb3b81bbede0f73",
      "fileid": "https://r2.ropensci.org/e721a729f75fd9e9e3133ab01dd35826bd4eca62594d29f817cb0b260c96d45c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ramongallego/actions/runs/39753092137"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-10-22T09:19:06.000Z",
      "commit": "d56354ab3cb233850f64f9ff5cb3b81bbede0f73",
      "fileid": "https://r2.ropensci.org/8bd7ee66324a39b3f230601907ea75c99b30aa06949118a771356d46cb816594",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ramongallego/actions/runs/39753092137"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-10-22T09:18:58.000Z",
      "commit": "d56354ab3cb233850f64f9ff5cb3b81bbede0f73",
      "fileid": "https://r2.ropensci.org/9344dc7ea0c5573b63d629bb6d710bacc977762299cde4a00d2bd15059ea76fe",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ramongallego/actions/runs/39753092137"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-22T09:17:57.000Z",
      "commit": "d56354ab3cb233850f64f9ff5cb3b81bbede0f73",
      "fileid": "https://r2.ropensci.org/89915cdb86e5aa092b8db031b9e736652f658acc14fdd787734139106bacdeaf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ramongallego/actions/runs/39753092137"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-22T09:18:04.000Z",
      "commit": "d56354ab3cb233850f64f9ff5cb3b81bbede0f73",
      "fileid": "https://r2.ropensci.org/0fed8e53e1e52dd484c91e97ed9e7fd5380b3677abbadf0ced32213dff01b9ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ramongallego/actions/runs/39753092137"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-10-22T09:17:51.000Z",
      "commit": "d56354ab3cb233850f64f9ff5cb3b81bbede0f73",
      "fileid": "https://r2.ropensci.org/f0279dd73a7c559a90a3e78be10d24bd47df1a0b50f9006017eee656baa4670d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ramongallego/actions/runs/39753092137"
    }
  ]
}