Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: LOCUS line does not contain - at position 75 in date #23

Open
alexahess opened this issue Aug 15, 2023 · 1 comment
Open

Comments

@alexahess
Copy link

Hello,

I'm currently trying to run DBSCAN-SWA to annotate some assemblies, however, when I try to run itI get the following error with my own data as well as the files supplied in the "test" folder:

Traceback (most recent call last):
  File "/home/miks/mambaforge/envs/dbscan-swa/lib/python3.10/site-packages/Bio/File.py", line 72, in as_handle
    with open(handleish, mode, **kwargs) as fp:
TypeError: expected str, bytes or os.PathLike object, not TextIOWrapper

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/Disk1/projects/programs/DBSCAN-SWA/bin/dbscan-swa.py", line 2810, in <module>
    predict_prophage(strain_id,inputfile_bac,outdir,add_annotation,prefix,diamond_thread_num)
  File "/mnt/Disk1/projects/programs/DBSCAN-SWA/bin/dbscan-swa.py", line 2514, in predict_prophage
    get_bac_protein(inputfile_bac,protein_dir,type,prefix)
  File "/mnt/Disk1/projects/programs/DBSCAN-SWA/bin/dbscan-swa.py", line 1331, in get_bac_protein
    GetFaaSequenc(bac_gb_file,protein_dir,save_prefix)
  File "/mnt/Disk1/projects/programs/DBSCAN-SWA/bin/dbscan-swa.py", line 332, in GetFaaSequenc
    for record in records:
  File "/home/miks/mambaforge/envs/dbscan-swa/lib/python3.10/site-packages/Bio/SeqIO/Interfaces.py", line 72, in __next__
    return next(self.records)
  File "/home/miks/mambaforge/envs/dbscan-swa/lib/python3.10/site-packages/Bio/GenBank/Scanner.py", line 516, in parse_records
    record = self.parse(handle, do_features)
  File "/home/miks/mambaforge/envs/dbscan-swa/lib/python3.10/site-packages/Bio/GenBank/Scanner.py", line 499, in parse
    if self.feed(handle, consumer, do_features):
  File "/home/miks/mambaforge/envs/dbscan-swa/lib/python3.10/site-packages/Bio/GenBank/Scanner.py", line 465, in feed
    self._feed_first_line(consumer, self.line)
  File "/home/miks/mambaforge/envs/dbscan-swa/lib/python3.10/site-packages/Bio/GenBank/Scanner.py", line 1443, in _feed_first_line
    raise ValueError(
ValueError: LOCUS line does not contain - at position 75 in date:
LOCUS       contig_1             2796946 bp    DNA     linear       15-AUG.-2023

Does anyone know what the problem is and how to fix it?

@chengzhongyi8
Copy link

Same error.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants