Skip to content

Commit

Permalink
add sanity check for number of contrasts user specifies
Browse files Browse the repository at this point in the history
  • Loading branch information
Leah Kemp committed Feb 25, 2022
1 parent 67b879d commit 4ae7335
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sanity_check_inputs/sanity_check_config_metadata.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ if (config$excerpt_merged_results_dir != "none" & base::file.exists(base::file.p
issues_config <- c(issues_config, base::paste0("Unable to find the excerpt gencode count datasets to be analysed based on the directory passed to 'excerpt_results_dir' in the configuration file. The following path was passed: ",
base::file.path(config$excerpt_merged_results_dir, "exceRpt_gencode_ReadCounts.txt")))
}
# check the number of contrasts (treatment comparisons) the user has chosen is between 1 and 10 contrasts
if (base::length(config$contrasts) > 10) {
issues_config <- c(issues_config, base::paste0("It appears that you have many contrasts (treatment comparisons) for the differential expression analysis based on 'contrasts' in the configuration file. Please ensure there are 10 or fewer contrasts"))
}
```

Expand Down

0 comments on commit 4ae7335

Please sign in to comment.