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: 'Seq' object has no attribute 'defined' #66

Open
ramaniak opened this issue Nov 21, 2023 · 2 comments
Open

AttributeError: 'Seq' object has no attribute 'defined' #66

ramaniak opened this issue Nov 21, 2023 · 2 comments

Comments

@ramaniak
Copy link

ramaniak commented Nov 21, 2023

Hello, I am getting the following error when running the tool on a human sample.
I don't see any prior reference to this and was wondering if you have any advice on how to proceed.

Traceback (most recent call last):
  File "/opt/MitoHiFi/src/mitohifi.py", line 567, in <module>
    main()
  File "/opt/MitoHiFi/src/mitohifi.py", line 492, in main
    plot_annotation.plot_annotation("final_mitogenome.gb", "final_mitogenome.annotation.png")
  File "/opt/MitoHiFi/src/plot_annotation.py", line 38, in plot_annotation
    graphic_record = MyCustomTranslator().translate_record(in_gb)
  File "/usr/local/lib/python3.6/dist-packages/dna_features_viewer/BiopythonTranslator/BiopythonTranslatorBase.py", line 89, in translate_record
    sequence=str(record.seq) if record.seq.defined else None,
AttributeError: 'Seq' object has no attribute 'defined'```
@sbassi
Copy link

sbassi commented Aug 20, 2024

I submitted a patch where I delete the defined attribute

@sbassi
Copy link

sbassi commented Aug 20, 2024

the patch was submited to other repo, because the issue is in another script that is being called from MitoHIFI, but the error is in DnaFeaturesViewer
Here is the patch
Edinburgh-Genome-Foundry/DnaFeaturesViewer#89

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