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){