コード例 #1
0
 def setUp(self):
     super().setUp()
     self.gate = flow.PolygonOp(name = "Polygon",
                               xchannel = "V2-A",
                               ychannel = "Y2-A",
                               vertices = [(-95.86, 12436.45),
                                           (116.29, 22530.75),
                                           (767.63, 4873.08),
                                           (101.64, 939.38),
                                           (-266.93, 2914.59)])
コード例 #2
0
    def setUp(self):
        self.cwd = os.path.dirname(
            os.path.abspath(__file__)) + "/data/Plate01/"
        tube1 = flow.Tube(file=self.cwd + 'RFP_Well_A3.fcs',
                          conditions={"Dox": 10.0})
        tube2 = flow.Tube(file=self.cwd + 'CFP_Well_A4.fcs',
                          conditions={"Dox": 1.0})
        import_op = flow.ImportOp(conditions={"Dox": "float"},
                                  tubes=[tube1, tube2])
        self.ex = import_op.apply()

        self.gate = flow.PolygonOp(name="Polygon",
                                   xchannel="V2-A",
                                   ychannel="Y2-A",
                                   vertices=[(-95.86, 12436.45),
                                             (116.29, 22530.75),
                                             (767.63, 4873.08),
                                             (101.64, 939.38),
                                             (-266.93, 2914.59)])
コード例 #3
0
    def setUp(self):
        self.cwd = os.path.dirname(
            os.path.abspath(__file__)) + "/data/Plate01/"
        tube1 = flow.Tube(file=self.cwd + 'RFP_Well_A3.fcs',
                          conditions={"Dox": 10.0})
        tube2 = flow.Tube(file=self.cwd + 'CFP_Well_A4.fcs',
                          conditions={"Dox": 1.0})
        import_op = flow.ImportOp(conditions={"Dox": "float"},
                                  tubes=[tube1, tube2])
        ex = import_op.apply()

        # this works so much better on transformed data
        logicle = flow.LogicleTransformOp()
        logicle.name = "Logicle transformation"
        logicle.channels = ['V2-A', 'Y2-A', 'B1-A']
        logicle.estimate(ex)
        self.ex = logicle.apply(ex)

        self.gate = flow.PolygonOp(name="Polygon",
                                   xchannel="V2-A",
                                   ychannel="Y2-A",
                                   vertices=[(0, 0.6), (0.2, 0.8), (0.4, 0.6),
                                             (0.2, 0.4)])