From aa1c8f5318d40c4105a50108ea1a6102433be8a0 Mon Sep 17 00:00:00 2001 From: Ronan Harrington Date: Thu, 12 Nov 2020 22:02:41 +0000 Subject: [PATCH] Fixed scripts/annotated_snps_filter.R The working directory is now set *before* reading annotated SNP files --- scripts/annotated_snps_filter.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/annotated_snps_filter.R b/scripts/annotated_snps_filter.R index 458c9bf..d46a084 100644 --- a/scripts/annotated_snps_filter.R +++ b/scripts/annotated_snps_filter.R @@ -23,6 +23,9 @@ annotated_SNP_file_2 <- "<.tsv File name here>" # Setup ======================================================================== +# Setting the working directory +setwd("~/bioinfo-notebook/data") + annotated_SNP_file_1 <- read.table( annotated_SNP_file_1, stringsAsFactors = FALSE, header = TRUE) @@ -31,9 +34,6 @@ annotated_SNP_file_2 <- read.table( annotated_SNP_file_2, stringsAsFactors = FALSE, header = TRUE) -# Setting the working directory -setwd("~/bioinfo-notebook/data") - # Finding rows in common between annotated SNP data frames ===================== # This needs to be carried out multiple times because the number of rows in