Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Commit 98a9426

Browse files
committed
More R CMD check fixes
1 parent 9a58f4c commit 98a9426

File tree

11 files changed

+25
-681
lines changed

11 files changed

+25
-681
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ HCAquery.Rproj
99
split_files.makeflow
1010
._*
1111
.DS_Store
12+
inst/doc

DESCRIPTION

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Imports:
2424
assertthat,
2525
SeuratObject,
2626
Seurat,
27-
methods
27+
methods,
28+
rlang
2829
Suggests:
2930
here,
3031
stringr,
@@ -38,7 +39,9 @@ Suggests:
3839
tools,
3940
rmarkdown,
4041
zellkonverter,
41-
dbplyr
42+
dbplyr,
43+
knitr,
44+
testthat
4245
Biarch: true
4346
biocViews: AssayDomain, Infrastructure, RNASeq, DifferentialExpression, GeneExpression, Normalization, Clustering, QualityControl, Sequencing, Transcription, Transcriptomics
4447
Encoding: UTF-8
@@ -47,3 +50,4 @@ RoxygenNote: 7.2.1
4750
LazyDataCompression: xz
4851
URL: https://github.com/stemangiola/HCAquery
4952
BugReports: https://github.com/stemangiola/HCAquery/issues
53+
VignetteBuilder: knitr

LICENCE

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

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ importFrom(purrr,map)
2727
importFrom(purrr,map_int)
2828
importFrom(purrr,reduce)
2929
importFrom(purrr,when)
30+
importFrom(rlang,.data)
3031
importFrom(tidySingleCellExperiment,inner_join)

R/query.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#' This can be obtained from the [get_metadata()] function.
55
#' @param repository A character vector of length one, which is a file path to where the single cell data is stored
66
#' @param genes An optional character vector of genes to return the counts for. By default counts for all genes will be returned.
7+
#' @param assay TODO
78
#'
89
#' @importFrom dplyr pull filter
910
#' @importFrom tidySingleCellExperiment inner_join
@@ -16,6 +17,7 @@
1617
#' @importFrom SummarizedExperiment colData assayNames<-
1718
#' @importFrom purrr when
1819
#' @importFrom magrittr equals
20+
#' @importFrom rlang .data
1921
#'
2022
#' @export
2123
#'
@@ -35,7 +37,7 @@ get_SingleCellExperiment = function(
3537

3638
files_to_read =
3739
raw_data |>
38-
pull(file_id_db) |>
40+
pull(.data$file_id_db) |>
3941
unique() |>
4042
as.character()
4143

@@ -61,7 +63,7 @@ get_SingleCellExperiment = function(
6163
sce |>
6264
inner_join(
6365
# Needed because cell IDs are not unique outside the file_id or file_id_db
64-
filter(raw_data, file_id_db == .x),
66+
filter(raw_data, .data$file_id_db == .x),
6567
by=".cell"
6668
)
6769
})

man/get_SingleCellExperiment.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/get_seurat.Rd

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
library(testthat)
2+
library(HCAquery)
3+
4+
test_check("HCAquery")

tests/testthat/test-query.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
library(HCAquery)
2-
31
test_that("The genes argument to get_SingleCellExperiment subsets genes", {
42
meta = get_metadata() |> head(2)
53

vignettes/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.html
2+
*.R

0 commit comments

Comments
 (0)