commit/galaxy-central: kanwei: trackster: Suppress cython warning message causing bam_to_summary_tree to fail. Fix for chroms without 'chr' in front not being displayed
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/faf3b3fda8d6/ changeset: r5216:faf3b3fda8d6 user: kanwei date: 2011-03-11 19:36:29 summary: trackster: Suppress cython warning message causing bam_to_summary_tree to fail. Fix for chroms without 'chr' in front not being displayed affected #: 2 files (251 bytes) --- a/lib/galaxy/datatypes/converters/bam_to_summary_tree_converter.py Fri Mar 11 10:01:54 2011 -0500 +++ b/lib/galaxy/datatypes/converters/bam_to_summary_tree_converter.py Fri Mar 11 13:36:29 2011 -0500 @@ -3,6 +3,9 @@ from __future__ import division import sys +sys.stderr = open(os.devnull, 'w') # suppress stderr as cython produces warning on some systems: + # csamtools.so:6: RuntimeWarning: __builtin__.file size changed + from galaxy import eggs import pkg_resources --- a/lib/galaxy/visualization/tracks/data_providers.py Fri Mar 11 10:01:54 2011 -0500 +++ b/lib/galaxy/visualization/tracks/data_providers.py Fri Mar 11 13:36:29 2011 -0500 @@ -170,7 +170,7 @@ self.CACHE[filename] = st # Check for data. - return st.chrom_blocks.get(chrom, None) is not None + return st.chrom_blocks.get(chrom, None) is not None or st.chrom_blocks.get(chrom[3:], None) is not None class VcfDataProvider( TracksDataProvider ): """ Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket