#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# bases = sum ( self . bases_per_contig . values ( ) ) #NEWLINE# if ( bases . size is None ) : #NEWLINE# #INDENT# return ( '%i\t%i\t%i' % ( len ( self . intervals_per_contig ) , sum ( self . intervals_per_contig . values ( ) ) , bases ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( '%i\t%i\t%i\t%5.2f' % ( len ( self . intervals_per_contig ) , sum ( self . intervals_per_contig . values ( ) ) , sum ( self . bases_per_contig . values ( ) ) , ( ( 100.0 * bases ) / self . size ) ) )