Skip to content

Commit fdef24e

Browse files
committed
Update package version to 1.19.1, add new dependency on 'ttservice', and enhance documentation for 'join_features' function to clarify return type. Mark 'tidy' method as deprecated in relevant files.
2 parents 1255971 + 020c3b6 commit fdef24e

File tree

7 files changed

+23
-35
lines changed

7 files changed

+23
-35
lines changed

DESCRIPTION

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: tidySingleCellExperiment
33
Title: Brings SingleCellExperiment to the Tidyverse
4-
Version: 1.15.6
4+
Version: 1.19.1
55
Authors@R: c(person("Stefano", "Mangiola",
66
comment=c(ORCID="0000-0001-7474-836X"),
77
email="mangiolastefano@gmail.com",
@@ -18,11 +18,11 @@ Description: 'tidySingleCellExperiment' is an adapter that abstracts
1818
License: GPL-3
1919
Depends:
2020
R (>= 4.4.0),
21-
SingleCellExperiment
21+
SingleCellExperiment,
22+
ttservice (>= 0.4.0)
2223
Imports:
2324
dplyr,
2425
tidyr,
25-
ttservice (>= 0.4.0),
2626
SummarizedExperiment,
2727
tibble,
2828
ggplot2,
@@ -59,7 +59,8 @@ Suggests:
5959
uwot,
6060
celldex,
6161
dittoSeq,
62-
plotly
62+
plotly,
63+
rbibutils
6364
VignetteBuilder:
6465
knitr
6566
RdMacros:

R/methods.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ setMethod("join_features", "SingleCellExperiment", function(.data,
9595

9696
#' @name tidy
9797
#' @rdname tidy
98-
#' @title tidy for `SingleCellExperiment`
98+
#' @title (DEPRECATED) tidy for `SingleCellExperiment`
9999
#'
100100
#' @param object A `SingleCellExperiment` object.
101-
#' @return A `tidySingleCellExperiment` object.
101+
#' @return A `tidySingleCellExperiment` object. (DEPRECATED - not needed anymore)
102102
#'
103103
#' @examples
104104
#' data(pbmc_small)

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ tidyverse Packages | Description
4646
Utilities | Description
4747
------------ | -------------
4848
`as_tibble` | Convert cell-wise information to a `tbl_df`
49-
`join_features` | Add feature-wise information, returns a `tbl_df`
49+
`join_features` | Add feature-wise information, returns a `tidySingleCellExperiment` object
5050
`aggregate_cells` | Aggregate cell gene-transcription abundance as pseudobulk tissue
5151

5252

README.md

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ status](https://github.com/stemangiola/tidySingleCellExperiment/workflows/R-CMD-
1010

1111
**Brings SingleCellExperiment to the tidyverse!**
1212

13-
Website:
13+
Website:
1414
[tidySingleCellExperiment](https://stemangiola.github.io/tidySingleCellExperiment/articles/introduction.html)
1515

1616
Please also have a look at
@@ -38,9 +38,9 @@ tidyverse worlds.
3838

3939
## Functions/utilities available
4040

41-
| SingleCellExperiment-compatible Functions | Description |
42-
|-------------------------------------------|------------------------------------------------------------------------------------|
43-
| `all` | After all `tidySingleCellExperiment` is a SingleCellExperiment object, just better |
41+
| SingleCellExperiment-compatible Functions | Description |
42+
|----|----|
43+
| `all` | After all `tidySingleCellExperiment` is a SingleCellExperiment object, just better |
4444

4545
| tidyverse Packages | Description |
4646
|--------------------|----------------------------------------------------|
@@ -49,10 +49,10 @@ tidyverse worlds.
4949
| `ggplot2` | `ggplot` (`ggplot`) |
5050
| `plotly` | `plot_ly` (`plot_ly`) |
5151

52-
| Utilities | Description |
53-
|-------------------|------------------------------------------------------------------|
54-
| `as_tibble` | Convert cell-wise information to a `tbl_df` |
55-
| `join_features` | Add feature-wise information, returns a `tbl_df` |
52+
| Utilities | Description |
53+
|----|----|
54+
| `as_tibble` | Convert cell-wise information to a `tbl_df` |
55+
| `join_features` | Add feature-wise information, returns a `tidySingleCellExperiment` object |
5656
| `aggregate_cells` | Aggregate cell gene-transcription abundance as pseudobulk tissue |
5757

5858
## Installation
@@ -256,7 +256,7 @@ pbmc_small_polished |>
256256
custom_theme
257257
```
258258

259-
## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
259+
## `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
260260

261261
![](inst/extdata/readme_figures/plot1-1.png)<!-- -->
262262

@@ -374,12 +374,7 @@ colLabels(pbmc_small_cluster) <-
374374
igraph::cluster_walktrap() %$%
375375
membership |>
376376
as.factor()
377-
```
378-
379-
## Warning in (function (to_check, X, clust_centers, clust_info, dtype, nn, :
380-
## detected tied distances to neighbors, see ?'BiocNeighbors-ties'
381377

382-
``` r
383378
# Reorder columns
384379
pbmc_small_cluster |> select(label, everything())
385380
```
@@ -647,16 +642,7 @@ pbmc_small_nested <-
647642
filter(first.labels != "Erythrocytes") |>
648643
mutate(cell_class=dplyr::if_else(`first.labels` %in% c("Macrophages", "Monocytes"), "myeloid", "lymphoid")) |>
649644
nest(data=-cell_class)
650-
```
651645

652-
## Warning: There were 2 warnings in `mutate()`.
653-
## The first warning was:
654-
## ℹ In argument: `data = map(...)`.
655-
## Caused by warning in `is_sample_feature_deprecated_used()`:
656-
## ! tidySingleCellExperiment says: from version 1.3.1, the special columns including cell id (colnames(se)) has changed to ".cell". This dataset is returned with the old-style vocabulary (cell), however, we suggest to update your workflow to reflect the new vocabulary (.cell).
657-
## ℹ Run `dplyr::last_dplyr_warnings()` to see the 1 remaining warning.
658-
659-
``` r
660646
pbmc_small_nested
661647
```
662648

@@ -807,6 +793,7 @@ pbmc_small |>
807793
## metadata(0):
808794
## assays(1): counts
809795
## rownames(230): ACAP1 ACRBP ... ZNF330 ZNF76
810-
## rowData names(0):
796+
## rowData names(5): vst.mean vst.variance vst.variance.expected
797+
## vst.variance.standardized vst.variable
811798
## colnames(2): g1 g2
812799
## colData names(4): .aggregated_cells groups orig.ident file
-3.33 KB
Loading

man/tidy.Rd

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

vignettes/introduction.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ __*tidyverse*__ |
3434
`plotly` | Plotting with `plot_ly()`
3535
**Utilities** |
3636
`as_tibble()` | Convert cell-wise information to a `tbl_df`
37-
`join_features()` | Add feature-wise information; <br> returns a `tbl_df`
37+
`join_features()` | Add feature-wise information; <br> returns a `tidySingleCellExperiment` object
3838
`aggregate_cells()` | Aggregate feature abundances as pseudobulks; <br> returns a `SummarizedExperiment`
3939
: (\#tab:table) Available `tidySingleCellExperiment` functions and utilities.
4040

0 commit comments

Comments
 (0)