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

Check method argument in immune-deconv module #672

Merged
merged 2 commits into from
Apr 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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