Skip to content

Commit

Permalink
Fix issue #120 and push to Bioc
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-plessy committed Aug 2, 2024
1 parent 7f85aba commit fa1432a
Show file tree
Hide file tree
Showing 23 changed files with 112 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: CAGEr
Title: Analysis of CAGE (Cap Analysis of Gene Expression) sequencing data for precise mapping of transcription start sites and promoterome mining
Version: 2.11.3
Date: 2024-05-24
Version: 2.11.4
Date: 2024-08-02
Authors@R:
c( person("Vanja", "Haberle", email = "[email protected]", role = "aut"),
person("Charles", "Plessy", email = "[email protected]", role = "cre"),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export(distclu)
export(exportToTrack)
export(expressionClasses)
export(filterLowExpCTSS)
export(filteredCTSSidx)
export(findStrandInvaders)
export(flagByUpstreamSequences)
export(flagLowExpCTSS)
Expand Down
7 changes: 6 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Upcoming changes in version 2.11.4
# Changes in version 2.11.4

BACKWARDS-INCOMPATIBLE CHANGES

Expand All @@ -8,6 +8,11 @@ NEW FEATURES

- Support the use of `TxDB` objects for annotating clusters.

BUG FIXES

- Fix issue #120 introduced in 2.11.3, where clustering functions would
fail if `filterLowExpCTSS` was not run before.

# Changes in version 2.11.3

BACKWARDS-INCOMPATIBLE CHANGES
Expand Down
2 changes: 2 additions & 0 deletions R/CAGEr.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ setMethod("validSamples", "CAGEr", function (object, x){
#'
#' @export
#'
#' @family CAGEr filter functions
#'
#' @examples
#' flagLowExpCTSS(exampleCAGEexp, threshold = 100, nrPassThreshold = 2)

Expand Down
25 changes: 22 additions & 3 deletions R/GetMethods.R
Original file line number Diff line number Diff line change
Expand Up @@ -454,13 +454,32 @@ setMethod( "tagClustersGR", "CAGEexp"
.TagClusters(tc)
})

#' @name filteredCTSSidx
#' @noRd
#' The `filteredCTSSidx()` function is in _CAGEr_ functions to retrieve the
#' result of the `flagLowExpCTSS()` function in a safe way.
#'
#' @returns Returns the value of `filteredCTSSidx` in the row ranges of the
#' tag count matrix experiment of the `CAGEexp` object, or `Rle(TRUE)` if it
#' was `NULL`
#'
#' @param object A [`CAGEexp`] object
#'
#' @export
#'
#' @examples
#'
#' filteredCTSSidx(exampleCAGEexp)
#'
#' @family CAGEr filter functions
#' @family CAGEr accessor methods

setGeneric("filteredCTSSidx", function(object) standardGeneric("filteredCTSSidx"))

#' @rdname filteredCTSSidx

setMethod("filteredCTSSidx", "CAGEexp", function (object){
rowData(CTSStagCountSE(object))$filteredCTSSidx
res <- rowData(CTSStagCountSE(object))$filteredCTSSidx
if (is.null(res)) return(Rle(TRUE))
res
})


Expand Down
1 change: 1 addition & 0 deletions man/CTSScoordinates.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/CTSScumulativesTagClusters.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/CTSSnormalizedTpm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/CTSStagCount.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/GeneExpDESeq2.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/GeneExpSE.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/consensusClusters.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/expressionClasses.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions man/filteredCTSSidx.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions man/flagByUpstreamSequences.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions man/flagLowExpCTSS.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/genomeName.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/inputFiles.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/inputFilesType.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/librarySizes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/sampleLabels.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/seqNameTotalsSE.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/tagClusters.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa1432a

Please sign in to comment.