diff --git a/DESCRIPTION b/DESCRIPTION index fa47dc2..66ddb73 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -15,7 +15,7 @@ Authors@R: person( comment = c(ORCID = "0000-0003-2641-0916")) License: Artistic-2.0 Encoding: UTF-8 -Version: 0.99.0 +Version: 0.99.2 Depends: R (>= 4.3.0) Imports: AnnotationHub, GenomicRanges, utils Suggests: knitr, rmarkdown, testthat (>= 3.0.0), BiocStyle diff --git a/inst/scripts/make-metadata.R b/inst/scripts/make-metadata.R index e55200a..540aa4f 100644 --- a/inst/scripts/make-metadata.R +++ b/inst/scripts/make-metadata.R @@ -126,4 +126,10 @@ write.csv( quote = TRUE # This ensures strings containing spaces/commas are properly enclosed ) -message("metadata.csv has been successfully generated in inst/extdata/") \ No newline at end of file +# Validate using AnnotationHubData +if (!requireNamespace("AnnotationHubData", quietly = TRUE)) { + message("Please install AnnotationHubData to validate your metadata.csv") +} else { + AnnotationHubData::makeAnnotationHubMetadata("inst/extdata") + message("Metadata validation completed successfully!") +} \ No newline at end of file