Mercurial > repos > melissacline > ucsc_cancer_utilities
diff seg2matrix/CGData/SegToMatrix.py @ 54:59dbe857f5d4
introduce normal_CNV parameter
author | jingchunzhu |
---|---|
date | Thu, 17 Sep 2015 22:03:04 -0700 |
parents | 8ef79bd0be9a |
children |
line wrap: on
line diff
--- a/seg2matrix/CGData/SegToMatrix.py Thu Sep 17 15:38:53 2015 -0700 +++ b/seg2matrix/CGData/SegToMatrix.py Thu Sep 17 22:03:04 2015 -0700 @@ -10,8 +10,7 @@ if os.path.exists(libFile): segLib = ctypes.cdll.LoadLibrary(libFile) - -def seg_to_matrix(seg_handle, out_handle): +def seg_to_matrix(seg_handle, out_handle, NORMAL_CNV): """ Turn a segment file into a segmented matrix. @@ -29,4 +28,4 @@ return 0 printbackTYPE = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_char_p) - segLib.print_matrix(s, t, printbackTYPE(printback)) + segLib.print_matrix(s, t, printbackTYPE(printback), NORMAL_CNV)