code: def as_dict( self, key="id" ):
          
          rval = {}
          for motif in self:
              rval[ getattr( motif, key ) ] = motif
          return rval
docs: Return a dictionary containing all remaining motifs, using `key`
          as the dictionary key.