diff --git a/NEWS b/NEWS index 40904215..2be6b4ba 100755 --- a/NEWS +++ b/NEWS @@ -1,4 +1,4 @@ -Changes in version 1.19.1 +Changes in version 1.20.0 ------------------------- SIGNIFICANT USER-VISIBLE CHANGES diff --git a/R/filterVcfMuTect.R b/R/filterVcfMuTect.R index 8f187b9c..260692f3 100644 --- a/R/filterVcfMuTect.R +++ b/R/filterVcfMuTect.R @@ -87,7 +87,9 @@ ignore=c("clustered_read_position", "fstar_tumor_lod", "nearby_gap_events", .detectCaller <- function(vcf) { gatkVersion <- meta(header(vcf))[["GATKCommandLine"]]$Version[1] - gatkVersion <- gsub("\\\"", "", gatkVersion) - if (!is.null(gatkVersion) && grepl("^4", gatkVersion)) return("MuTect2/GATK4") + if (!is.null(gatkVersion)) { + gatkVersion <- gsub("\\\"", "", gatkVersion) + if (grepl("^4", gatkVersion)) return("MuTect2/GATK4") + } return("") }