Skip to content

Commit

Permalink
Collapse printCovValsAsTable into printCovStats
Browse files Browse the repository at this point in the history
  • Loading branch information
alephnull7 committed Feb 9, 2024
1 parent 5862a8c commit e135254
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions R/verboseInformation.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,14 @@ printCovStats <- function(bamFile,
analysisSpecs,
dir) {
logger::log_info('Generating statistical information on the sequencing coverage')
printCovValsAsTable(quadripRegions,
bamFile,
genes,
dir,
sampleName,
analysisSpecs)
}

printCovValsAsTable <- function(regions, bamFile, genes, dir, sample_name, analysisSpecs) {
covData <- getCovData(regions, genes, analysisSpecs)
covData <- update.ir_genes(regions, bamFile, sample_name, covData)
covData <- update.ir_noncoding(regions, bamFile, sample_name, covData)
covData <- update.ir_regions(bamFile, sample_name, covData)
covData <- getCovData(quadripRegions, genes, analysisSpecs)
covData <- update.ir_genes(quadripRegions, bamFile, sampleName, covData)
covData <- update.ir_noncoding(quadripRegions, bamFile, sampleName, covData)
covData <- update.ir_regions(bamFile, sampleName, covData)
covData <- setLowCoverage(covData)

# Writing values to output table
writeCovTables(covData, sample_name, dir)
writeCovTables(covData, sampleName, dir)
}

getCovData <- function(regions, genes, analysisSpecs) {
Expand Down

0 comments on commit e135254

Please sign in to comment.