diff seg2matrix/CGData/CsegToMatrix.cc @ 54:59dbe857f5d4

introduce normal_CNV parameter
author jingchunzhu
date Thu, 17 Sep 2015 22:03:04 -0700
parents ab20c0d04f4a
children
line wrap: on
line diff
--- a/seg2matrix/CGData/CsegToMatrix.cc	Thu Sep 17 15:38:53 2015 -0700
+++ b/seg2matrix/CGData/CsegToMatrix.cc	Thu Sep 17 22:03:04 2015 -0700
@@ -77,7 +77,7 @@
 
 
 
-void print_matrix(segmap *data, set<string> *targetSet, void (*print)(const char *)) {
+void print_matrix(segmap *data, set<string> *targetSet, void (*print)(const char *), char* NORMAL_CNV) {
 	
 	//create a break map
 	breakmap breaks;
@@ -176,7 +176,7 @@
 				float val = gm[i][j];
 				print("\t");
 				if ( val == MISSING_VAL )
-					print("NA");
+					print(NORMAL_CNV);
 				else {							
 					char str[20]  = "";
 					sprintf(str, "%f", val);