Skip to content

Commit

Permalink
Updated call of PACVr.verboseInformation()
Browse files Browse the repository at this point in the history
  • Loading branch information
alephnull7 committed Feb 20, 2024
1 parent 7424cf3 commit da92809
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions R/PACVr.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ PACVr.read.gb <- function(gbkFile) {
PACVr.verboseInformation <- function(gbkData,
bamFile,
analysisSpecs,
output) {
plotSpecs) {
sampleName <- gbkData$sampleName
verbosePath <- getVerbosePath(sampleName, output)
verbosePath <- getVerbosePath(sampleName,
plotSpecs)
printCovStats(bamFile,
gbkData$genes,
gbkData$quadripRegions,
Expand Down Expand Up @@ -154,7 +155,7 @@ PACVr.complete <- function(gbkFile,
PACVr.verboseInformation(gbkData,
bamFile,
analysisSpecs,
output)
plotSpecs)
}

###################################
Expand Down
7 changes: 4 additions & 3 deletions R/verboseInformation.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
#email="m_gruenstaeudl@fhsu.edu"
#version="2024.02.08.2300"

getVerbosePath <- function(sampleName, output) {
getVerbosePath <- function(sampleName,
plotSpecs) {
# Step 1. Check ...
if (!is.na(output)) {
outDir <- dirname(output)
if (plotSpecs$isOutput) {
outDir <- dirname(plotSpecs$output)
tmpDir <- file.path(outDir,
paste(sampleName["sample_name"],
".tmp",
Expand Down

0 comments on commit da92809

Please sign in to comment.