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

Load local GFF3 using new annotation feature format #384

Open
garrettjstevens opened this issue May 7, 2024 · 0 comments
Open

Load local GFF3 using new annotation feature format #384

garrettjstevens opened this issue May 7, 2024 · 0 comments
Assignees

Comments

@garrettjstevens
Copy link
Contributor

Using the branch new_feature_model, update packages/jbrowse-plugin-apollo/src/util/loadAssemblyIntoClient.ts to use the new annotation feature format. The new feature format has been imported in that file, so it will need to be adjusted so the the "feature" created and eventually passed to ref.addFeature(feature) matches the new feature format.

You can compare the new and current feature formats, they are in packages/apollo-mst/src/AnnotationFeature.ts (current) and packages/apollo-mst/src/AnnotationFeatureModel.ts (new), but a few things I'll point out:

  • min and max instead of start and end
  • CDS features are collapsed so that a feature in multiple positions becomes a single feature (no more "discontinuoutLocations", just take the min of the first CDS and the max of the last CDS)
  • No more phase (we will calculate it when needed)
  • "score", if defined, should be added to attributes

You can test this out with the Apollo -> open Local GFF3 file menu. You can use this GFF3:

volvox_canonical_gene.gff3.gz

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