from ctabix import *
import csamtools
import ctabix
+from cvcf import *
+import cvcf
import Pileup
import sys
import os
self.parsers = parsers
self.stderr = []
- def __call__(self,*args, **kwargs):
- '''execute the samtools command
+ def __call__(self, *args, **kwargs):
+ '''execute a samtools command
'''
retval, stderr, stdout = csamtools._samtools_dispatch( self.dispatch, args )
if retval: raise SamtoolsError( "\n".join( stderr ) )
# 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]" ) or \
- x.startswith("[bam_index_load]") or \
- x.startswith("[bam_sort_core]") or \
- x.startswith("[samopen] SAM header is present")
+ if not (x.startswith( "[sam_header_read2]" ) or \
+ x.startswith("[bam_index_load]") or \
+ x.startswith("[bam_sort_core]") or \
+ x.startswith("[samopen] SAM header is present") )
]
if stderr: raise SamtoolsError( "\n".join( stderr ) )
globals()[key] = SamtoolsDispatcher(cmd, parser)
# hack to export all the symbols from csamtools
-__all__ = csamtools.__all__ + \
+__all__ = \
+ csamtools.__all__ + \
ctabix.__all__ + \
+ cvcf.__all__ +\
[ "SamtoolsError", "SamtoolsDispatcher" ] + list(SAMTOOLS_DISPATCH) +\
- ["Pileup",]
+ ["Pileup" ]
from version import __version__, __samtools_version__