Skip to content

Commit

Permalink
Merge pull request #20 from microbiomeDB/the-great-refactor
Browse files Browse the repository at this point in the history
export datasets
  • Loading branch information
d-callan authored Mar 12, 2024
2 parents c810450 + 3af145b commit 5e6d7d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
export("name<-")
export(AbsoluteAbundanceData)
export(AbundanceData)
export(BONUS)
export(Bangladesh)
export(Collection)
export(Collections)
export(DiabImmune)
export(FARMM)
export(HMP_WGS)
export(MbioDataset)
export(NICU_NEC)
export(SampleMetadata)
export(getAbundances)
export(getCollection)
Expand Down
7 changes: 6 additions & 1 deletion R/data.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
## TODO add the rest of the datasets
## TODO add dates they were added to this package, MicrobiomeDB.org release version, etc. for provenance
## stop lazy loading all this data, write a function that does it as needed


#' DiabImmune
Expand Down Expand Up @@ -35,6 +34,7 @@
#' "WGS Normalized number of taxon-specific sequence matches" \cr
#' @source <https://microbiomedb.org/mbio/app/workspace/analyses/DS_a2f8877e68/new/download>
#' @importFrom utils data
#' @export
DiabImmune <- function() {
data("DiabImmune", package = "microbiomeData", envir = environment())
}
Expand All @@ -61,6 +61,7 @@ DiabImmune <- function() {
#' "WGS Kingdom" \cr
#' "WGS Normalized number of taxon-specific sequence matches" \cr
#' @source <https://microbiomedb.org/mbio/app/workspace/analyses/DS_4dfda49064/new/download>
#' @export
FARMM <- function() {
data("FARMM", package = "microbiomeData", envir = environment())
}
Expand All @@ -83,6 +84,7 @@ FARMM <- function() {
#' "16S Phylum" \cr
#' "16S Kingdom" \cr
#' @source <https://microbiomedb.org/mbio/app/workspace/analyses/DS_1102462e80/new/download>
#' @export
Bangladesh <- function() {
data("Bangladesh", package = "microbiomeData", envir = environment())
}
Expand All @@ -108,6 +110,7 @@ Bangladesh <- function() {
#' "WGS Kingdom" \cr
#' "WGS Normalized number of taxon-specific sequence matches" \cr
#' @source <https://microbiomedb.org/mbio/app/workspace/analyses/DS_898df5869d/new/download>
#' @export
HMP_WGS <- function() {
data("HMP_WGS", package = "microbiomeData", envir = environment())
}
Expand All @@ -134,6 +137,7 @@ HMP_WGS <- function() {
#' "WGS Kingdom" \cr
#' "WGS Normalized number of taxon-specific sequence matches" \cr
#' @source <https://microbiomedb.org/mbio/app/workspace/analyses/DS_b3b3ae9838/new/download>
#' @export
BONUS <- function() {
data("BONUS", package = "microbiomeData", envir = environment())
}
Expand All @@ -160,6 +164,7 @@ BONUS <- function() {
#' "WGS Kingdom" \cr
#' "WGS Normalized number of taxon-specific sequence matches" \cr
#' @source <https://microbiomedb.org/mbio/app/workspace/analyses/DS_84fcb69f4e/new/download>
#' @export
NICU_NEC <- function() {
data("NICU_NEC", package = "microbiomeData", envir = environment())
}

0 comments on commit 5e6d7d6

Please sign in to comment.