-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathquicked.pyi
More file actions
80 lines (74 loc) · 2.67 KB
/
quicked.pyi
File metadata and controls
80 lines (74 loc) · 2.67 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
from __future__ import annotations
import typing
__all__ = ['QuickedAlgo', 'QuickedAligner', 'QuickedException']
class QuickedAlgo:
"""
QuickedAlgo
===========
Enumeration of alignment algorithms.
Attributes:
QUICKED (QuickedAlgo): QuickEd algorithm.
WINDOWED (QuickedAlgo): WindowEd algorithm.
BANDED (QuickedAlgo): BandEd algorithm.
HIRSCHBERG (QuickedAlgo): Hirschberg algorithm.
"""
BANDED: typing.ClassVar[QuickedAlgo] # value = <QuickedAlgo.BANDED: 2>
HIRSCHBERG: typing.ClassVar[QuickedAlgo] # value = <QuickedAlgo.HIRSCHBERG: 3>
QUICKED: typing.ClassVar[QuickedAlgo] # value = <QuickedAlgo.QUICKED: 0>
WINDOWED: typing.ClassVar[QuickedAlgo] # value = <QuickedAlgo.WINDOWED: 1>
__members__: typing.ClassVar[dict[str, QuickedAlgo]] # value = {'QUICKED': <QuickedAlgo.QUICKED: 0>, 'WINDOWED': <QuickedAlgo.WINDOWED: 1>, 'BANDED': <QuickedAlgo.BANDED: 2>, 'HIRSCHBERG': <QuickedAlgo.HIRSCHBERG: 3>}
class QuickedAligner:
"""
QuickedAligner
==============
This class defines an aligner object that can be used to perform sequence alignment.
It is initialized with default parameters and can be configured using various setter methods.
"""
def __init__(self) -> None:
...
def align(self, pattern: str, text: str) -> None:
"""
Aligns the provided pattern and text according to the current parameters
"""
def getCigar(self) -> str:
"""
Gets the CIGAR string representing the alignment
"""
def getScore(self) -> int:
"""
Gets the alignment score
"""
def setAlgorithm(self, algorithm: QuickedAlgo) -> None:
"""
Sets the algorithm to be used for alignment
"""
def setBandwidth(self, bandwidth: int) -> None:
"""
Sets the bandwidth for BandEd alignment
"""
def setForceScalar(self, force_scalar: bool) -> None:
"""
Forces scalar computation (i.e., no SIMD instructions)
"""
def setHEWPercentage(self, hew_percentage: int) -> None:
"""
Sets the HEW percentage
"""
def setHEWThreshold(self, hew_threshold: int) -> None:
"""
Sets the HEW threshold
"""
def setOnlyScore(self, only_score: bool) -> None:
"""
Sets whether only the score should be computed
"""
def setOverlapSize(self, overlap_size: int) -> None:
"""
Sets the overlap size for WindowEd alignment
"""
def setWindowSize(self, window_size: int) -> None:
"""
Sets the window size for WindowEd alignment
"""
class QuickedException(Exception):
pass