From 8683b0ce6e70789a5cf0300d1ab3fe71d583b81e Mon Sep 17 00:00:00 2001 From: Lucille Delisle Date: Thu, 11 Feb 2021 13:52:14 +0100 Subject: [PATCH] Put a warning message when tableWithAnnotations file does not exists. --- step2-DESeq2.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/step2-DESeq2.R b/step2-DESeq2.R index 66fc2ac..5404135 100644 --- a/step2-DESeq2.R +++ b/step2-DESeq2.R @@ -152,6 +152,8 @@ if(exists("tableWithAnnotations")){ if(!is.na(geneIDColInAnnotations)){ annot.df<-ann[match(rownames(resOrdered),ann[,geneIDColInAnnotations]),] } + } else { + cat("The annotation file specified:",tableWithAnnotations," does not exists. It will not be added.\n") } }