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

gff2json.py doesn't currently accept lists for protein_alias #181

Open
miseminger opened this issue Sep 18, 2024 · 1 comment
Open

gff2json.py doesn't currently accept lists for protein_alias #181

miseminger opened this issue Sep 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@miseminger
Copy link
Collaborator

Issue:

gff2json.py needs adjusting to allow use of new nf-ncov-voc/assets/virus_genomeAnnotation/NC_045512.2/NC_045512.2_key.json with aliases written as lists.

Command:

python gff2json.py --gff_file ~/Desktop/git_temp/nf-ncov-voc/assets/virus_genomeAnnotation/NC_045512.2/NC_045512.2.gff --json_file ../assets/virus_geneCoordinates/NC_045512.2/NC_045512.2_with_aliases.json --alias_file ~/Desktop/git_temp/nf-ncov-voc/assets/virus_genomeAnnotation/NC_045512.2/NC_045512.2_key.json

Error:

Traceback (most recent call last):
  File "gff2json.py", line 201, in <module>
    gff_to_json(gff_file_path, json_file_path, gene_colors, alias_dic)
  File "gff2json.py", line 127, in gff_to_json
    features[feature_dict["protein_alias"]] = feature_dict
TypeError: unhashable type: 'list'

@miseminger miseminger added the bug Something isn't working label Sep 18, 2024
@miseminger
Copy link
Collaborator Author

note: new aliases key is in madeline-1 branch, will be included in pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants