X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=pysam.git;a=blobdiff_plain;f=pysam%2F__init__.py;fp=pysam%2F__init__.py;h=9f257c210eca878b0f0039b40f724f3482937284;hp=3062753f295cee7d22ba4e86689063905bb01f0a;hb=70e0c1963e5f83b0a6ab2aa139e1a8f30aa25c56;hpb=91f4887d1b19c44d68a2b19f0abee56de3dbb8ea diff --git a/pysam/__init__.py b/pysam/__init__.py index 3062753..9f257c2 100644 --- a/pysam/__init__.py +++ b/pysam/__init__.py @@ -1,4 +1,7 @@ from csamtools import * +from ctabix import * +import csamtools +import ctabix import Pileup import sys import os @@ -50,7 +53,9 @@ class SamtoolsDispatcher(object): # 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: @@ -96,6 +101,9 @@ for key, options in SAMTOOLS_DISPATCH.iteritems(): 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__