waldronlab / curatedMetagenomicDataCuration

Sample Metadata Curation for curatedMetagenomicData
https://waldronlab.io/curatedMetagenomicDataCuration/
28 stars 23 forks source link

Create a function that returns merged metadata #36

Closed lwaldron closed 3 years ago

lwaldron commented 3 years ago
  1. When the package is installed, curation .tsv files will be listable using (this is approximate):

    filepaths <- list.files(system.file("inst/curation", package = "curatedMetagenomicDataCuration"), recursive = TRUE, pattern = "tsv$", full.names = TRUE)

    Use this to create a vector of the paths to all curation tsv files.

  2. read all of these using lapply and read.table or a function from the readr package, to create a list of data.frames. Test the read command using a single tsv file.

    dflist <- lapply(filepaths, function(x) read.table(x))`
  3. Use curatedMetagenomicData::joinListofDFs to join the list of data.frames into a single big data.frame to return.

  4. Add function to the R directory.

  5. Add roxygen2 markup and use RStudio "Document package" to add a man page automatically.

cmirzayi commented 3 years ago

Added with https://github.com/waldronlab/curatedMetagenomicDataCuration/commit/751b0aaae0aec664e6529df8503ba0691b5d6092