From 261cbbf81a68d88ea1993691ccf4c8064485673d Mon Sep 17 00:00:00 2001 From: Boxiang Liu Date: Thu, 26 Apr 2018 16:35:07 -0700 Subject: [PATCH] modified: utils/mysql/gwas2mysql.R --- utils/mysql/gwas2mysql.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/mysql/gwas2mysql.R b/utils/mysql/gwas2mysql.R index 53979c7..08e2661 100644 --- a/utils/mysql/gwas2mysql.R +++ b/utils/mysql/gwas2mysql.R @@ -17,7 +17,7 @@ read_gwas = function(gwas_fn){ message(command) gwas=tryCatch({ - fread(command) + fread(command,header=TRUE) }, error = function(e) {NULL} ) @@ -139,6 +139,7 @@ for (gwas_fn in gwas_fn_list){ index_table(table_name) } + gwas_dir = '/mnt/data/shared/datasets/gwas/batch5/' gwas_fn_list = list.files(gwas_dir,pattern='txt.gz$') for (gwas_fn in gwas_fn_list){