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

crowsetta integration #764

Merged
merged 14 commits into from
Jun 21, 2024
Merged

crowsetta integration #764

merged 14 commits into from
Jun 21, 2024

Conversation

sammlapp
Copy link
Collaborator

Adds integration with the crowsetta package (version ^5.0.1)

  • BoxedAnnotations class has .from_crowsetta, .from_crowsetta_bbox, and from_crowsetta_sequence and supports crowsetta.Annotation objects of all three flavors (Annotation object has either .bboxes: list of BBox, or .seq: Sequence, or .seq: list of Sequence)
  • BoxedAnnotations class also has .to_crowsetta and supports creating the same three flavors of crowsetta.Annotation

resovles #749

also adds to_csv and from_csv methods for BoxedAnnotations

can now use BoxedAnnotations() to create object with standard columns in .df and no annotations
provides methods to import crowsetta Annotation, BBox, and Sequence classes (loading as BoxedAnnotations) and to export to Annotation objects, with annotations stored either as .bbox or .sequence.
added to pyproject.toml and also to autodoc_mock_imports to avoid error when building documentation
for crowsetta integration
@sammlapp sammlapp marked this pull request as draft June 26, 2023 19:26
@sammlapp sammlapp marked this pull request as ready for review May 13, 2024 15:46
@sammlapp sammlapp merged commit 2fe1576 into develop Jun 21, 2024
3 checks passed
@sammlapp sammlapp deleted the issue_749_crowsetta branch June 21, 2024 22:09
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.

None yet

1 participant