|
1 | | -""" |
2 | | -
|
3 | | -QuickEd - A high-performance exact sequence alignment based on the bound-and-align paradigm |
4 | | -=========================================================================================== |
5 | | -
|
6 | | -QuickEd is a high-performance exact sequence alignment based on the bound-and-align paradigm. |
7 | | -Currently, QuickEd focuses on DNA sequence alignment, using the edit distance (Levenshtein distance) metric. |
8 | | -
|
9 | | - >>> pattern = "ACGT" |
10 | | - >>> text = "ACTT" |
11 | | - >>> aligner = quicked.QuickedAligner() |
12 | | - >>> aligner.align(pattern, text) |
13 | | - >>> score = aligner.getScore() |
14 | | - >>> cigar = aligner.getCigar() |
15 | | -
|
16 | | -QuickEd is actually a C library, and this package is it’s wrapper for Python. |
17 | | -Check out QuickEd's GitHub for more code examples and more details on how QuickEd works. |
18 | | -""" |
19 | 1 | from __future__ import annotations |
20 | 2 | import typing |
21 | 3 | __all__ = ['QuickedAlgo', 'QuickedAligner', 'QuickedException'] |
22 | 4 | class QuickedAlgo: |
23 | 5 | """ |
24 | | -
|
25 | 6 | QuickedAlgo |
26 | 7 | =========== |
27 | 8 |
|
28 | | - Enumeration of alignment algorithms |
| 9 | + Enumeration of alignment algorithms. |
29 | 10 |
|
30 | | - Members: |
31 | | - QUICKED : QuickEd algorithm |
32 | | - WINDOWED : WindowEd algorithm |
33 | | - BANDED : BandEd algorithm |
34 | | - HIRSCHBERG : Hirschberg algorithm |
| 11 | + Attributes: |
| 12 | + QUICKED (QuickedAlgo): QuickEd algorithm. |
| 13 | + WINDOWED (QuickedAlgo): WindowEd algorithm. |
| 14 | + BANDED (QuickedAlgo): BandEd algorithm. |
| 15 | + HIRSCHBERG (QuickedAlgo): Hirschberg algorithm. |
35 | 16 | """ |
36 | 17 | BANDED: typing.ClassVar[QuickedAlgo] # value = <QuickedAlgo.BANDED: 2> |
37 | 18 | HIRSCHBERG: typing.ClassVar[QuickedAlgo] # value = <QuickedAlgo.HIRSCHBERG: 3> |
38 | 19 | QUICKED: typing.ClassVar[QuickedAlgo] # value = <QuickedAlgo.QUICKED: 0> |
39 | 20 | WINDOWED: typing.ClassVar[QuickedAlgo] # value = <QuickedAlgo.WINDOWED: 1> |
40 | 21 | __members__: typing.ClassVar[dict[str, QuickedAlgo]] # value = {'QUICKED': <QuickedAlgo.QUICKED: 0>, 'WINDOWED': <QuickedAlgo.WINDOWED: 1>, 'BANDED': <QuickedAlgo.BANDED: 2>, 'HIRSCHBERG': <QuickedAlgo.HIRSCHBERG: 3>} |
41 | | - def __eq__(self, other: typing.Any) -> bool: |
42 | | - ... |
43 | | - def __getstate__(self) -> int: |
44 | | - ... |
45 | | - def __hash__(self) -> int: |
46 | | - ... |
47 | | - def __index__(self) -> int: |
48 | | - ... |
49 | | - def __init__(self, value: int) -> None: |
50 | | - ... |
51 | | - def __int__(self) -> int: |
52 | | - ... |
53 | | - def __ne__(self, other: typing.Any) -> bool: |
54 | | - ... |
55 | | - def __repr__(self) -> str: |
56 | | - ... |
57 | | - def __setstate__(self, state: int) -> None: |
58 | | - ... |
59 | | - def __str__(self) -> str: |
60 | | - ... |
61 | | - @property |
62 | | - def name(self) -> str: |
63 | | - ... |
64 | | - @property |
65 | | - def value(self) -> int: |
66 | | - ... |
| 22 | + |
67 | 23 | class QuickedAligner: |
68 | 24 | """ |
69 | | -
|
70 | 25 | QuickedAligner |
71 | 26 | ============== |
72 | 27 |
|
@@ -120,5 +75,6 @@ class QuickedAligner: |
120 | 75 | """ |
121 | 76 | Sets the window size for WindowEd alignment |
122 | 77 | """ |
| 78 | + |
123 | 79 | class QuickedException(Exception): |
124 | 80 | pass |
0 commit comments