File: _freeendgapfm.pyx

package info (click to toggle)
obitools 3.0.1~b26%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,756 kB
  • sloc: ansic: 24,299; python: 657; sh: 27; makefile: 21
file content (18 lines) | stat: -rwxr-xr-x 368 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#cython: language_level=3

'''
Created on 6 Nov. 2009

@author: coissac
'''


cdef class FreeEndGapFullMatch(FreeEndGap):

    cdef double matchScore(self,int h, int v):
        cdef double score
        if iupacMatch(self.hSeq.sequence[h-1],self.vSeq.sequence[v-1]):
            score=self._match
        else:
            score=self._mismatch
        return score