Related to clustering of protein using SOMclust 
clust = SOMclust.clusters(umat, bmus, som.smap)

#### Problem description

100.00/100: flooding: 2499/2499, 127828.70, (120, 130)

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-43-704ea1f36cf2> in <module>()
----> 1 clust = SOMclust.clusters(umat, bmus, som.smap)

/home/ishrat/SOM/SOMclust.pyc in __init__(self, umatrix, bmus, smap, waterstop)
     39         self.x_offset, self.y_offset, self.mask = (None, None, None)
     40         self.umatrix = umatrix
---> 41         self.umat_cont, self.x_offset, self.y_offset, self.mask, self.waterlevels, self.flooding = self.flood(umatrix, verbose = True, waterstop=waterstop)
     42         self.bmus = bmus
     43         self.som = SOM2.SOM()

/home/ishrat/SOM/SOMclust.pyc in flood(self, inputmat, x_offset, y_offset, mask, verbose, waterstop, startingpoint, floodgate)
    120                             break
    121             if not floodgate:
--> 122                 mask, x_offset, y_offset = arrange(circummat)
    123                 a = matexpand[x_offset]
    124                 out = a[:,y_offset]

/home/ishrat/SOM/SOMclust.pyc in arrange(outmatrix)
     48             (x_offset, y_offset, mask) = (self.x_offset, self.y_offset, self.mask)
     49         def arrange(outmatrix):
---> 50             x_offset = -(outmatrix==0).all(axis=1)
     51             y_offset = -(outmatrix==0).all(axis=0)
     52             mask = outmatrix == 0

TypeError: The numpy boolean negative, the `-` operator, is not supported, use the `~` operator or the logical_not function instead.

​

​