File: IsobaricChannelExtractor.pyx

package info (click to toggle)
openms 1.11.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 436,688 kB
  • ctags: 150,907
  • sloc: cpp: 387,126; xml: 71,547; python: 7,764; ansic: 2,626; php: 2,499; sql: 737; ruby: 342; sh: 325; makefile: 128
file content (34 lines) | stat: -rw-r--r-- 1,627 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34



    def __init__ItraqEightPlexQuantitationMethod(self, ItraqEightPlexQuantitationMethod this_quant_method):
        self.initialize_from_ptr( this_quant_method.inst.get() )

    def __init__ItraqFourPlexQuantitationMethod(self, ItraqFourPlexQuantitationMethod this_quant_method):
        self.initialize_from_ptr( this_quant_method.inst.get() )

    def __init__TMTSixPlexQuantitationMethod(self, TMTSixPlexQuantitationMethod this_quant_method):
        self.initialize_from_ptr( this_quant_method.inst.get() )

    cdef initialize_from_ptr(self, _IsobaricQuantitationMethod * this_quant_method):
        self.inst = shared_ptr[_IsobaricChannelExtractor](new _IsobaricChannelExtractor(( this_quant_method )))

    def __init__from_self(self, IsobaricChannelExtractor in_0 ):
        assert isinstance(in_0, IsobaricChannelExtractor), 'arg in_0 wrong type'
    
        self.inst = shared_ptr[_IsobaricChannelExtractor](new _IsobaricChannelExtractor((deref(in_0.inst.get()))))

    def __init__(self, input_arg):
        if isinstance(input_arg, IsobaricChannelExtractor):
            self.__init__from_self(input_arg)
        elif isinstance(input_arg, ItraqEightPlexQuantitationMethod):
            self.__init__ItraqEightPlexQuantitationMethod(input_arg)
        elif isinstance(input_arg, ItraqFourPlexQuantitationMethod):
            self.__init__ItraqFourPlexQuantitationMethod(input_arg)
        elif isinstance(input_arg, TMTSixPlexQuantitationMethod):
            self.__init__TMTSixPlexQuantitationMethod(input_arg)
        else:
            raise Exception("Cannot create with input type %s" % type(input_arg))