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

AttributeError #12

Closed
deminatanja opened this issue Feb 24, 2023 · 6 comments
Closed

AttributeError #12

deminatanja opened this issue Feb 24, 2023 · 6 comments

Comments

@deminatanja
Copy link

Hi,
following my previous issue from the run with a pretty big input file, I have tried to run a much smaller assembly (the input fa.gz file is about 65 MB), but there is another error this time:

[14:10:19] Executing genomad annotate.
[14:10:19] Creating the ANT01_genomad_output/contigs_annotate directory.
Traceback (most recent call last):
  File "/projappl/project_2006548/genomad/bin/genomad", line 10, in <module>
    sys.exit(cli())
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/rich_click/rich_group.py", line 21, in main
    rv = super().main(*args, standalone_mode=False, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/genomad/cli.py", line 1208, in end_to_end
    ctx.invoke(
  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/genomad/cli.py", line 425, in annotate
    genomad.annotate.main(
  File "/opt/conda/lib/python3.10/site-packages/genomad/modules/annotate.py", line 178, in main
    prodigal_obj.run_parallel_prodigal(threads)
  File "/opt/conda/lib/python3.10/site-packages/genomad/prodigal.py", line 92, in run_parallel_prodigal
    self._append_prodigal_fasta(current_file_path, protid_start)
  File "/opt/conda/lib/python3.10/site-packages/genomad/prodigal.py", line 42, in _append_prodigal_fasta
    match.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Could you please help?
Best,
Tatiana

@apcamargo
Copy link
Owner

Sure! Can you share the file with me so I can try to replicate? This is an issue I've never seem before. Looks like a problem with the prodigal-gv output.

@deminatanja
Copy link
Author

Hi,
My previous problem of having not enough disk space seems to be solved by reserving some local disk space for the temporary directory, the test run is on-going, but it has definitely already run further than the first time when the memory error appeared.
I will also test this smaller dataset with the same approach and let you know how it goes.

@deminatanja
Copy link
Author

Update: the big dataset run completed successfully! The memory reservation for the temp dir has helped.
The smaller one is running.

@apcamargo
Copy link
Owner

Good to know :)

@deminatanja
Copy link
Author

Update2: The smaller run has also finished without troubles. Apparently the AttributeError was also somehow due to the lack of temp dir memory reservation. The issue can be closed :)

@apcamargo
Copy link
Owner

Great! Just let me know in case you have this error again and I'll reopen it :)

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