Skip to content

Commit a63775e

Browse files
author
Nolan Woods
committed
Fix creation2 test
1 parent 6d5acb7 commit a63775e

File tree

2 files changed

+84656
-5
lines changed

2 files changed

+84656
-5
lines changed

biopython_convert/JMESPathGen.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
import itertools
66
import 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
149
jmespath.functions.TYPES_MAP['generator'] = 'array'
1510
jmespath.functions.REVERSE_TYPES_MAP['array'] += ('generator',)
@@ -20,7 +15,15 @@
2015
jmespath.functions.REVERSE_TYPES_MAP['Seq'] = ('Seq',)
2116
jmespath.functions.REVERSE_TYPES_MAP['SeqFeature'] = ('SeqFeature',)
2217
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'
2322
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',)
2427

2528
# this implementation includes https://github.com/jmespath/jmespath.site/pull/6
2629
# and https://github.com/jmespath/jmespath.py/issues/159

0 commit comments

Comments
 (0)