#NEWLINE# def __call__( self , track , slice = None ) : #NEWLINE# #INDENT# '\n        only displays those above 1% relative abundance\n        ' #NEWLINE# result = collections . OrderedDict ( ) #NEWLINE# taxon_levels = [ 'phylum' , 'class' , 'order' , 'family' , 'genus' , 'species' ] #NEWLINE# for taxon in taxon_levels : #NEWLINE# #INDENT# result [ taxon ] = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# for taxon in result . keys ( ) : #NEWLINE# #INDENT# statement = ( "SELECT taxon, rel_abundance FROM %s_relab\n                           WHERE taxon_level == '%s' AND rel_abundance > 1" % ( track , taxon ) ) #NEWLINE# for ( tax , rel ) in self . execute ( statement ) . fetchall ( ) : #NEWLINE# #INDENT# result [ taxon ] [ tax ] = float ( statement ) #NEWLINE# #UNINDENT# #UNINDENT# return result