Skip to content

Commit

Permalink
remove hardcoded variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TomKellyGenetics committed Jun 23, 2021
1 parent b7e3ba6 commit 3cc73a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zUMIs-mapping.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ getmode <- function(v) {
cDNA_read_length <- getmode(nchar(cDNA_peek$V1))
# Setup STAR mapping ------------------------------------------------------
samtools_load_cores <- ifelse(inp$num_threads>8,2,1)
avail_cores <- 16 # inp$num_threads - samtools_load_cores #reserve threads for samtools file opening
avail_cores <- inp$num_threads - samtools_load_cores #reserve threads for samtools file opening
if(inp$which_Stage == "Filtering"){
avail_cores <- floor(avail_cores / num_star_instances)
}
Expand Down

0 comments on commit 3cc73a1

Please sign in to comment.