Skip to content

Commit

Permalink
fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pcastellanoescuder committed Dec 14, 2023
1 parent f312208 commit 4d86b64
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: POMA
Title: Tools for Omics Data Analysis
Version: 1.13.4
Version: 1.13.5
Authors@R:
c(person(given = "Pol",
family = "Castellano-Escuder",
Expand Down Expand Up @@ -55,7 +55,7 @@ Imports:
lme4,
magrittr,
MASS,
Matrix,
Matrix (<= 1.6.1),
mixOmics,
randomForest,
RankProd (>= 3.14),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# POMA 1.13.4
# POMA 1.13.5

* New POMA theme and colorblind-friendly palette
* Available sample normalization (sum and quantile)
Expand Down
6 changes: 3 additions & 3 deletions R/PomaPLS.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ PomaPLS <- function(data,

if (method == "pls") {
dependent_variable <- SummarizedExperiment::colData(data) %>%
as.data.frame() %>%
dplyr::as_tibble() %>%
dplyr::select_if(is.numeric)

if (ncol(dependent_variable) == 0) {
Expand Down Expand Up @@ -152,7 +152,7 @@ PomaPLS <- function(data,

else if (method == "plsda") {
dependent_variable <- SummarizedExperiment::colData(data) %>%
as.data.frame() %>%
dplyr::as_tibble() %>%
dplyr::select_if(is.factor)

if (ncol(dependent_variable) == 0) {
Expand Down Expand Up @@ -263,7 +263,7 @@ PomaPLS <- function(data,

else if (method == "splsda") {
dependent_variable <- SummarizedExperiment::colData(data) %>%
as.data.frame() %>%
dplyr::as_tibble() %>%
dplyr::select_if(is.factor)

if (ncol(dependent_variable) == 0) {
Expand Down
4 changes: 2 additions & 2 deletions R/PomaUnivariate.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ PomaUnivariate <- function(data,
}

else if (method == "anova") {
covariates <- SummarizedExperiment::colData(data) %>%
as.data.frame() %>%
covariates <- SummarizedExperiment::colData(data) %>%
dplyr::as_tibble() %>%
dplyr::select(-1)

if (is.null(covs)) {
Expand Down
10 changes: 6 additions & 4 deletions R/helpers.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

help_extract <- function(fun,
section = "Description") {
x <- capture.output(tools::Rd2txt(utils:::.getHelpFile(help(fun, ...)), options = list(sectionIndent = 0)))
section = "Description",
...) {
x <- capture.output(tools::Rd2txt(utils:::.getHelpFile(utils::help(fun, ...)), options = list(sectionIndent = 0)))
B <- grep("^_", x)
x <- gsub("_\b", "", x, fixed = TRUE)
X <- rep(FALSE, length(x))
Expand All @@ -20,8 +21,9 @@ help_extract <- function(fun,
return(out)
}

title_extract <- function(fun) {
x <- capture.output(tools::Rd2txt(utils:::.getHelpFile(help(fun, ...)), options = list(sectionIndent = 0)))
title_extract <- function(fun,
...) {
x <- capture.output(tools::Rd2txt(utils:::.getHelpFile(utils::help(fun, ...)), options = list(sectionIndent = 0)))
x <- gsub("_\b", "", x, fixed = TRUE)
title <- x[1]
return(title)
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ output: github_document
| _BioC_ branch | Status | Version | Dependencies | Rank |
|- |- |- |- |- |
| [Release](http://bioconductor.org/packages/release/bioc/html/POMA.html) | [![Bioc release status](https://bioconductor.org/shields/build/release/bioc/POMA.svg)](https://bioconductor.org/checkResults/release/bioc-LATEST/POMA/) | [![BioC released version](https://img.shields.io/badge/release%20version-1.6.0-blue.svg)](https://www.bioconductor.org/packages/POMA) | [![Dependencies](http://bioconductor.org/shields/dependencies/release/POMA.svg)](http://bioconductor.org/packages/release/bioc/html/POMA.html#since) | [![Rank](http://www.bioconductor.org/shields/downloads/release/POMA.svg)](https://bioconductor.org/packages/stats/bioc/POMA) |
| [Devel](http://bioconductor.org/packages/devel/bioc/html/POMA.html) | [![Bioc devel status](https://bioconductor.org/shields/build/devel/bioc/POMA.svg)](https://bioconductor.org/checkResults/devel/bioc-LATEST/POMA/) | [![BioC devel version](https://img.shields.io/badge/devel%20version-1.13.4-blue.svg)](https://bioconductor.org/packages/devel/bioc/html/POMA.html) | [![Dependencies](http://bioconductor.org/shields/dependencies/devel/POMA.svg)](http://bioconductor.org/packages/devel/bioc/html/POMA.html#since) | [![Rank](http://www.bioconductor.org/shields/downloads/devel/POMA.svg)](https://bioconductor.org/packages/stats/bioc/POMA) |
| [Devel](http://bioconductor.org/packages/devel/bioc/html/POMA.html) | [![Bioc devel status](https://bioconductor.org/shields/build/devel/bioc/POMA.svg)](https://bioconductor.org/checkResults/devel/bioc-LATEST/POMA/) | [![BioC devel version](https://img.shields.io/badge/devel%20version-1.13.5-blue.svg)](https://bioconductor.org/packages/devel/bioc/html/POMA.html) | [![Dependencies](http://bioconductor.org/shields/dependencies/devel/POMA.svg)](http://bioconductor.org/packages/devel/bioc/html/POMA.html#since) | [![Rank](http://www.bioconductor.org/shields/downloads/devel/POMA.svg)](https://bioconductor.org/packages/stats/bioc/POMA) |

<!-- badges: end -->

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/li
| *BioC* branch | Status | Version | Dependencies | Rank |
|-------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| [Release](http://bioconductor.org/packages/release/bioc/html/POMA.html) | [![Bioc release status](https://bioconductor.org/shields/build/release/bioc/POMA.svg)](https://bioconductor.org/checkResults/release/bioc-LATEST/POMA/) | [![BioC released version](https://img.shields.io/badge/release%20version-1.6.0-blue.svg)](https://www.bioconductor.org/packages/POMA) | [![Dependencies](http://bioconductor.org/shields/dependencies/release/POMA.svg)](http://bioconductor.org/packages/release/bioc/html/POMA.html#since) | [![Rank](http://www.bioconductor.org/shields/downloads/release/POMA.svg)](https://bioconductor.org/packages/stats/bioc/POMA) |
| [Devel](http://bioconductor.org/packages/devel/bioc/html/POMA.html) | [![Bioc devel status](https://bioconductor.org/shields/build/devel/bioc/POMA.svg)](https://bioconductor.org/checkResults/devel/bioc-LATEST/POMA/) | [![BioC devel version](https://img.shields.io/badge/devel%20version-1.13.4-blue.svg)](https://bioconductor.org/packages/devel/bioc/html/POMA.html) | [![Dependencies](http://bioconductor.org/shields/dependencies/devel/POMA.svg)](http://bioconductor.org/packages/devel/bioc/html/POMA.html#since) | [![Rank](http://www.bioconductor.org/shields/downloads/devel/POMA.svg)](https://bioconductor.org/packages/stats/bioc/POMA) |
| [Devel](http://bioconductor.org/packages/devel/bioc/html/POMA.html) | [![Bioc devel status](https://bioconductor.org/shields/build/devel/bioc/POMA.svg)](https://bioconductor.org/checkResults/devel/bioc-LATEST/POMA/) | [![BioC devel version](https://img.shields.io/badge/devel%20version-1.13.5-blue.svg)](https://bioconductor.org/packages/devel/bioc/html/POMA.html) | [![Dependencies](http://bioconductor.org/shields/dependencies/devel/POMA.svg)](http://bioconductor.org/packages/devel/bioc/html/POMA.html#since) | [![Rank](http://www.bioconductor.org/shields/downloads/devel/POMA.svg)](https://bioconductor.org/packages/stats/bioc/POMA) |

<!-- badges: end -->

Expand Down

0 comments on commit 4d86b64

Please sign in to comment.