Skip to content

Commit 0edba0c

Browse files
Update lifecycle badges (#238)
Part of insightsengineering/coredev-tasks#649 Removed `experimental` badges introduced 4 years ago. Removed `stable` badges. Removed lifecycle package at all. --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 66c5273 commit 0edba0c

File tree

95 files changed

+71
-219
lines changed

Some content is hidden

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

95 files changed

+71
-219
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ repos:
3232
- httr
3333
- bioc::IRanges
3434
- knitr
35-
- lifecycle
3635
- bioc::limma
3736
- magrittr
3837
- matrixStats
@@ -103,7 +102,6 @@ repos:
103102
- httr
104103
- bioc::IRanges
105104
- knitr
106-
- lifecycle
107105
- bioc::limma
108106
- magrittr
109107
- matrixStats

DESCRIPTION

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ Imports:
5555
ggplot2,
5656
ggrepel (>= 0.9),
5757
IRanges,
58-
lifecycle,
5958
limma,
6059
magrittr,
6160
matrixStats (>= 1.5.0),
@@ -83,7 +82,6 @@ Suggests:
8382
VignetteBuilder:
8483
knitr
8584
RdMacros:
86-
lifecycle,
8785
Rdpack
8886
biocViews: RNASeq, DifferentialExpression, Normalization, Preprocessing,
8987
QualityControl

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ importFrom(circlize,add_transparency)
133133
importFrom(dplyr,mutate)
134134
importFrom(forcats,as_factor)
135135
importFrom(ggrepel,geom_label_repel)
136-
importFrom(lifecycle,deprecate_soft)
137136
importFrom(magrittr,"%>%")
138137
importFrom(purrr,accumulate)
139138
importFrom(rlang,.data)

R/GeneSpec-class.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ h_unique_labels <- function(ids, nms = NULL) {
3939

4040
#' R6 Class Representing a Gene (Signature) Specification
4141
#'
42-
#' @description `r lifecycle::badge("experimental")`
42+
#' @description
4343
#'
4444
#' A `GeneSpec` consists of the gene IDs (possibly named with labels),
4545
#' the summary function and the name of the summary function.
@@ -182,7 +182,7 @@ GeneSpec <- R6::R6Class(
182182

183183
#' `GeneSpec` Constructor
184184
#'
185-
#' @description `r lifecycle::badge("experimental")`
185+
#' @description
186186
#'
187187
#' Creates a new [`GeneSpec`] object.
188188
#'

R/HermesData-class.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ NULL
55

66
#' `HermesData` and `RangedHermesData`
77
#'
8-
#' @description `r lifecycle::badge("experimental")`
8+
#' @description
99
#'
1010
#' The [`HermesData`] class is an extension of [`SummarizedExperiment::SummarizedExperiment`]
1111
#' with additional validation criteria.

R/HermesData-methods.R

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#' Row Binding of `AnyHermesData` Objects
44
#'
5-
#' @description `r lifecycle::badge("stable")`
5+
#' @description
66
#'
77
#' This method combines [`AnyHermesData`] objects with the same samples but different
88
#' features of interest (rows in assays).
@@ -36,7 +36,7 @@ NULL
3636

3737
#' Column Binding of `AnyHermesData` Objects
3838
#'
39-
#' @description `r lifecycle::badge("stable")`
39+
#' @description
4040
#'
4141
#' This method combines [`AnyHermesData`] objects with the same ranges but different
4242
#' samples (columns in assays).
@@ -69,7 +69,7 @@ NULL
6969

7070
#' Metadata Accessor and Setter
7171
#'
72-
#' @description `r lifecycle::badge("stable")`
72+
#' @description
7373
#'
7474
#' These methods access or set the metadata in a [`AnyHermesData`] object.
7575
#'
@@ -97,7 +97,7 @@ NULL
9797

9898
#' Annotation Accessor and Setter
9999
#'
100-
#' @description `r lifecycle::badge("stable")`
100+
#' @description
101101
#'
102102
#' These methods access and set the gene annotations stored in a [`AnyHermesData`] object.
103103
#'
@@ -179,7 +179,7 @@ setReplaceMethod(
179179

180180
#' Counts Accessor and Setter
181181
#'
182-
#' @description `r lifecycle::badge("stable")`
182+
#' @description
183183
#'
184184
#' These methods access and set the counts assay in a [`AnyHermesData`] object.
185185
#'
@@ -235,7 +235,7 @@ setReplaceMethod(
235235

236236
#' Prefix Accessor
237237
#'
238-
#' @description `r lifecycle::badge("experimental")`
238+
#' @description
239239
#'
240240
#' Generic function to access the prefix from an object.
241241
#'
@@ -256,7 +256,7 @@ setGeneric("prefix", def = function(object, ...) {
256256

257257
#' Gene IDs Accessor
258258
#'
259-
#' @description `r lifecycle::badge("stable")`
259+
#' @description
260260
#'
261261
#' Access the gene IDs, i.e. row names, of a [`AnyHermesData`] object with a
262262
#' nicely named accessor method.
@@ -287,7 +287,7 @@ setMethod(
287287

288288
#' Sample IDs Accessor
289289
#'
290-
#' @description `r lifecycle::badge("stable")`
290+
#' @description
291291
#'
292292
#' Access the sample IDs, i.e. col names, of a [`AnyHermesData`] object with a
293293
#' nicely named accessor method.
@@ -318,7 +318,7 @@ setMethod(
318318

319319
#' Subsetting `AnyHermesData` Objects
320320
#'
321-
#' @description `r lifecycle::badge("stable")`
321+
#' @description
322322
#'
323323
#' This method subsets [`AnyHermesData`] objects, based on expressions involving the
324324
#' `rowData` columns and the `colData` columns.
@@ -354,7 +354,7 @@ NULL
354354

355355
#' Filter `AnyHermesData` on Subset Passing Default QC Flags
356356
#'
357-
#' @description `r lifecycle::badge("stable")`
357+
#' @description
358358
#'
359359
#' This filters a [`AnyHermesData`] object using the default QC flags and required annotations.
360360
#'
@@ -367,7 +367,7 @@ setGeneric("filter", function(object, ...) standardGeneric("filter"))
367367

368368
#' Predicate for Required Annotations
369369
#'
370-
#' @description `r lifecycle::badge("experimental")`
370+
#' @description
371371
#'
372372
#' This helper function determines for each gene in the object whether all required
373373
#' annotation columns are filled.
@@ -469,7 +469,7 @@ setMethod(
469469

470470
#' Extra Variable Names Accessor Methods
471471
#'
472-
#' @description `r lifecycle::badge("experimental")`
472+
#' @description
473473
#'
474474
#' The methods access the names of the variables in `colData()` and `rowData()` of
475475
#' the object which are not required by design. So these can be additional sample or
@@ -562,7 +562,7 @@ h_map_pos <- function(names, map) {
562562

563563
#' Renaming Contents of `SummarizedExperiment` Objects
564564
#'
565-
#' @description `r lifecycle::badge("experimental")`
565+
#' @description
566566
#'
567567
#' This method renames columns of the `rowData` and `colData`, as well as assays, of
568568
#' [`SummarizedExperiment::SummarizedExperiment`] objects. This increases the flexibility
@@ -631,7 +631,7 @@ setMethod(
631631

632632
#' Summary Method for `AnyHermesData` Objects
633633
#'
634-
#' @description `r lifecycle::badge("experimental")`
634+
#' @description
635635
#'
636636
#' Provides a concise summary of the content of [`AnyHermesData`] objects.
637637
#'
@@ -797,7 +797,7 @@ setMethod(
797797

798798
#' Show Method for `AnyHermesData` Objects
799799
#'
800-
#' @description `r lifecycle::badge("experimental")`
800+
#' @description
801801
#'
802802
#' A show method that displays high-level information of [`AnyHermesData`] objects.
803803
#'
@@ -834,7 +834,7 @@ setMethod(
834834

835835
#' Generic Function for Correlation Calculations
836836
#'
837-
#' @description `r lifecycle::badge("experimental")`
837+
#' @description
838838
#'
839839
#' New generic function to calculate correlations for one or two objects.
840840
#'
@@ -861,7 +861,7 @@ setGeneric("autoplot")
861861

862862
#' `lapply` method for `MultiAssayExperiment`
863863
#'
864-
#' @description `r lifecycle::badge("experimental")`
864+
#' @description
865865
#'
866866
#' Apply a function on all experiments in an MAE.
867867
#'
@@ -912,7 +912,7 @@ setMethod(
912912

913913
#' Checking for Empty `SummarizedExperiment`
914914
#'
915-
#' @description `r lifecycle::badge("experimental")`
915+
#' @description
916916
#'
917917
#' This method checks whether a [`SummarizedExperiment::SummarizedExperiment`] object is empty.
918918
#'

R/assertthat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Additional Assertions for `assert_that`
22
#'
3-
#' @description `r lifecycle::badge("experimental")`
3+
#' @description
44
#'
55
#' We provide additional assertion functions which can be used together with
66
#' [assertthat::assert_that()].

R/calc_cor.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ NULL
55

66
#' Correlation between Sample Counts of `AnyHermesData`
77
#'
8-
#' @description `r lifecycle::badge("experimental")`
8+
#' @description
99
#'
1010
#' The `correlate()` method can calculate the correlation matrix between the sample vectors of
1111
#' counts from a specified assay. This produces a [`HermesDataCor`] object, which is an extension

R/checkmate.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Additional Assertions for `checkmate`
22
#'
3-
#' @description `r lifecycle::badge("experimental")`
3+
#' @description
44
#'
55
#' We provide additional assertion functions which can be used together with
66
#' the `checkmate` functions. These are described in individual help pages
@@ -23,7 +23,7 @@ NULL
2323

2424
#' Check for proportion
2525
#'
26-
#' @description `r lifecycle::badge("experimental")`
26+
#' @description
2727
#'
2828
#' Check whether `x` is a (single) proportion.
2929
#'

R/connections.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Connection to `BioMart`
22
#'
3-
#' @description `r lifecycle::badge("experimental")`
3+
#' @description
44
#'
55
#' `connect_biomart()` creates a connection object of class [`ConnectionBiomart`] which contains
66
#' the `biomaRt` object of class [`biomaRt::Mart`][biomaRt::Mart-class] and the prefix of the object
@@ -58,7 +58,7 @@ connect_biomart <- function(prefix = c("ENSG", "GeneID"),
5858

5959
#' Get Annotations from `BioMart`
6060
#'
61-
#' @description `r lifecycle::badge("experimental")`
61+
#' @description
6262
#'
6363
#' Helper function to query annotations from `biomaRt`, for cleaned up gene IDs of
6464
#' a specific ID variable and given [`biomaRt::Mart`][biomaRt::Mart-class].
@@ -126,7 +126,7 @@ h_get_annotation_biomart <- function(gene_ids,
126126

127127
#' Query Gene Annotations from a Connection
128128
#'
129-
#' @description `r lifecycle::badge("experimental")`
129+
#' @description
130130
#'
131131
#' The generic function `query()` is the interface for querying gene annotations from
132132
#' a data base connection.
@@ -164,7 +164,7 @@ setGeneric(
164164

165165
#' Stripping Prefix from Gene IDs
166166
#'
167-
#' @description `r lifecycle::badge("experimental")`
167+
#' @description
168168
#'
169169
#' This helper function removes the prefix and possible delimiter from
170170
#' a vector of gene IDs, such that only the digits are returned.
@@ -191,7 +191,7 @@ h_strip_prefix <- function(gene_ids, prefix) {
191191

192192
#' Total Length of All Exons for Genes
193193
#'
194-
#' @description `r lifecycle::badge("experimental")`
194+
#' @description
195195
#'
196196
#' This helper function queries `BioMart` for lengths of genes by adding up all
197197
#' exon lengths after reducing overlaps.
@@ -257,7 +257,7 @@ h_get_size_biomart <- function(gene_ids,
257257

258258
#' Translation of `Ensembl` to `Entrez` Gene IDs
259259
#'
260-
#' @description `r lifecycle::badge("experimental")`
260+
#' @description
261261
#'
262262
#' This helper function queries `BioMart` to translate `Ensembl` to `Entrez` Gene IDs.
263263
#'
@@ -289,7 +289,7 @@ h_ensembl_to_entrez_ids <- function(gene_ids,
289289

290290
#' Conversion of `BioMart` Coordinates into `GRanges`
291291
#'
292-
#' @description `r lifecycle::badge("experimental")`
292+
#' @description
293293
#'
294294
#' This function extracts the chromosome number, the start position and the end position of transcripts
295295
#' in given `data.frame` with coordinates as returned by `biomaRt::getBM()` and converts

0 commit comments

Comments
 (0)