Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OBITools3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
21
Issues
21
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OBITools
OBITools3
Commits
4ddd1a1c
Commit
4ddd1a1c
authored
Feb 12, 2019
by
Celine Mercier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
embl iterator: only option on embl directories now works as intended
parent
30153105
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
python/obitools3/parsers/embl.pyx
python/obitools3/parsers/embl.pyx
+10
-3
No files found.
python/obitools3/parsers/embl.pyx
100644 → 100755
View file @
4ddd1a1c
...
...
@@ -120,7 +120,7 @@ def emblIterator_file(lineiterator,
while
True
:
if
ionly
>=
0
and
read
>=
ionly
:
if
ionly
>=
0
and
read
>=
ionly
-
1
:
break
while
skipped
<
skip
:
...
...
@@ -160,7 +160,6 @@ def emblIterator_file(lineiterator,
DONECOUNT
+=
1
yield
seq
read
+=
1
yield
seq
...
...
@@ -175,10 +174,18 @@ def emblIterator_dir(dir_path,
int
buffersize
=
100000000
):
path
=
dir_path
read
=
0
for
filename
in
glob
.
glob
(
os
.
path
.
join
(
path
,
b
'*.dat*'
)):
if
read
==
only
:
return
f
=
uopen
(
filename
)
for
seq
in
emblIterator_file
(
f
,
skip
=
skip
,
only
=
only
,
buffersize
=
buffersize
):
if
only
is
not
None
:
only_f
=
only
-
read
else
:
only_f
=
None
for
seq
in
emblIterator_file
(
f
,
skip
=
skip
,
only
=
only_f
,
buffersize
=
buffersize
):
yield
seq
read
+=
1
def
emblIterator
(
obj
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment