from csamtools import *
+from ctabix import *
+import csamtools
+import ctabix
import Pileup
import sys
import os
# Note that there is sometimes output on stderr that is not an error,
# for example: [sam_header_read2] 2 sequences loaded.
# Ignore messages like these
- stderr = [ x for x in stderr if not x.startswith( "[sam_header_read2]" ) ]
+ stderr = [ x for x in stderr \
+ if not x.startswith( "[sam_header_read2]" ) or \
+ x.startswith("[bam_index_load]") ]
if stderr: raise SamtoolsError( "\n".join( stderr ) )
# call parser for stdout:
globals()[key] = SamtoolsDispatcher(cmd, parser)
# hack to export all the symbols from csamtools
-__all__ = csamtools.__all__ + [ "SamtoolsError", "SamtoolsDispatcher" ] + list(SAMTOOLS_DISPATCH) +\
+__all__ = csamtools.__all__ + \
+ ctabix.__all__ + \
+ [ "SamtoolsError", "SamtoolsDispatcher" ] + list(SAMTOOLS_DISPATCH) +\
["Pileup",]
+from version import __version__, __samtools_version__