Skip to content

Commit

Permalink
Updated for Roxygen 7.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smped committed Feb 2, 2024
1 parent 96f1598 commit 27b9538
Show file tree
Hide file tree
Showing 24 changed files with 45 additions and 39 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ngsReports
Version: 2.5.0
Date: 2023/10/11
Version: 2.5.1
Date: 2024/02/02
Title: Load FastqQC reports and other NGS related files
Authors@R: c(
person("Stevie", "Pederson",
Expand Down Expand Up @@ -54,7 +54,7 @@ Imports:
utils,
zoo
LazyData: true
RoxygenNote: 7.2.3
RoxygenNote: 7.3.0
Collate:
'AllGenerics.R'
'validationFunctions.R'
Expand Down
2 changes: 1 addition & 1 deletion R/plotAdapterContent.R
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ setMethod(
)
#' @importFrom tidyr complete unnest
#' @importFrom dplyr summarise group_by bind_rows
#' @importFrom rlang "!!" sym
#' @importFrom rlang !! sym
#' @importFrom tidyselect any_of
#' @rdname plotAdapterContent-methods
#' @export
Expand Down
4 changes: 2 additions & 2 deletions R/plotBaseQuals.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
#' @import tibble
#' @importFrom tidyr unnest
#' @importFrom stringr str_split
#' @importFrom rlang "!!" sym
#' @importFrom rlang !! sym
#'
#' @name plotBaseQuals
#' @rdname plotBaseQuals-methods
Expand Down Expand Up @@ -404,7 +404,7 @@ setMethod(
)
#' @importFrom tidyselect everything all_of
#' @importFrom tidyr pivot_longer
#' @importFrom rlang "!!" sym
#' @importFrom rlang !! sym
#' @rdname plotBaseQuals-methods
#' @export
setMethod(
Expand Down
6 changes: 3 additions & 3 deletions R/plotDupLevels.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
#' @importFrom tidyselect contains
#' @importFrom forcats fct_inorder
#' @import tibble
#' @importFrom rlang "!!" sym
#' @importFrom rlang !! sym
#'
#' @name plotDupLevels
#' @rdname plotDupLevels-methods
Expand Down Expand Up @@ -355,7 +355,7 @@ setMethod(
}
)
#' @importFrom stats weighted.mean
#' @importFrom rlang sym "!!"
#' @importFrom rlang sym !!
#' @importFrom dplyr group_by ungroup summarise
#' @importFrom tidyr unnest
#' @importFrom scales percent
Expand Down Expand Up @@ -475,7 +475,7 @@ setMethod(
}
)
#' @importFrom tidyr unnest
#' @importFrom rlang sym "!!"
#' @importFrom rlang sym !!
#' @importFrom dplyr group_by mutate summarise ungroup
#' @importFrom grDevices colorRampPalette
#' @importFrom stats weighted.mean
Expand Down
2 changes: 1 addition & 1 deletion R/plotFastqcPCA.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#' @importFrom scales percent
#' @importFrom tidyr pivot_wider
#' @importFrom zoo na.locf
#' @importFrom rlang "!!" sym
#' @importFrom rlang !! sym
#' @import ggplot2
#' @import tibble
#'
Expand Down
2 changes: 1 addition & 1 deletion R/plotGcContent.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
#' @importFrom stats hclust dist
#' @import ggplot2
#' @importFrom stringr str_to_title
#' @importFrom rlang "!!" sym
#' @importFrom rlang !! sym
#' @name plotGcContent
#' @rdname plotGcContent-methods
#' @export
Expand Down
4 changes: 2 additions & 2 deletions R/plotInsertSize.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ setGeneric(
}
)
#' @importFrom tidyr unnest
#' @importFrom rlang sym "!!"
#' @importFrom rlang sym !!
#' @rdname plotInsertSize-methods
#' @export
setMethod(
Expand Down Expand Up @@ -139,7 +139,7 @@ setMethod(
}
)
#' @importFrom tidyr unnest
#' @importFrom rlang sym "!!"
#' @importFrom rlang sym !!
#' @importFrom scales percent comma
#' @rdname plotInsertSize-methods
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/plotKmers.R
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ setMethod(

}
)
#' @importFrom rlang "!!" sym
#' @importFrom rlang !! sym
#' @importFrom forcats fct_rev
#' @importFrom dplyr reframe group_by bind_rows
#' @rdname plotKmers-methods
Expand Down
4 changes: 2 additions & 2 deletions R/plotNContent.R
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ setMethod(
#' @importFrom tidyr unnest
#' @importFrom tidyselect any_of
#' @importFrom scales label_percent comma
#' @importFrom rlang sym "!!"
#' @importFrom rlang sym !!
#' @rdname plotNContent-methods
#' @export
setMethod(
Expand Down Expand Up @@ -376,7 +376,7 @@ setMethod(
#' @importFrom tidyr unnest
#' @importFrom tidyselect any_of
#' @importFrom scales percent comma
#' @importFrom rlang sym "!!"
#' @importFrom rlang sym !!
#' @rdname plotNContent-methods
#' @export
setMethod(
Expand Down
2 changes: 1 addition & 1 deletion R/plotOverrep.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#'
#' @importFrom plotly layout ggplotly
#' @importFrom grDevices rgb
#' @importFrom rlang "!!" sym
#' @importFrom rlang !! sym
#' @import ggplot2
#'
#' @name plotOverrep
Expand Down
4 changes: 3 additions & 1 deletion R/plotSeqContent.R
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ setMethod(
}
)
#' @importFrom tidyr unnest pivot_longer
#' @importFrom rlang sym "!!"
#' @importFrom rlang sym !!
#' @importFrom scales label_percent
#' @rdname plotSeqContent-methods
#' @export
Expand Down Expand Up @@ -624,6 +624,8 @@ setMethod(
!!sym("reads"), all_of(bases), !!sym("position")
)
df[bases] <- lapply(df[bases], function(x) round(100 * x, 2))
if ("Module" %in% names(df))
df[["Module"]] <- factor(df[["Module"]], levels = mod)

## Round to 2 digits to reduce the complexity of the colour palette
maxFreq <- max(unlist(df[bases]))
Expand Down
2 changes: 1 addition & 1 deletion R/plotSeqLengthDistn.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
#' @importFrom tidyr pivot_wider complete nesting unnest
#' @importFrom tidyselect everything any_of
#' @importFrom grDevices hcl.colors
#' @importFrom rlang "!!" sym
#' @importFrom rlang !! sym
#' @import ggplot2
#'
#' @name plotSeqLengthDistn
Expand Down
2 changes: 1 addition & 1 deletion R/plotSeqQuals.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#' @importFrom scales percent comma percent_format
#' @importFrom tidyr pivot_wider complete nesting
#' @importFrom grDevices hcl.colors
#' @importFrom rlang "!!" sym
#' @importFrom rlang !! sym
#' @import ggplot2
#'
#' @name plotSeqQuals
Expand Down
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# TODO

- [x] Check how themes are handled & use `theme_get()` as default if none supplied
- [x] Ensure factor levels are correct for `Before_filtering` and `After_filtering`
- [ ] Add line plot to `plotInsertSize()`
- [ ] Add options to facet by base for `plotBaseQuals()` for a `FastpDataList` object
- [ ] Ensure factor levels are correct for `Before_filtering` and `After_filtering`
- [ ] Add Overrepresented Sequences for `FastpData` and `FastpDataList`
- [ ] Build more plotting/reporting functions for fastp reports
- [ ] Add methylation logs from SammyB
Expand Down
4 changes: 4 additions & 0 deletions inst/NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Changes in version 2.5.1
+ Changed method for setting default theme using plotTheme
+ Set factor levels for plotSeqContent for FastpDataList

Changes in version 2.3.5
+ added support for rnaseqc metrics files

Expand Down
4 changes: 2 additions & 2 deletions man/plotAdapterContent-methods.Rd

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

4 changes: 2 additions & 2 deletions man/plotBaseQuals-methods.Rd

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

4 changes: 2 additions & 2 deletions man/plotDupLevels-methods.Rd

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

4 changes: 2 additions & 2 deletions man/plotGcContent-methods.Rd

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

4 changes: 2 additions & 2 deletions man/plotInsertSize-methods.Rd

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

2 changes: 1 addition & 1 deletion man/plotKmers-methods.Rd

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

4 changes: 2 additions & 2 deletions man/plotNContent-methods.Rd

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

2 changes: 1 addition & 1 deletion man/plotReadTotals-methods.Rd

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

8 changes: 4 additions & 4 deletions man/plotSeqContent-methods.Rd

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

0 comments on commit 27b9538

Please sign in to comment.