Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Sanity checking for method argument in immune deconv (#672)
Browse files Browse the repository at this point in the history
Co-authored-by: Jaclyn Taroni <jaclyn.n.taroni@gmail.com>
  • Loading branch information
Stephanie and jaclyn-taroni authored Apr 4, 2020
1 parent a51b39a commit e31fed6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions analyses/immune-deconv/01-immune-deconv.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ cibersort_bin <- opt$cibersortbin
cibersort_mat <- opt$cibersortgenemat
output.file <- opt$outputfile

print(cibersort_bin)
print(cibersort_mat)
#### Check model parameter - must be in deconvolution_methods (immunedeconv accepted options)
if (!(deconv.method %in% deconvolution_methods )){
stop( paste(c("Specified method not available. Must be one of the following: ", deconvolution_methods), collapse=" ") )
}


# if cibersort_bin and cibersort_mat are defined
# then, set path to cibersort binary and matrix
if(cibersort_bin != "NA" & cibersort_mat != "NA"){
Expand Down

0 comments on commit e31fed6

Please sign in to comment.