-
Notifications
You must be signed in to change notification settings - Fork 1
/
kDataFrameIterator.py
52 lines (38 loc) · 1.05 KB
/
kDataFrameIterator.py
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
class kDataFrameIterator:
"""
Base class for kDataFrame Iterator
"""
def next(self):
"""
Increment the iterator to the next kmer
:return: kDataFrame Iterator pointing to the new kmer position
:rtype: :class:`kProcessor.kDataFrameIterator`
"""
def getKmer(self):
"""
Get the kmer at the current iterator position
:return: Kmer at the current position
:rtype: string
"""
pass
def getHashedKmer(self):
"""
Get the hash value of the kmer at the current iterator position
:return: Kmer's hash value at the current position
:rtype: integer
"""
pass
def getCount(self):
"""
Get the count of the kmer at the current iterator position
:return: kmer count
:rtype: integer
"""
pass
def setCount(self):
"""
Sets the count of the current kmer
:return: True if succeeded, False if failed
:rtype: boolean
"""
pass