From 84e51dd57e69fc34ecb6082b0cb0a02e4c0cafb8 Mon Sep 17 00:00:00 2001 From: lima1 Date: Sun, 24 May 2020 12:30:25 -0400 Subject: [PATCH] Fixed build error of previous commit. --- NEWS | 2 +- R/filterVcfMuTect.R | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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("") }