Skip to content

Commit

Permalink
export dr_output_format_valid
Browse files Browse the repository at this point in the history
  • Loading branch information
pdiakumis committed Nov 21, 2023
1 parent 769a113 commit a77505f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export(bcftools_parse_vcf_regions)
export(date_log)
export(dr_func_eval)
export(dr_gds_download)
export(dr_output_format_valid)
export(empty_tbl)
export(file_regex_getter)
export(gds_file_download)
Expand Down
9 changes: 5 additions & 4 deletions R/tidy.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@
#' \dontrun{
#' in_dir <- paste0(
#' "gds://production/analysis_data/SBJ01639/tso_ctdna_tumor_only/",
#' "202204045ad5743c/L2200214/Results/PRJ220425_L2200214/"
#' "202204045ad5743c/L2200214/Results/PRJ220425_L2200214"
#' )
#' out_dir <- here::here("nogit/tso/2023-08-01")
#' in_dir <- file.path(out_dir, "dracarys_gds_sync")
#' o1 <- sub("^gds://", "", in_dir)
#' out_dir <- file.path(fs::path_home(), "icav1/g", o1)
#' # in_dir <- file.path(out_dir, "dracarys_gds_sync")
#' prefix <- "SBJ01639"
#' out_format <- "rds"
#' umccr_tidy(in_dir = in_dir, out_dir = out_dir, prefix = prefix, out_format = out_format, dryrun = F)
#' umccr_tidy(in_dir = in_dir, out_dir = out_dir, prefix = prefix, out_format = out_format, dryrun = T)
#'
#' in_dir <- here::here(glue("nogit/tso/2022-12-13/SBJ02858/dracarys_gds_sync"))
#' out_dir <- file.path(in_dir, "../out")
Expand Down
4 changes: 4 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ session_info_tbls <- function(pkgs = NULL) {
)
}

#' Output Format is Valid
#'
#' Checks that the specified output format is valid.
#' @export
dr_output_format_valid <- function(x) {
format_choices <- c("tsv", "parquet", "delta", "rds")
assertthat::assert_that(
Expand Down
11 changes: 11 additions & 0 deletions man/dr_output_format_valid.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions man/umccr_tidy.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a77505f

Please sign in to comment.