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 #70

Open
tjcu408 opened this issue Jul 1, 2024 · 0 comments
Open

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

tjcu408 opened this issue Jul 1, 2024 · 0 comments

Comments

@tjcu408
Copy link

tjcu408 commented Jul 1, 2024

There is an issue when I run PhiSpy on *.gbk files obtained by Prokka, I don't know why.

$ PhiSpy.py -o outfile *.gbk
error message:
Traceback (most recent call last):
File "/home/meta/miniconda3/envs/bacteria/lib/python3.9/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 "/home/meta/miniconda3/envs/bacteria/bin/PhiSpy.py", line 10, in
sys.exit(run())
File "/home/meta/miniconda3/envs/bacteria/lib/python3.9/site-packages/PhiSpyModules/main.py", line 122, in run
main(sys.argv)
File "/home/meta/miniconda3/envs/bacteria/lib/python3.9/site-packages/PhiSpyModules/main.py", line 44, in main
args_parser.record = PhiSpyModules.SeqioFilter(filter(lambda x: len(x.seq) > args_parser.min_contig_size, SeqIO.parse(handle, "genbank")))
File "/home/meta/miniconda3/envs/bacteria/lib/python3.9/site-packages/PhiSpyModules/seqio_filter.py", line 33, in init
for n, item in enumerate(content):
File "/home/meta/miniconda3/envs/bacteria/lib/python3.9/site-packages/Bio/SeqIO/Interfaces.py", line 72, in next
return next(self.records)
File "/home/meta/miniconda3/envs/bacteria/lib/python3.9/site-packages/Bio/GenBank/Scanner.py", line 516, in parse_records
record = self.parse(handle, do_features)
File "/home/meta/miniconda3/envs/bacteria/lib/python3.9/site-packages/Bio/GenBank/Scanner.py", line 499, in parse
if self.feed(handle, consumer, do_features):
File "/home/meta/miniconda3/envs/bacteria/lib/python3.9/site-packages/Bio/GenBank/Scanner.py", line 465, in feed
self._feed_first_line(consumer, self.line)
File "/home/meta/miniconda3/envs/bacteria/lib/python3.9/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 1 398700 bp DNA linear 25-6月-2024

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

1 participant