File tree 2 files changed +84656
-5
lines changed
2 files changed +84656
-5
lines changed Original file line number Diff line number Diff line change 5
5
import itertools
6
6
import types
7
7
8
- from Bio .Seq import Seq
9
- from Bio .SeqFeature import SeqFeature
10
-
11
- from collections import deque
12
-
13
8
# Register generator type in jmespath
14
9
jmespath .functions .TYPES_MAP ['generator' ] = 'array'
15
10
jmespath .functions .REVERSE_TYPES_MAP ['array' ] += ('generator' ,)
20
15
jmespath .functions .REVERSE_TYPES_MAP ['Seq' ] = ('Seq' ,)
21
16
jmespath .functions .REVERSE_TYPES_MAP ['SeqFeature' ] = ('SeqFeature' ,)
22
17
jmespath .functions .TYPES_MAP ['ExactPosition' ] = 'number'
18
+ jmespath .functions .TYPES_MAP ['BeforePosition' ] = 'number'
19
+ jmespath .functions .TYPES_MAP ['BetweenPosition' ] = 'number'
20
+ jmespath .functions .TYPES_MAP ['AfterPosition' ] = 'number'
21
+ jmespath .functions .TYPES_MAP ['OneOfPosition' ] = 'number'
23
22
jmespath .functions .REVERSE_TYPES_MAP ['number' ] += ('ExactPosition' ,)
23
+ jmespath .functions .REVERSE_TYPES_MAP ['number' ] += ('BeforePosition' ,)
24
+ jmespath .functions .REVERSE_TYPES_MAP ['number' ] += ('BetweenPosition' ,)
25
+ jmespath .functions .REVERSE_TYPES_MAP ['number' ] += ('AfterPosition' ,)
26
+ jmespath .functions .REVERSE_TYPES_MAP ['number' ] += ('OneOfPosition' ,)
24
27
25
28
# this implementation includes https://github.com/jmespath/jmespath.site/pull/6
26
29
# and https://github.com/jmespath/jmespath.py/issues/159
You can’t perform that action at this time.
0 commit comments