File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import itertools
66import types
77
8- from Bio .Seq import Seq
9- from Bio .SeqFeature import SeqFeature
10-
11- from collections import deque
12-
138# Register generator type in jmespath
149jmespath .functions .TYPES_MAP ['generator' ] = 'array'
1510jmespath .functions .REVERSE_TYPES_MAP ['array' ] += ('generator' ,)
2015jmespath .functions .REVERSE_TYPES_MAP ['Seq' ] = ('Seq' ,)
2116jmespath .functions .REVERSE_TYPES_MAP ['SeqFeature' ] = ('SeqFeature' ,)
2217jmespath .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'
2322jmespath .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' ,)
2427
2528# this implementation includes https://github.com/jmespath/jmespath.site/pull/6
2629# and https://github.com/jmespath/jmespath.py/issues/159
You can’t perform that action at this time.
0 commit comments