--
You received this message because you are subscribed to the Google Groups "MACS announcement" group.
To unsubscribe from this group and stop receiving emails from it, send an email to macs-announcem...@googlegroups.com.
To post to this group, send email to macs-ann...@googlegroups.com.
Visit this group at http://groups.google.com/group/macs-announcement?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Hi, this is the upgrade output:> sudo easy_install --upgrade MACS2Searching for MACS2Reading http://github.com/taoliu/MACS/Best match: MACS2 2.0.10.20130501Processing MACS2-2.0.10.20130501.tar.gzRunning MACS2-2.0.10.20130501/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5AyeIo/MACS2-2.0.10.20130501/egg-dist-tmp-_JDhhMIn file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/cProb.c:259:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: 警告: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:26:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/cProb.c:259:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1594:1: 警告: ‘_import_array’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:311:0,from MACS2/cProb.c:260:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:236:1: 警告: ‘_import_umath’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/IO/cParser.c:258:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: 警告: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:26:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/IO/cParser.c:258:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1594:1: 警告: ‘_import_array’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:311:0,from MACS2/IO/cParser.c:259:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:236:1: 警告: ‘_import_umath’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/cPileup.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: 警告: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:26:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/cPileup.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1594:1: 警告: ‘_import_array’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:311:0,from MACS2/cPileup.c:258:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:236:1: 警告: ‘_import_umath’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/cPeakModel.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: 警告: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:26:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/cPeakModel.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1594:1: 警告: ‘_import_array’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:311:0,from MACS2/cPeakModel.c:258:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:236:1: 警告: ‘_import_umath’定义后未使用 [-Wunused-function]MACS2/cPeakModel.c: 在函数‘__pyx_pw_5MACS2_10cPeakModel_9PeakModel_17__naive_peak_pos’中:MACS2/cPeakModel.c:6726:17: 警告: 此函数中的‘__pyx_v_pos’在使用前可能未初始化 [-Wuninitialized]MACS2/cPeakModel.c:6564:7: 附注: ‘__pyx_v_pos’在此声明MACS2/cPeakDetect.c:787:18: 警告: ‘__pyx_f_5MACS2_11cPeakDetect_subpeak_letters’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/cSignal.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: 警告: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:26:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/cSignal.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1594:1: 警告: ‘_import_array’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:311:0,from MACS2/cSignal.c:258:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:236:1: 警告: ‘_import_umath’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/IO/cFixWidthTrack.c:259:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: 警告: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:26:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/IO/cFixWidthTrack.c:259:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1594:1: 警告: ‘_import_array’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:311:0,from MACS2/IO/cFixWidthTrack.c:260:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:236:1: 警告: ‘_import_umath’定义后未使用 [-Wunused-function]MACS2/IO/cFixWidthTrack.c: 在函数‘__pyx_f_5MACS2_2IO_14cFixWidthTrack_10FWTrackIII_compute_region_tags_from_peaks’中:MACS2/IO/cFixWidthTrack.c:9857:11: 警告: 此函数中的‘__pyx_v_j’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cFixWidthTrack.c:9856:11: 警告: 此函数中的‘__pyx_v_i’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cFixWidthTrack.c: 在函数‘__pyx_f_5MACS2_2IO_14cFixWidthTrack_10FWTrackIII_refine_peak_from_tags_distribution’中:MACS2/IO/cFixWidthTrack.c:10842:11: 警告: 此函数中的‘__pyx_v_j’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cFixWidthTrack.c:10841:11: 警告: 此函数中的‘__pyx_v_i’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cFixWidthTrack.c: 在函数‘__pyx_f_5MACS2_2IO_14cFixWidthTrack_10FWTrackIII_separate_dups’中:MACS2/IO/cFixWidthTrack.c:5143:21: 警告: 此函数中的‘__pyx_v_n’在使用前可能未初始化 [-Wmaybe-uninitialized]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/IO/cPairedEndTrack.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: 警告: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:26:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/IO/cPairedEndTrack.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1594:1: 警告: ‘_import_array’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:311:0,from MACS2/IO/cPairedEndTrack.c:258:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:236:1: 警告: ‘_import_umath’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/IO/cScoreTrack.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: 警告: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:26:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/IO/cScoreTrack.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1594:1: 警告: ‘_import_array’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:311:0,from MACS2/IO/cScoreTrack.c:258:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:236:1: 警告: ‘_import_umath’定义后未使用 [-Wunused-function]MACS2/IO/cScoreTrack.c: 在函数‘__pyx_f_5MACS2_2IO_11cScoreTrack_12scoreTrackII_compute_SPMR’中:MACS2/IO/cScoreTrack.c:14480:37: 警告: 此函数中的‘__pyx_v_scale’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cScoreTrack.c: 在函数‘__pyx_pw_5MACS2_2IO_11cScoreTrack_16CombinedTwoTrack_19extract_average’中:MACS2/IO/cScoreTrack.c:8073:33: 警告: 此函数中的‘__pyx_v_l’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cScoreTrack.c:7371:7: 附注: ‘__pyx_v_l’在此声明MACS2/IO/cScoreTrack.c: 在函数‘__pyx_f_5MACS2_2IO_11cScoreTrack_15DiffScoreTrackI_annotate_peaks’中:MACS2/IO/cScoreTrack.c:39293:13: 警告: 此函数中的‘__pyx_v_ii’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cScoreTrack.c: 在函数‘__pyx_f_5MACS2_2IO_11cScoreTrack_15DiffScoreTrackI_call_diff_peaks’中:MACS2/IO/cScoreTrack.c:43749:37: 警告: 此函数中的‘__pyx_v_i’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cScoreTrack.c: 在函数‘__pyx_pf_5MACS2_2IO_11cScoreTrack_15DiffScoreTrackI_38write_peaks2’中:MACS2/IO/cScoreTrack.c:49034:17: 警告: 此函数中的‘__pyx_pybuffernd_above_cutoff.diminfo[0].shape’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cScoreTrack.c:49039:25: 警告: 此函数中的‘__pyx_pybuffernd_above_cutoff.diminfo[0].strides’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cScoreTrack.c: 在函数‘__pyx_f_5MACS2_2IO_11cScoreTrack_15DiffScoreTrackI__write_peaks_by_summit’中:MACS2/IO/cScoreTrack.c:54010:14: 警告: 此函数中的‘__pyx_v_score_value’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cScoreTrack.c: 在函数‘__pyx_f_5MACS2_2IO_11cScoreTrack_12scoreTrackII_reassign_peaks’中:MACS2/IO/cScoreTrack.c:15534:37: 警告: 此函数中的‘__pyx_v_cutoff’在使用前可能未初始化 [-Wuninitialized]MACS2/IO/cScoreTrack.c: 在函数‘__pyx_f_5MACS2_2IO_11cScoreTrack_15DiffScoreTrackI_call_peaks’中:MACS2/IO/cScoreTrack.c:37737:23: 警告: 此函数中的‘__pyx_v_i’在使用前可能未初始化 [-Wmaybe-uninitialized]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/IO/cCallPeakUnit.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: 警告: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:26:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/IO/cCallPeakUnit.c:257:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1594:1: 警告: ‘_import_array’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:311:0,from MACS2/IO/cCallPeakUnit.c:258:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:236:1: 警告: ‘_import_umath’定义后未使用 [-Wunused-function]MACS2/IO/cCallPeakUnit.c:2475:15: 警告: ‘__pyx_f_5MACS2_2IO_13cCallPeakUnit_get_interpolated_pscore’定义后未使用 [-Wunused-function]MACS2/IO/cCallPeakUnit.c: 在函数‘__pyx_f_5MACS2_2IO_13cCallPeakUnit_20CallerFromAlignments_refine_peak_from_tags_distribution’中:MACS2/IO/cCallPeakUnit.c:15431:11: 警告: 此函数中的‘__pyx_v_j’在使用前可能未初始化 [-Wmaybe-uninitialized]MACS2/IO/cCallPeakUnit.c:15430:11: 警告: 此函数中的‘__pyx_v_i’在使用前可能未初始化 [-Wmaybe-uninitialized]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/hashtable.c:258:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: 警告: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:26:0,from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,from MACS2/hashtable.c:258:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1594:1: 警告: ‘_import_array’定义后未使用 [-Wunused-function]In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ufuncobject.h:311:0,from MACS2/hashtable.c:259:/usr/lib/python2.7/dist-packages/numpy/core/include/numpy/__ufunc_api.h:236:1: 警告: ‘_import_umath’定义后未使用 [-Wunused-function]zip_safe flag not set; analyzing archive contents...MACS2.cStat: module MAY be using inspect.traceRemoving MACS2 2.0.10.20130501 from easy-install.pth fileAdding MACS2 2.0.10.20130501 to easy-install.pth fileInstalling macs2 script to /usr/local/binInstalled /usr/local/lib/python2.7/dist-packages/MACS2-2.0.10.20130501-py2.7-linux-x86_64.eggProcessing dependencies for MACS2Finished processing dependencies for MACS2And then I run macs2, the "TypeError..." appears.Thank you!
Hi, Liu. Thanks for your reply. This is the very cause. I simply modified the gzip.py manually as Peter suggested at http://bugs.python.org/issue17666:
=====quote=====
The bug is very simple, an error in line 205 of gzip.py:
203 if flag & FEXTRA:
204 # Read & discard the extra field, if present
205 self._read_exact(struct.unpack("<H", self._read_exact(2)))
The struct.unpack method returns a single element tuple, thus a fix is:
203 if flag & FEXTRA:
204 # Read & discard the extra field, if present
205 extra_len, = struct.unpack("<H", self._read_exact(2))
206 self._read_exact(extra_len)
=====end of quote=====
MACS now works smoothly with BAM input again.
Thank you!
---Zhuqiang
发件人: macs-ann...@googlegroups.com [mailto:macs-ann...@googlegroups.com] 代表 Tao Liu
发送时间: 2013年5月15日 22:23
收件人: macs-ann...@googlegroups.com
主题: Re: [macs-announscement] Using MACS2 with BAM input
--
You received this message because you are subscribed to a topic in the Google Groups "MACS announcement" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/macs-announcement/ZUPtwaP1xVU/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to macs-announcem...@googlegroups.com.
The bug is very simple, an error in line 205 of gzip.py:
203 if flag & FEXTRA:
204 # Read & discard the extra field, if present
205 self._read_exact(struct.unpack("<H", self._read_exact(2)))
The struct.unpack method returns a single element tuple, thus a fix is:
203 if flag & FEXTRA:
204 # Read & discard the extra field, if present
205 extra_len, = struct.unpack("<H", self._read_exact(2))
206 self._read_exact(extra_len)
Visit this group at http://groups.google.com/group/macs-announcement.