Skip to content

Commit

Permalink
deal with null correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
cziegenhain committed Jul 19, 2020
1 parent c2597cb commit 6e56ede
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zUMIs-mapping.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ additional_fq <- inp$reference$additional_files
samtools <- inp$samtools_exec
STAR_exec <- inp$STAR_exec

if(is.null(inp$mem_limit) | inp$mem_limit == 0){
if(is.null(inp$mem_limit)){
inp$mem_limit <- 100
}else if(inp$mem_limit == 0){
inp$mem_limit <- 100
}

Expand Down Expand Up @@ -149,6 +151,6 @@ if(num_star_instances>1 & inp$which_Stage == "Filtering"){

#clean up chunked bam files
if(inp$which_Stage == "Filtering"){
system(paste0("rm ",tmpfolder,"/",inp$project,".*"))
# system(paste0("rm ",tmpfolder,"/",inp$project,".*"))
}
q()

0 comments on commit 6e56ede

Please sign in to comment.