Skip to content

Commit

Permalink
Move path normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
csoneson committed Apr 28, 2024
1 parent 2c4c7dd commit f45a32b
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 35 deletions.
12 changes: 6 additions & 6 deletions R/runDIANNAnalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,6 @@ runDIANNAnalysis <- function(
complexSpecies = "all", complexDbPath = NULL, stringVersion = "11.5",
stringDir = NULL, linkTableColumns = c(), customYml = NULL, doRender = TRUE
) {
## -------------------------------------------------------------------------
## Normalize paths
## -------------------------------------------------------------------------
diannFile <- normalizePath(diannFile)
diannLogFile <- normalizePath(diannLogFile)

## -------------------------------------------------------------------------
## Fix ctrlGroup/mergeGroups
## -------------------------------------------------------------------------
Expand Down Expand Up @@ -218,6 +212,12 @@ runDIANNAnalysis <- function(
## Gives a warning if pandoc and/or pandoc-citeproc is not available
pandocOK <- .checkPandoc(ignorePandoc = TRUE)

## -------------------------------------------------------------------------
## Normalize paths
## -------------------------------------------------------------------------
diannFile <- normalizePath(diannFile)
diannLogFile <- normalizePath(diannLogFile)

## -------------------------------------------------------------------------
## Copy Rmd template and insert arguments
## -------------------------------------------------------------------------
Expand Down
10 changes: 5 additions & 5 deletions R/runFragPipeAnalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ runFragPipeAnalysis <- function(
complexSpecies = "all", complexDbPath = NULL, stringVersion = "11.5",
stringDir = NULL, linkTableColumns = c(), customYml = NULL, doRender = TRUE
) {
## -------------------------------------------------------------------------
## Normalize path
## -------------------------------------------------------------------------
fragpipeDir <- normalizePath(fragpipeDir)

## -------------------------------------------------------------------------
## Fix ctrlGroup/mergeGroups
## -------------------------------------------------------------------------
Expand Down Expand Up @@ -166,6 +161,11 @@ runFragPipeAnalysis <- function(
## Gives a warning if pandoc and/or pandoc-citeproc is not available
pandocOK <- .checkPandoc(ignorePandoc = TRUE)

## -------------------------------------------------------------------------
## Normalize path
## -------------------------------------------------------------------------
fragpipeDir <- normalizePath(fragpipeDir)

## -------------------------------------------------------------------------
## Copy Rmd template and insert arguments
## -------------------------------------------------------------------------
Expand Down
12 changes: 6 additions & 6 deletions R/runMaxQuantAnalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,6 @@ runMaxQuantAnalysis <- function(
complexSpecies = "all", complexDbPath = NULL, stringVersion = "11.5",
stringDir = NULL, linkTableColumns = c(), customYml = NULL, doRender = TRUE
) {
## -------------------------------------------------------------------------
## Normalize paths
## -------------------------------------------------------------------------
mqFile <- normalizePath(mqFile)
mqParameterFile <- normalizePath(mqParameterFile)

## -------------------------------------------------------------------------
## Fix ctrlGroup/mergeGroups
## -------------------------------------------------------------------------
Expand Down Expand Up @@ -347,6 +341,12 @@ runMaxQuantAnalysis <- function(
## Gives a warning if pandoc and/or pandoc-citeproc is not available
pandocOK <- .checkPandoc(ignorePandoc = TRUE)

## -------------------------------------------------------------------------
## Normalize paths
## -------------------------------------------------------------------------
mqFile <- normalizePath(mqFile)
mqParameterFile <- normalizePath(mqParameterFile)

## -------------------------------------------------------------------------
## Copy Rmd template and insert arguments
## -------------------------------------------------------------------------
Expand Down
12 changes: 6 additions & 6 deletions R/runPDTMTAnalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,6 @@ runPDTMTAnalysis <- function(
stringDir = NULL, linkTableColumns = c(),
customYml = NULL, doRender = TRUE
) {
## -------------------------------------------------------------------------
## Normalize paths
## -------------------------------------------------------------------------
pdOutputFolder <- normalizePath(pdOutputFolder)
pdAnalysisFile <- normalizePath(pdAnalysisFile)

## -------------------------------------------------------------------------
## Fix ctrlGroup/mergeGroups
## -------------------------------------------------------------------------
Expand Down Expand Up @@ -224,6 +218,12 @@ runPDTMTAnalysis <- function(
## Gives a warning if pandoc and/or pandoc-citeproc is not available
pandocOK <- .checkPandoc(ignorePandoc = TRUE)

## -------------------------------------------------------------------------
## Normalize paths
## -------------------------------------------------------------------------
pdOutputFolder <- normalizePath(pdOutputFolder)
pdAnalysisFile <- normalizePath(pdAnalysisFile)

## -------------------------------------------------------------------------
## Copy Rmd template and insert arguments
## -------------------------------------------------------------------------
Expand Down
12 changes: 6 additions & 6 deletions R/runPDTMTptmAnalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@ runPDTMTptmAnalysis <- function(
interactiveGroupColumn = NULL,
seed = 42, linkTableColumns = c(), customYml = NULL, doRender = TRUE
) {
## -------------------------------------------------------------------------
## Normalize paths
## -------------------------------------------------------------------------
sceProteins <- normalizePath(sceProteins)
scePeptides <- normalizePath(scePeptides)

## -------------------------------------------------------------------------
## Check arguments
## -------------------------------------------------------------------------
Expand Down Expand Up @@ -184,6 +178,12 @@ runPDTMTptmAnalysis <- function(
## Gives a warning if pandoc and/or pandoc-citeproc is not available
pandocOK <- .checkPandoc(ignorePandoc = TRUE)

## -------------------------------------------------------------------------
## Normalize paths
## -------------------------------------------------------------------------
sceProteins <- normalizePath(sceProteins)
scePeptides <- normalizePath(scePeptides)

## -------------------------------------------------------------------------
## Copy Rmd template and insert arguments
## -------------------------------------------------------------------------
Expand Down
12 changes: 6 additions & 6 deletions R/runSpectronautAnalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ runSpectronautAnalysis <- function(
complexSpecies = "all", complexDbPath = NULL, stringVersion = "11.5",
stringDir = NULL, linkTableColumns = c(), customYml = NULL, doRender = TRUE
) {
## -------------------------------------------------------------------------
## Normalize paths
## -------------------------------------------------------------------------
spectronautFile <- normalizePath(spectronautFile)
spectronautLogFile <- normalizePath(spectronautLogFile)

## -------------------------------------------------------------------------
## Fix ctrlGroup/mergeGroups
## -------------------------------------------------------------------------
Expand Down Expand Up @@ -160,6 +154,12 @@ runSpectronautAnalysis <- function(
## Gives a warning if pandoc and/or pandoc-citeproc is not available
pandocOK <- .checkPandoc(ignorePandoc = TRUE)

## -------------------------------------------------------------------------
## Normalize paths
## -------------------------------------------------------------------------
spectronautFile <- normalizePath(spectronautFile)
spectronautLogFile <- normalizePath(spectronautLogFile)

## -------------------------------------------------------------------------
## Copy Rmd template and insert arguments
## -------------------------------------------------------------------------
Expand Down

0 comments on commit f45a32b

Please sign in to comment.