#NEWLINE# def summary( args ) : #NEWLINE# #INDENT# '\n    %prog summary cdhit.clstr\n\n    Parse cdhit.clstr file to get distribution of cluster sizes.\n    ' #NEWLINE# from jcvi.graphics.histogram import loghistogram #NEWLINE# p = OptionParser ( summary . __doc__ ) #NEWLINE# ( opts , args ) = p . parse_args ( args ) #NEWLINE# if ( len ( p ) != 1 ) : #NEWLINE# #INDENT# sys . exit ( ( not p . print_help ( ) ) ) #NEWLINE# #UNINDENT# ( clstrfile , ) = args #NEWLINE# cf = ClstrFile ( clstrfile ) #NEWLINE# data = list ( cf . iter_sizes ( ) ) #NEWLINE# loghistogram ( data , summary = True )