Example #1
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.RangeOp(name = "Range",
                                 channel = "Y2-A",
                                 low = 1000,
                                 high = 10000)
Example #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])
        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.RangeOp(name="Range",
                                 channel="Y2-A",
                                 low=0.4,
                                 high=0.8)
Example #3
0
                                           useblit=True)
        else:
            self._span = None

    def _onselect(self, xmin, xmax):
        """Update selection traits"""
        self.op.low = xmin
        self.op.high = xmax


util.expand_class_attributes(RangeSelection)
util.expand_method_parameters(RangeSelection, RangeSelection.plot)

if __name__ == '__main__':
    import cytoflow as flow
    tube1 = flow.Tube(file='../../cytoflow/tests/data/Plate01/RFP_Well_A3.fcs',
                      conditions={"Dox": 10.0})

    tube2 = flow.Tube(file='../../cytoflow/tests/data/Plate01/CFP_Well_A4.fcs',
                      conditions={"Dox": 1.0})

    ex = flow.ImportOp(conditions={"Dox": "float"}, tubes=[tube1, tube2])

    r = flow.RangeOp(channel='Y2-A')
    rv = r.default_view(scale="logicle")

    plt.ioff()
    rv.plot(ex)
    rv.interactive = True
    plt.show()
Example #4
0
 def setUp(self):
     super().setUp()
     self.gate = flow.RangeOp(name="Range",
                              channel="Y2-A",
                              low=1000,
                              high=10000)