Skip to content

Commit

Permalink
fix typo for #1028
Browse files Browse the repository at this point in the history
  • Loading branch information
PoisonAlien committed Jun 10, 2024
1 parent 949534d commit 1992ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/ntcounts.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ bamreadcounts = function(bam = NULL, loci = NULL, zerobased = FALSE, mapq = 10,
stop("BAM file does not exist: ", x)
}

if(!file.exists(paste0(bam , ".bai"))){
stop("Index file for ", bam, " not found!")
if(!file.exists(paste0(x , ".bai"))){
stop("Index file for ", x, " not found!")
}

gsub(pattern = "\\.bam$", replacement = "", x = basename(x), ignore.case = TRUE)
Expand Down

0 comments on commit 1992ee7

Please sign in to comment.