Skip to content

Commit

Permalink
Merge pull request #654 from OHDSI/issue-651
Browse files Browse the repository at this point in the history
Fixes #651
  • Loading branch information
fdefalco authored May 4, 2022
2 parents bfa5caf + 781d012 commit ce3a5d7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions R/Achilles.R
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ achilles <- function(connectionDetails,
sourceName = "", analysisIds, createTable = TRUE, smallCellCount = 5, cdmVersion = "5",
createIndices = TRUE, numThreads = 1, tempAchillesPrefix = "tmpach", dropScratchTables = TRUE, sqlOnly = FALSE,
outputFolder = "output", verboseMode = TRUE, optimizeAtlasCache = FALSE, defaultAnalysesOnly = TRUE,
updateGivenAnalysesOnly = FALSE, excludeAnalysisIds = c(), sqlDialect = NULL) {
updateGivenAnalysesOnly = FALSE, excludeAnalysisIds, sqlDialect = NULL) {
totalStart <- Sys.time()
achillesSql <- c()

Expand Down Expand Up @@ -213,15 +213,11 @@ achilles <- function(connectionDetails,
analysisDetails <- analysisDetails[analysisDetails$IS_DEFAULT == 1, ]
}

# Remove unwanted analyses, if any are specified
if (length(excludeAnalysisIds) != 0) {
# Remove unwanted analyses that have not already been excluded, if any are specified
if (!missing(excludeAnalysisIds) && any(analysisDetails$ANALYSIS_ID %in% excludeAnalysisIds)) {
analysisDetails <- analysisDetails[-which(analysisDetails$ANALYSIS_ID %in% excludeAnalysisIds),]
}

if (cdmVersion < "5.3") {
analysisDetails <- analysisDetails[!analysisDetails$ANALYSIS_ID == 1425, ]
}

resultsTables <- list(list(detailType = "results",
tablePrefix = tempAchillesPrefix,
schema = read.csv(file = system.file("csv",
Expand Down

0 comments on commit ce3a5d7

Please sign in to comment.