Skip to content

Commit

Permalink
pass R check
Browse files Browse the repository at this point in the history
  • Loading branch information
lpantano committed Oct 25, 2024
1 parent d96ea74 commit ec29522
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 73 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ Imports:
yaml,
whisker,
rlang,
stringr
stringr,
utils
Suggests:
hues,
ggprism,
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ importFrom(grDevices,colorRampPalette)
importFrom(magrittr,"%>%")
importFrom(readr,read_csv)
importFrom(stringr,str_replace_all)
importFrom(utils,download.file)
importFrom(utils,unzip)
2 changes: 2 additions & 0 deletions R/bcbioR-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#' @importFrom magrittr %>%
#' @importFrom readr read_csv
#' @importFrom stringr str_replace_all
#' @importFrom utils download.file
#' @importFrom utils unzip
## usethis namespace: end
#' @import usethis
#' @import fs
Expand Down
8 changes: 5 additions & 3 deletions R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,17 @@ copy_templates <- function(path, pipeline, org=NULL){
parts = c("templates/spatial")
}
analysis_template <- fs::path_package(base, parts)
org_template <- fs::path_package(base, parts, "org", org)

ui_info("Getting templates from {ui_value(analysis_template)}")
# ls_files <- grep("org", list.files(analysis_template, full.names = TRUE),
# value = TRUE, invert = TRUE)
# ui_info("{ui_value(length(ls_files))} amount of files to copy")
copy_files_in_folder(analysis_template, path)
ui_info("Getting templates from {ui_value(org_template)}")
copy_files_in_folder(org_template, path, is_org=TRUE)
if (!is.null(org)){
org_template <- fs::path_package(base, parts, "org", org)
ui_info("Getting templates from {ui_value(org_template)}")
copy_files_in_folder(org_template, path, is_org=TRUE)
}

# check org folder is in there
# search for param + _README.md
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ bcbio_templates(type="rnaseq", outpath="/path/to/analysis/folder/reports")

### Discover more…

Go to the vignette to know more `vignette("bcbioR_quick_start",package="bcbioR")`
Go to the vignette to know more `vignette("bcbioR_quick_start", package="bcbioR")`

## How to Contribute

Expand Down
File renamed without changes.
61 changes: 0 additions & 61 deletions inst/templates/singlecell/Integration/01-integration.R

This file was deleted.

4 changes: 3 additions & 1 deletion man/bcbio_templates.Rd

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

2 changes: 1 addition & 1 deletion man/cb_friendly_pal.Rd

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

2 changes: 1 addition & 1 deletion man/cb_friendly_palettes.Rd

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

2 changes: 1 addition & 1 deletion man/scale_color_cb_friendly.Rd

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

2 changes: 1 addition & 1 deletion man/scale_fill_cb_friendly.Rd

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

3 changes: 1 addition & 2 deletions vignettes/bcbioR_quick_start.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ We support multiple analyses type:

- RNAseq
- scRNAseq
- TEAseq
- COSMX
- ChipPseq

To get the example code for any of them you can use a similar command:

Expand Down

0 comments on commit ec29522

Please sign in to comment.