about summary refs log tree commit diff
path: root/prdt.cpp
diff options
context:
space:
mode:
authorxiangzhou2014-09-20 11:51:03 -0400
committerxiangzhou2014-09-20 11:51:03 -0400
commit1f35ffa0806f5f0d70f31f3894cfd1ef816c2fdb (patch)
tree2dc0724fd56152b9d174c4aa5c2562a72d042d59 /prdt.cpp
parent05307b545d60931d265f0c81c0ed67b97321e076 (diff)
downloadpangemma-1f35ffa0806f5f0d70f31f3894cfd1ef816c2fdb.tar.gz
version 0.95alpha
Diffstat (limited to 'prdt.cpp')
-rw-r--r--prdt.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/prdt.cpp b/prdt.cpp
index 7570d36..2875119 100644
--- a/prdt.cpp
+++ b/prdt.cpp
@@ -61,6 +61,7 @@ void PRDT::CopyFromParam (PARAM &cPar)
 	file_bfile=cPar.file_bfile;
 	file_geno=cPar.file_geno;
 	file_out=cPar.file_out;
+	path_out=cPar.path_out;
 	
 	indicator_pheno=cPar.indicator_pheno;	
 	indicator_cvt=cPar.indicator_cvt;
@@ -94,7 +95,7 @@ void PRDT::CopyToParam (PARAM &cPar)
 void PRDT::WriteFiles (gsl_vector *y_prdt) 
 {
 	string file_str;
-	file_str="./output/"+file_out;
+	file_str=path_out+"/"+file_out;
 	file_str+=".";
 	file_str+="prdt";
 	file_str+=".txt";
@@ -121,7 +122,7 @@ void PRDT::WriteFiles (gsl_vector *y_prdt)
 void PRDT::WriteFiles (gsl_matrix *Y_full) 
 {
 	string file_str;
-	file_str="./output/"+file_out;
+	file_str=path_out+"/"+file_out;
 	file_str+=".prdt.txt";
 	
 	ofstream outfile (file_str.c_str(), ofstream::out);