Skip to content

Commit e80cb39

Browse files
committed
fix bug: omit the check for NA elements in sampleData
1 parent fda300b commit e80cb39

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

R/bambu_utilityFunctions.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ checkInputs <- function(annotations, reads, readClass.outputDir, genomeSequence,
157157
}
158158

159159
if(!is.null(sampleData)){
160-
if(!all(grepl(".csv^", sampleData))){stop("Not all paths for sample metadata files are .csv files")}
160+
if (!all(grepl("\\.csv$", na.omit(sampleData)))){
161+
stop("Not all paths for sample metadata files are .csv files")
162+
}
161163
if(length(sampleData)==1 & length(reads)>1){ # normally used for bulk samples
162164
message("Using the same sample metadata file for all input samples")
163165
} else if(length(reads)!=length(sampleData)){ # normally used for single-cell/spatial samples

0 commit comments

Comments
 (0)