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

convert_augustus_to_gff3.py error #64

Closed
JingXia730 opened this issue Sep 23, 2019 · 6 comments
Closed

convert_augustus_to_gff3.py error #64

JingXia730 opened this issue Sep 23, 2019 · 6 comments
Assignees
Labels

Comments

@JingXia730
Copy link

Hi,

I used the convert_augustus_to_gff3.py with the code python3 convert_augustus_to_gff3.py -i RH88_augustus_draft.gff -o RH88_augustus_draft_converted.gff3

And I got the following error:
Traceback (most recent call last): File "convert_augustus_to_gff3.py", line 179, in <module> main() File "convert_augustus_to_gff3.py", line 135, in main feat_id = gff.column_9_value(cols[8], 'ID') NameError: name 'gff' is not defined

I tried run the script directly ./convert_augustus_to_gff3.py -i RH88_augustus_draft.gff -o RH88_augustus_draft_converted.gff3
but it didn't work.

My python version is python/3.7.0. How can I fix this?

Thanks!!
Jing

@jorvis
Copy link
Owner

jorvis commented Sep 23, 2019

Do you mind compressing and attaching your input file? I don't have any augustus ones currently to test with.

@jorvis jorvis self-assigned this Sep 23, 2019
@jorvis jorvis added the bug label Sep 23, 2019
@JingXia730
Copy link
Author

This is the input file
Test_augustus.gff.gz

@jorvis
Copy link
Owner

jorvis commented Sep 23, 2019

Thank you. And did you install biocode via pip or git checkout?

@JingXia730
Copy link
Author

No, I just directly run this script. Should I install biocode first?

@jorvis
Copy link
Owner

jorvis commented Sep 23, 2019

It's fine to operate from a checkout rather than installing, you just have to modify PYTHONPATH so it knows where to find the modules. From the README:

cd /opt
git clone https://github.com/jorvis/biocode.git

You probably want to add this line to your $HOME/.bashrc file

export PYTHONPATH=/opt/biocode/lib:$PYTHONPATH

@jorvis
Copy link
Owner

jorvis commented Sep 23, 2019

When I did this the conversion ran fine. Attaching result.
test.gff3.gz

@jorvis jorvis closed this as completed Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants