Skip to content

Commit 3a72be5

Browse files
authored
Merge pull request #42 from bcbio/devel
Upgrade to usethis functions
2 parents 7844453 + 74654ec commit 3a72be5

107 files changed

Lines changed: 6265 additions & 1399 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/R-CMD-check.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
config:
21-
- {os: macos-latest, r: 'release'}
21+
# - {os: macos-latest, r: 'release'}
2222
#- {os: windows-latest, r: 'release'}
23-
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
23+
# - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
2424
- {os: ubuntu-latest, r: 'release'}
2525
#- {os: ubuntu-latest, r: 'oldrel-1'}
2626

@@ -47,4 +47,5 @@ jobs:
4747
- uses: r-lib/actions/check-r-package@v2
4848
with:
4949
upload-snapshots: true
50+
error-on: '"error"'
5051
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,12 @@ docs
1313
/doc/
1414
/Meta/
1515
.DS*
16+
inst/rmarkdown/templates/rnaseq/skeleton/DE/Multiplicative_DGE_Analysis.Rmd
17+
.Rdata
18+
.httr-oauth
19+
.DS_Store
20+
.quarto
21+
inst/templates/chipseq/QC/QC.html
22+
*.html
23+
*.csv
24+
*.qs

DESCRIPTION

100644100755
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: bcbioR
22
Type: Package
33
Title: Templates and functions to guide downstream analysis and data interpretation
4-
Version: 0.1.3
4+
Version: 0.3.0
55
Authors@R: person("Pantano", "Lorena", , "lorena.pantano@gmail.com",
66
role = c("aut", "cre"))
77
Description: Collaborative code repository at the Harvard Chan Bioinformatics Core.
@@ -11,23 +11,28 @@ Encoding: UTF-8
1111
Roxygen: list(markdown = TRUE)
1212
RoxygenNote: 7.3.1
1313
Imports:
14-
DESeq2,
15-
stringr,
16-
ggplot2,
1714
magrittr,
18-
hues,
19-
ggprism,
2015
grDevices,
2116
R.utils,
2217
readr,
18+
withr,
19+
usethis,
2320
fs,
24-
withr
21+
jsonlite,
22+
yaml,
23+
whisker,
24+
rlang,
25+
stringr,
26+
utils
2527
Suggests:
28+
hues,
29+
ggprism,
30+
ggplot2,
2631
knitr,
2732
rmarkdown,
2833
testthat (>= 3.0.0)
2934
VignetteBuilder: knitr
3035
URL: http://bcb.io/bcbioR/
3136
Config/testthat/edition: 3
3237
Depends:
33-
R (>= 2.10)
38+
R (>= 4.2.0)

LICENSE

100644100755
File mode changed.

LICENSE.md

100644100755
File mode changed.

NAMESPACE

100644100755
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
# Generated by roxygen2: do not edit by hand
22

33
export(bcbio_nfcore_check)
4-
export(bcbio_set_project)
54
export(bcbio_templates)
65
export(cb_friendly_cols)
76
export(cb_friendly_pal)
87
export(list_cb_friendly_cols)
98
export(scale_color_cb_friendly)
109
export(scale_fill_cb_friendly)
11-
import(DESeq2)
1210
import(R.utils)
13-
import(ggplot2)
14-
import(ggprism)
15-
import(hues)
11+
import(fs)
12+
import(usethis)
13+
import(whisker)
14+
import(withr)
1615
importFrom(grDevices,colorRampPalette)
1716
importFrom(magrittr,"%>%")
1817
importFrom(readr,read_csv)
1918
importFrom(stringr,str_replace_all)
19+
importFrom(utils,download.file)
20+
importFrom(utils,unzip)

NEWS.md

100644100755
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# bcbioR 0.3.0
2+
3+
* re-structure templates
4+
* Add text with best practices
5+
* Reproducibility:
6+
* test data for RNAseq, singlecell, CHIPseq
7+
* Base project:
8+
* Guidelines to create repo easily
9+
* Example Rmd with headers and aesthetics
10+
* RNASEQ
11+
* Use provenance for FA in DE report
12+
* Support multiple comparisons
13+
* New templates:
14+
* methylation - draft
15+
* singcell cell QC and Inegration - stable
16+
* scQC shiny app - stable
17+
* chipseq QC and Diffbind - beta
18+
* COSMX - draft
19+
120
# bcbioR 0.1.3
221

322
* fix duplicated gene names

R/bcbioR-package.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
#' @importFrom magrittr %>%
77
#' @importFrom readr read_csv
88
#' @importFrom stringr str_replace_all
9+
#' @importFrom utils download.file
10+
#' @importFrom utils unzip
911
## usethis namespace: end
10-
#' @import DESeq2
11-
#' @import ggplot2
12-
#' @import hues
13-
#' @import ggprism
12+
#' @import usethis
13+
#' @import fs
1414
#' @import R.utils
15+
#' @import withr
16+
#' @import whisker
1517
NULL

R/cb_friendly.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ cb_friendly_palettes <- list(
4949
`cool` = cb_friendly_cols("blue", "dark_purple", "purple", "sky_blue"),
5050
`hot` = cb_friendly_cols("yellow", "light_orange", "dark_orange"),
5151
`grey` = cb_friendly_cols("black", "dark_grey", "blue_grey"),
52-
`heatmap` = cb_friendly_cols("blue", "white", "brown")
52+
`heatmap` = cb_friendly_cols("blue", "white", "brown"),
53+
`white_to_blue` = cb_friendly_cols('white', 'blue')
5354
)
5455

5556
#' access cb friendly palette by name, reversing if necessary
5657
#'
57-
#' @param palette name of the palette to be returned
58+
#' @param palette name of the palette to be returned (main, cool, hot, grey, white_to_blue, or heatmap)
5859
#' @param reverse boolean, reverse order of colors in palette
5960
#' @param ... pass to ggplot
6061
#' @export
@@ -66,7 +67,7 @@ cb_friendly_pal <-function(palette = 'main', reverse = F, ...){
6667

6768
#' use cb friendly colors as color aesthetic with ggplot
6869
#'
69-
#' @param palette name of the palette to be returned
70+
#' @param palette name of the palette to be returned (main, cool, hot, grey, white_to_blue, or heatmap)
7071
#' @param discrete boolean, whether to make palette discretely divided into colors or continuous
7172
#' @param reverse boolean, reverse order of colors in palette
7273
#' @param ... pass to ggplot
@@ -83,7 +84,7 @@ scale_color_cb_friendly <- function(palette = "main", discrete = TRUE, reverse =
8384

8485
#' use cb friendly colors as fill aesthetic with ggplot
8586
#'
86-
#' @param palette name of the palette to be returned
87+
#' @param palette name of the palette to be returned (main, cool, hot, grey, white_to_blue, or heatmap)
8788
#' @param discrete boolean, whether to make palette discretely divided into colors or continuous
8889
#' @param reverse boolean, reverse order of colors in palette
8990
#' @param ... pass to ggplot

R/hello.R

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)