Ejemplo n.º 1
0
    def disconnect(self):
        'disconnect all the stored connection ids'
        self.canvas.mpl_disconnect(self.cid_press)
        self.canvas.mpl_disconnect(self.cid_draw)


def poly_gate(fcm, idxs):
    fig = plt.figure()
    ax = fig.add_subplot(111)
    gate = Gate(fcm, idxs, ax)
    plt.show()
    return gate.gate


if __name__ == '__main__':
    import sys
    sys.path.append('../')
    from fcm import FCSreader

    fcm = FCSreader('../../sample_data/3FITC_4PE_004.fcs').get_FCMdata()

    fig = plt.figure()
    ax = fig.add_subplot(111)
    idxs = [2, 3]
    gate = Gate(fcm, idxs, ax)

    plt.show()
    print fcm.tree.nodes
    print gate.gate
Ejemplo n.º 2
0
 def setUp(self):
     self.fcm = FCSreader('../sample_data/coulter.lmd').get_FCMdata()
Ejemplo n.º 3
0
 def setUp(self):
     self.fcm = FCSreader('../sample_data/3FITC_4PE_004.fcs').get_FCMdata()
Ejemplo n.º 4
0
 def testGetSecondFile(self):
     x = FCSreader('../sample_data/coulter.lmd')
     z = x.get_FCMdata()
     y = x.get_FCMdata()
     self.assertEqual(z.shape, y.shape, 'Failed to load second dataset')
     self.assertNotEqual(z[0, 0], y[0, 0], 'Failed to load second dataset')
Ejemplo n.º 5
0
 def testGetSecondFile(self):
     x = FCSreader('../sample_data/coulter.lmd')
     z = x.get_FCMdata()
     y = x.get_FCMdata()
     self.assertEqual(z.shape, y.shape, 'Failed to load second dataset')
     self.assertNotEqual(z[0,0], y[0,0], 'Failed to load second dataset')