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

Create tests for feature importing #429

Closed
garrettjstevens opened this issue Aug 28, 2024 · 1 comment · Fixed by #441
Closed

Create tests for feature importing #429

garrettjstevens opened this issue Aug 28, 2024 · 1 comment · Fixed by #441
Assignees

Comments

@garrettjstevens
Copy link
Contributor

Create tests to make sure that gff3ToAnnotationFeature gives us consistent results for various types of GFF3 input.

These tests were mentioned in #381, but have now been split off into a different issue.

@garrettjstevens
Copy link
Contributor Author

@dariober I had an idea for comparing features with nested children. Basically it involves converting children from an object to an array, and then using chai's deepEqualExcludingEvery to compare the features excluding _id. Check out 08590d4 in the test_compare_annotation_children branch.

dariober added a commit that referenced this issue Sep 10, 2024
Test `Convert example 3` fails because there should be 4 CDSs in the
converted feature object but current code detects 3

Test `Convert braker gff` fails because the converted feature includes
intron, start_codon, and stop_codon
garrettjstevens pushed a commit that referenced this issue Sep 20, 2024
Test `Convert example 3` fails because there should be 4 CDSs in the
converted feature object but current code detects 3

Test `Convert braker gff` fails because the converted feature includes
intron, start_codon, and stop_codon
@garrettjstevens garrettjstevens linked a pull request Sep 20, 2024 that will close this issue
garrettjstevens added a commit that referenced this issue Sep 21, 2024
* Temp commit

* Use chai to deeply compare annotation features

* Some working tests

* Fix import

* Tests for feature conversion (#429)

Test `Convert example 3` fails because there should be 4 CDSs in the
converted feature object but current code detects 3

Test `Convert braker gff` fails because the converted feature includes
intron, start_codon, and stop_codon

* Fix linter

* Fix CDS overlap calculation

* Ignore more calculated properties on conversion

---------

Co-authored-by: Garrett Stevens <stevens.garrett.j@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants