Skip to content

Commit

Permalink
Remove non-expressed CTSS from reset CAGEexp objects
Browse files Browse the repository at this point in the history
Closes #97
  • Loading branch information
charles-plessy committed Jul 26, 2023
1 parent 8413b71 commit 1c7c400
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/ResetMethods.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ setMethod("resetCAGEexp", signature("CAGEexp"), function (object) {
se <- CTSStagCountSE(object)
assays(se) <- assays(se)['counts']
mcols(rowRanges(se)) <- NULL
se <- se[decode(rowSums.RleDataFrame(assay(se))) > 0,]
cd <- colData(object)
cd <- cd[, ! colnames(cd) %in% c("promoter", "exon", "intron", "unknown", "unannotated", "genes", "outOfClusters")]
cd$librarySizes <- sapply(assay(se), sum)
Expand Down

0 comments on commit 1c7c400

Please sign in to comment.