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

Migrate to Nextclade v3 #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Migrate to Nextclade v3 #7

wants to merge 2 commits into from

Conversation

j23414
Copy link
Contributor

@j23414 j23414 commented Oct 25, 2024

Description of proposed changes

This PR directly addresses issue and items listed in #4

Related issue(s)

Checklist

  • Checks pass

@j23414 j23414 linked an issue Oct 25, 2024 that may be closed by this pull request
6 tasks
Copy link

@joverlee521 joverlee521 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on these changes @j23414 🌟

NC_002728.1 RefSeq gene 8943 10751 . + 0 ID=cds-NP_112027.1;Parent=gene-Nvgp5;Dbxref=GenBank:NP_112027.1,GeneID:920955;Name=NP_112027.1;gbkey=CDS;gene=G;locus_tag=Nvgp5;product=attachment glycoprotein;protein_id=NP_112027.1
NC_002728.1 RefSeq gene 11412 18146 . + 0 ID=cds-NP_112028.1;Parent=gene-Nvgp6;Dbxref=GenBank:NP_112028.1,GeneID:920950;Name=NP_112028.1;gbkey=CDS;gene=L;locus_tag=Nvgp6;product=polymerase;protein_id=NP_112028.1

NC_002728.1 RefSeq CDS 113 1711 . + 0 ID=cds-NP_112021.1;Dbxref=GenBank:NP_112021.1,GeneID:920951;Name=N;gbkey=CDS;gene=N;locus_tag=Nvgp1;product=nucleocapsid protein;protein_id=NP_112021.1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-blocking

I was confused by the changes here until I noticed you had updated the issue. Small suggestion to put the reason for changes into the commit message as well.

- use CDS instead of gene
- update Name=... annotations to produce the exact translation files needed by augur ancestral
- drop Parent=gene-Nvgp\d; annotations due to errors about not finding the parent, and since this annotation is not relevant for the output files

Separately, based on Nextclade docs, I might just remove the Name annotation.

Note: For historical reasons, Nextclade uses gene name when it really means CDS name. The “gene name” is taken from the CDS’s first attribute found in the following list: Gene, gene, gene_name, locus_tag, Name, name, Alias, alias, standard_name, old-name, product, gene_synonym, gb-synonym, acronym, gb-acronym, protein_id, ID.

It is recommended that the gene attribute is used to specify the gene/CDS name.

- use CDS instead of gene
- drop Name=... annotations to preferentially use gene=... annotations to produce the exact translation files needed by augur ancestral
- drop Parent=gene-Nvgp\d; annotations due to errors about not finding the parent, and since this annotation is not relevant for the output files
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

Successfully merging this pull request may close these issues.

Migrate to Nextclade v3
2 participants