Skip to content

Commit 0464ebc

Browse files
authored
Merge pull request #3 from HelenaLC/linting
`BiocCheck()` and linting revision, bump to R/Bioc devel
2 parents d05b3fd + c09f007 commit 0464ebc

Some content is hidden

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

76 files changed

+1388
-1384
lines changed

.github/workflows/check-bioc.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ jobs:
5252
fail-fast: false
5353
matrix:
5454
config:
55-
- { os: ubuntu-latest, r: '4.3', bioc: '3.17', cont: "bioconductor/bioconductor_docker:RELEASE_3_17", rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest" }
56-
- { os: macOS-latest, r: '4.3', bioc: '3.17'}
57-
- { os: windows-latest, r: '4.3', bioc: '3.17'}
55+
- { os: ubuntu-latest, r: '4.3', bioc: '3.18', cont: "bioconductor/bioconductor_docker:devel", rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest" }
56+
- { os: macOS-latest, r: '4.3', bioc: '3.18'}
57+
- { os: windows-latest, r: '4.3', bioc: '3.18'}
5858
## Check https://github.com/r-lib/actions/tree/master/examples
5959
## for examples using the http-user-agent
6060
env:
@@ -105,16 +105,16 @@ jobs:
105105
uses: actions/cache@v3
106106
with:
107107
path: ${{ env.R_LIBS_USER }}
108-
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-RELEASE_3_17-r-4.3-${{ hashFiles('.github/depends.Rds') }}
109-
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-RELEASE_3_17-r-4.3-
108+
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.3-${{ hashFiles('.github/depends.Rds') }}
109+
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.3-
110110

111111
- name: Cache R packages on Linux
112112
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os == 'Linux' "
113113
uses: actions/cache@v3
114114
with:
115115
path: /home/runner/work/_temp/Library
116-
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-RELEASE_3_17-r-4.3-${{ hashFiles('.github/depends.Rds') }}
117-
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-RELEASE_3_17-r-4.3-
116+
key: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.3-${{ hashFiles('.github/depends.Rds') }}
117+
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-biocversion-devel-r-4.3-
118118

119119
# - name: Install Linux system dependencies
120120
# if: runner.os == 'Linux'
@@ -202,7 +202,7 @@ jobs:
202202
- name: Install pkgdown
203203
if: github.ref == 'refs/heads/devel' && env.run_pkgdown == 'true' && runner.os == 'Linux'
204204
run: |
205-
remotes::install_cran("pkgdown")
205+
remotes::install_github("r-lib/pkgdown")
206206
shell: Rscript {0}
207207

208208
- name: Session info
@@ -285,7 +285,7 @@ jobs:
285285
if: failure()
286286
uses: actions/upload-artifact@master
287287
with:
288-
name: ${{ runner.os }}-biocversion-RELEASE_3_17-r-4.3-results
288+
name: ${{ runner.os }}-biocversion-devel-r-4.3-results
289289
path: check
290290

291291

DESCRIPTION

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ Package: tidySingleCellExperiment
33
Title: Brings SingleCellExperiment to the Tidyverse
44
Version: 1.11.4
55
Authors@R: c(person("Stefano", "Mangiola",
6+
comment=c(ORCID="0000-0001-7474-836X"),
67
7-
role=c("aut", "cre")))
8+
role=c("aut", "cre")))
89
Description: 'tidySingleCellExperiment' is an adapter that abstracts
910
the 'SingleCellExperiment' container in the form of a 'tibble'.
1011
This allows *tidy* data manipulation, nesting, and plotting.
@@ -61,10 +62,10 @@ VignetteBuilder:
6162
RdMacros:
6263
lifecycle
6364
Biarch: true
64-
biocViews: AssayDomain, Infrastructure, RNASeq, DifferentialExpression,
65+
biocViews:
66+
AssayDomain, Infrastructure, RNASeq, DifferentialExpression, SingleCell,
6567
GeneExpression, Normalization, Clustering, QualityControl, Sequencing
6668
Encoding: UTF-8
67-
LazyData: true
6869
RoxygenNote: 7.2.3
6970
URL: https://github.com/stemangiola/tidySingleCellExperiment
7071
BugReports: https://github.com/stemangiola/tidySingleCellExperiment/issues

NAMESPACE

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,15 @@ importFrom(S4Vectors,"metadata<-")
5050
importFrom(S4Vectors,DataFrame)
5151
importFrom(S4Vectors,metadata)
5252
importFrom(SingleCellExperiment,cbind)
53+
importFrom(SingleCellExperiment,reducedDims)
54+
importFrom(SummarizedExperiment,"assays<-")
5355
importFrom(SummarizedExperiment,"colData<-")
56+
importFrom(SummarizedExperiment,assay)
57+
importFrom(SummarizedExperiment,assayNames)
5458
importFrom(SummarizedExperiment,assays)
5559
importFrom(SummarizedExperiment,colData)
5660
importFrom(dplyr,add_count)
61+
importFrom(dplyr,any_of)
5762
importFrom(dplyr,arrange)
5863
importFrom(dplyr,contains)
5964
importFrom(dplyr,count)
@@ -74,12 +79,10 @@ importFrom(dplyr,rowwise)
7479
importFrom(dplyr,sample_frac)
7580
importFrom(dplyr,sample_n)
7681
importFrom(dplyr,select)
77-
importFrom(dplyr,select_if)
7882
importFrom(dplyr,slice)
7983
importFrom(dplyr,summarise)
8084
importFrom(dplyr,summarize)
8185
importFrom(dplyr,vars)
82-
importFrom(ellipsis,check_dots_unnamed)
8386
importFrom(ellipsis,check_dots_used)
8487
importFrom(fansi,strwrap_ctl)
8588
importFrom(ggplot2,aes)
@@ -90,6 +93,7 @@ importFrom(magrittr,"%>%")
9093
importFrom(magrittr,equals)
9194
importFrom(magrittr,set_rownames)
9295
importFrom(methods,getMethod)
96+
importFrom(methods,is)
9397
importFrom(pillar,align)
9498
importFrom(pillar,get_extent)
9599
importFrom(pillar,style_subtle)
@@ -127,6 +131,7 @@ importFrom(tidyr,extract)
127131
importFrom(tidyr,nest)
128132
importFrom(tidyr,pivot_longer)
129133
importFrom(tidyr,separate)
134+
importFrom(tidyr,spread)
130135
importFrom(tidyr,unite)
131136
importFrom(tidyr,unnest)
132137
importFrom(tidyselect,eval_select)

R/attach.R

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
core <- c("dplyr", "tidyr", "ttservice", "ggplot2")
22

33
core_unloaded <- function() {
4-
search <- paste0("package:", core)
5-
core[!search %in% search()]
4+
search <- paste0("package:", core)
5+
core[!search %in% search()]
66
}
77

88
# Attach the package from the same library it was loaded from before.
99
# [source: https://github.com/tidy-biology/tidyverse/issues/171]
1010
same_library <- function(pkg) {
11-
loc <- if (pkg %in% loadedNamespaces()) dirname(getNamespaceInfo(pkg, "path"))
12-
library(pkg, lib.loc=loc, character.only=TRUE, warn.conflicts=FALSE)
11+
loc <- if (pkg %in% loadedNamespaces())
12+
dirname(getNamespaceInfo(pkg, "path"))
13+
library(pkg, lib.loc=loc, character.only=TRUE, warn.conflicts=FALSE)
1314
}
1415

1516
tidyverse_attach <- function() {
16-
to_load <- core_unloaded()
17-
18-
suppressPackageStartupMessages(
19-
lapply(to_load, same_library))
20-
21-
invisible(to_load)
17+
to_load <- core_unloaded()
18+
19+
suppressPackageStartupMessages(
20+
lapply(to_load, same_library))
21+
22+
invisible(to_load)
2223
}

R/data.R

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,41 @@
11
#' pbmc_small
22
#'
3-
#' PBMC single cell RNA-seq data in SingleCellExperiment format
3+
#' PBMC single cell RNA-seq data in `SingleCellExperiment` format.
44
#'
5-
#' @format A SingleCellExperiment object containing 80 Peripheral Blood
6-
#' Mononuclear Cells (PBMC) from 10x Genomics. Generated by subsampling the PBMC dataset of 2,700 single cells.
5+
#' @format A `SingleCellExperiment` object containing 80 Peripheral Blood
6+
#' Mononuclear Cells (PBMC) from 10x Genomics. Generated by subsampling
7+
#' the PBMC dataset of 2,700 single cells.
78
#' @source \url{https://satijalab.org/seurat/v3.1/pbmc3k_tutorial.html}
89
#' @usage data(pbmc_small)
10+
#' @return `tidySingleCellExperiment`
911
"pbmc_small"
1012

1113
#' Cell types of 80 PBMC single cells
1214
#'
1315
#' A dataset containing the barcodes and cell types of 80 PBMC single cells.
1416
#'
15-
#' @format A tibble containing 80 rows and 2 columns. Cells are a subsample of
16-
#' the Peripheral Blood Mononuclear Cells (PBMC) dataset of 2,700 single
17-
#' cell. Cell types were identified with SingleR.
17+
#' @format A tibble containing 80 rows and 2 columns.
18+
#' Cells are a subsample of the Peripheral Blood Mononuclear Cells (PBMC)
19+
#' dataset of 2,700 single cell. Cell types were identified with SingleR.
1820
#' \describe{
1921
#' \item{cell}{cell identifier, barcode}
2022
#' \item{first.labels}{cell type}
2123
#' }
2224
#' @source \url{https://satijalab.org/seurat/v3.1/pbmc3k_tutorial.html}
2325
#' @usage data(cell_type_df)
26+
#' @return `tibble`
2427
"cell_type_df"
2528

26-
#' Intercellular ligand-receptor interactions for 38 ligands from a single cell RNA-seq cluster.
29+
#' Intercellular ligand-receptor interactions for
30+
#' 38 ligands from a single cell RNA-seq cluster.
2731
#'
28-
#' A dataset containing ligand-receptor interactions withibn a sample. There are 38 ligands from a single cell cluster versus
29-
#' 35 receptors in 6 other clusters.
32+
#' A dataset containing ligand-receptor interactions within a sample.
33+
#' There are 38 ligands from a single cell cluster versus 35 receptors
34+
#' in 6 other clusters.
3035
#'
31-
#' @format A tibble containing 100 rows and 9 columns. Cells are a subsample of
32-
#' the PBMC dataset of 2,700 single cells. Cell interactions were identified with SingleCellSignalR.
36+
#' @format A `tibble` containing 100 rows and 9 columns.
37+
#' Cells are a subsample of the PBMC dataset of 2,700 single cells.
38+
#' Cell interactions were identified with `SingleCellSignalR`.
3339
#' \describe{
3440
#' \item{sample}{sample identifier}
3541
#' \item{ligand}{cluster and ligand identifier}
@@ -43,4 +49,5 @@
4349
#' }
4450
#' @source \url{https://satijalab.org/seurat/v3.1/pbmc3k_tutorial.html}
4551
#' @usage data(pbmc_small_nested_interactions)
52+
#' @return `tibble`
4653
"pbmc_small_nested_interactions"

0 commit comments

Comments
 (0)