Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
O
OBITools3
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 33
    • Issues 33
    • 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
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • OBITools
  • OBITools3
  • Issues
  • #136

Closed
Open
Opened Sep 08, 2023 by Timothy Divoll@timothy_divoll

StopIteration during obi import - Wolf Tutorial

A group of us are trying to run the wolf tutorial and we all get an error trying to import the sequences into a DMS:

2023-09-08 15:03:44,255 [import : INFO ]  obi import: imports an object (file(s), obiview, taxonomy...) into a DMS
2023-09-08 15:03:44,258 [import : INFO ]  Opened file: wolf_tutorial/wolf_F.fastq
2023-09-08 15:03:44,300 [import : INFO ]  Importing 45276 entries
  72.4 % |####################################|              ] remain : 00:00:0StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/tdivoll/.pyenv/versions/3.8.10/bin/obi", line 62, in <module>
    config[root_config_name]['module'].run(config)
  File "python/obitools3/commands/import.pyx", line 333, in obitools3.commands.import.run
  File "python/obitools3/parsers/fastq.pyx", line 106, in fastqWithQualityIterator
RuntimeError: generator raised StopIteration``` 

I can get the seqs to import if I use the --only flag for one less than the total number of sequences:

2023-09-08 15:04:12,641 [import : INFO ]  obi import: imports an object (file(s), obiview, taxonomy...) into a DMS
2023-09-08 15:04:12,643 [import : INFO ]  Opened file: wolf_tutorial/wolf_F.fastq
2023-09-08 15:04:12,685 [import : INFO ]  Importing 45275 entries
 100.0 % |##################################################/] remain : 00:00:0
2023-09-08 15:04:13,115 [import : INFO ]  Imported 45275 entries
2023-09-08 15:04:13,131 [import : INFO ]  Done.

Could this be a bug? It seems like obi is looking for more sequences once it hits the end and then throws the error. We tested this locally on Mac M1 as well as on our HPC, with python versions 3.9.0 and 3.8.10. Interestingly, we get the same StopIteration error trying to import the wolf ngsfilter into the DMS, but the reference sequences import just fine.

Edited Sep 08, 2023 by Timothy Divoll
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: obitools/obitools3#136