Skip to content

Commit

Permalink
Removed curly braces from calls to setGeneric()
Browse files Browse the repository at this point in the history
  • Loading branch information
smped committed Feb 19, 2024
1 parent fa233c1 commit 72194a4
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 36 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: extraChIPs
Version: 1.7.2
Version: 1.7.3
Title: Additional functions for working with ChIP-Seq data
Authors@R: person("Stephen", "Pederson",
email = "[email protected]",
Expand Down
4 changes: 1 addition & 3 deletions R/AllGenerics.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,4 @@ setGeneric(
#' @export
#' @name plotOverlaps
#' @rdname plotOverlaps-methods
setGeneric(
'plotOverlaps', function(x, ...) standardGeneric('plotOverlaps')
)
setGeneric('plotOverlaps', function(x, ...) standardGeneric('plotOverlaps'))
4 changes: 1 addition & 3 deletions R/addDiffStatus.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
#' @rdname addDiffStatus-methods
#' @export
#'
setGeneric(
"addDiffStatus", function(x, ...){standardGeneric("addDiffStatus")}
)
setGeneric("addDiffStatus", function(x, ...) standardGeneric("addDiffStatus"))
#' @importFrom dplyr case_when
#' @rdname addDiffStatus-methods
#' @export
Expand Down
4 changes: 1 addition & 3 deletions R/fitAssayDiff.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@
#' @rdname fitAssayDiff-methods
#' @export
#'
setGeneric(
"fitAssayDiff", function(x, ...){standardGeneric("fitAssayDiff")}
)
setGeneric("fitAssayDiff", function(x, ...) standardGeneric("fitAssayDiff"))
#' @import SummarizedExperiment
#' @importFrom edgeR glmTreat topTags glmQLFTest
#' @importFrom limma eBayes treat topTable topTreat
Expand Down
5 changes: 1 addition & 4 deletions R/mergeByCol.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@
#' @rdname mergeByCol-methods
#' @export
#'
setGeneric(
"mergeByCol",
function(x, ...){standardGeneric("mergeByCol")}
)
setGeneric("mergeByCol", function(x, ...) standardGeneric("mergeByCol"))
#' @importClassesFrom S4Vectors HitsList
#' @importFrom GenomeInfoDb seqinfo seqinfo<-
#' @importFrom S4Vectors subjectHits queryHits mcols<- mcols
Expand Down
5 changes: 1 addition & 4 deletions R/mergeByHMP.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@
#' @name mergeByHMP
#' @rdname mergeByHMP-methods
#' @export
setGeneric(
"mergeByHMP",
function(x, ...){standardGeneric("mergeByHMP")}
)
setGeneric("mergeByHMP", function(x, ...) standardGeneric("mergeByHMP"))
#' @importFrom S4Vectors DataFrame mcols mcols<- subjectHits
#' @importFrom dplyr group_by summarise arrange distinct left_join bind_rows
#' @importFrom dplyr across
Expand Down
5 changes: 1 addition & 4 deletions R/mergeBySig.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@
#' @name mergeBySig
#' @rdname mergeBySig-methods
#' @export
setGeneric(
"mergeBySig",
function(x, ...){standardGeneric("mergeBySig")}
)
setGeneric("mergeBySig", function(x, ...) standardGeneric("mergeBySig"))
#' @importFrom S4Vectors DataFrame mcols mcols<-
#' @import GenomicRanges
#' @rdname mergeBySig-methods
Expand Down
3 changes: 1 addition & 2 deletions R/plotAssayDensities.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
#' @export
#'
setGeneric(
"plotAssayDensities",
function(x, ...){standardGeneric("plotAssayDensities")}
"plotAssayDensities", function(x, ...) standardGeneric("plotAssayDensities")
)
#' @import SummarizedExperiment
#' @importFrom stats density
Expand Down
3 changes: 1 addition & 2 deletions R/plotAssayHeatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
#' @export
#'
setGeneric(
"plotAssayHeatmap",
function(x, ...){standardGeneric("plotAssayHeatmap")}
"plotAssayHeatmap", function(x, ...) standardGeneric("plotAssayHeatmap")
)
#'
#' @import SummarizedExperiment
Expand Down
5 changes: 1 addition & 4 deletions R/plotAssayPCA.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@
#' @rdname plotAssayPCA-methods
#' @export
#'
setGeneric(
"plotAssayPCA",
function(x, ...){standardGeneric("plotAssayPCA")}
)
setGeneric("plotAssayPCA", function(x, ...) standardGeneric("plotAssayPCA"))
#' @import SummarizedExperiment
#' @importFrom broom tidy
#' @importFrom dplyr left_join
Expand Down
2 changes: 1 addition & 1 deletion R/plotAssayRle.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#' @param by_x Boxplots will be drawn by this grouping variable from
#' `colData(x)`. If not specified, the default values will be `colnames(x)`
#' @param n_max Maximum number of points to plot
#' @param trans character(1). NUuerical transformation to apply to the data
#' @param trans character(1). Numerical transformation to apply to the data
#' prior to RLE calculation
#' @param ... Passed to \link[ggplot2]{geom_boxplot}
#'
Expand Down
6 changes: 2 additions & 4 deletions R/plotProfileHeatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ setGeneric(
#' @importFrom rlang ensym
#' @export
setMethod(
"plotProfileHeatmap",
signature = signature(object = "GenomicRangesList"),
"plotProfileHeatmap", signature = signature(object = "GenomicRangesList"),
function(
object,
profileCol = "profile_data", xValue = "bp", fillValue = "score",
Expand Down Expand Up @@ -154,8 +153,7 @@ setMethod(
#' @rdname plotProfileHeatmap-methods
#' @export
setMethod(
"plotProfileHeatmap",
signature = signature(object = "GenomicRanges"),
"plotProfileHeatmap", signature = signature(object = "GenomicRanges"),
function(
object,
profileCol = "profile_data", xValue = "bp", fillValue = "score",
Expand Down
2 changes: 1 addition & 1 deletion man/plotAssayRle-methods.Rd

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

0 comments on commit 72194a4

Please sign in to comment.