File: PILISIdentification.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 (12 lines) | stat: -rw-r--r-- 454 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12



    def setModel(self, PILISModel model):
        self.inst.get().setModel( model.inst.get() )

    def getIdentification(self, dict candidates, PeptideIdentification id_, RichMSSpectrum spectrum):
        cdef libcpp_map[_String, unsigned int] c_dict
        for k,v in candidates.iteritems():
            c_dict[ _String(<char *>k) ] = v
        
        self.inst.get().getIdentification(c_dict, deref(id_.inst.get()), deref(spectrum.inst.get()) )