#NEWLINE# def removeObservationsPerc( self , percentile_rowsums = 10 ) : #NEWLINE# #INDENT# 'remove Observations (e.g genes)\n\n        * remove the lowest percentile of rows in the table, sorted\n           by total tags per row\n        ' #NEWLINE# percentile = ( float ( percentile_rowsums ) / 100.0 ) #NEWLINE# sum_counts = self . table . sum ( 1 ) #NEWLINE# take = ( sum_counts >= sum_counts . quantile ( percentile ) ) #NEWLINE# E . info ( ( 'percentile filtering at level %f: keep=%i, discard=%i' % ( percentile_rowsums , sum ( take ) , ( len ( self ) - sum ( take ) ) ) ) ) #NEWLINE# self . table = self . table [ take ]