-
Notifications
You must be signed in to change notification settings - Fork 10
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
Loading function for Anipose data #358
Conversation
Thanks for adding support for fat data. |
for more information, see https://pre-commit.ci
Thanks for opening this PR @vigji, I will take a look at it next week, and also think about the possibility of storing the additional data as arrays in the same dataset. Off the top of my head we might take a 2-step-approach:
Also, following this PR, and before it's released, we'd have to go through our functions (filtering, kinematics, vector utils) and make sure they don't freak out with 3D data. Many of them will be fine, but some of them have not been designed/tested with 3D in mind. But this is a bullet we have to bite anyway sooner or later, and sooner would be much easier. |
Makes perfect sense! I will deal with anipose loading + test kinematic stuff on 3D model here, and leave additional datasets loading for another PR. I could dig out some open source anipose data from the Anipose publication, what is your policy there? Should I just copy it to the GIN storage, ask first, or? |
…unit/movement into anipose-loader # Conflicts: # movement/io/load_poses.py
for more information, see https://pre-commit.ci
With our current infrastructure, the easiest would be to just upload the data to GIN, if the license of the original data allows that. Push access to our GIN repo is restricted, but you should already have the required permission. I'd just make sure to also include the licensing info in the README, like we've done for the MOCA crabe dataset here. Long term, we are also considering to add support for downloading publicly available datasets, as long as they have persistent identifiers and reliable URLs, but this is not implemented yet. When we have that, it may no longer be necessary to mirror everything on GIN. |
for more information, see https://pre-commit.ci
…unit/movement into anipose-loader
for more information, see https://pre-commit.ci
…unit/movement into anipose-loader
for more information, see https://pre-commit.ci
…unit/movement into anipose-loader # Conflicts: # tests/conftest.py
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #358 +/- ##
=======================================
Coverage 99.78% 99.79%
=======================================
Files 14 14
Lines 932 969 +37
=======================================
+ Hits 930 967 +37
Misses 2 2 ☔ View full report in Codecov by Sentry. |
Dedicated validator and testing should have been implemented, let me know what you think and if you think docs should also be updated! Kinematics remain to be tested.
|
Co-authored-by: Niko Sirmpilatze <[email protected]>
…unit/movement into anipose-loader
for more information, see https://pre-commit.ci
…unit/movement into anipose-loader # Conflicts: # movement/io/load_poses.py # tests/test_unit/test_load_poses.py
ok, this should be good now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating @vigji.
I've added a few comments as finishing touches.
This PR is still missing the updates on the docs input/output page.
Co-authored-by: Niko Sirmpilatze <[email protected]>
Co-authored-by: Niko Sirmpilatze <[email protected]>
Co-authored-by: Niko Sirmpilatze <[email protected]>
Co-authored-by: Niko Sirmpilatze <[email protected]>
Right, here we go! There should be everything now. |
Quality Gate passedIssues Measures |
Very good, the anipose url had not been defined, but should be fine now, I've added it to Thanks for doing all the work! |
Description
Adding support to load adipose-triangulated data.
Why is this PR needed?
Currently, adipose-triangulated data cannot be loaded. I love the autocorrect here.
What does this PR do?
Implement simple loading function for anipose-generated data. Anipose saves a csv file with x, y, z, score (confidence) plus more info to a
csv
file. Currently, this basic info is parsed. Additional info that is stored in the file, which could be loaded in principle but would not fit any ofmovement
boxes atm:References
#124
How has this PR been tested?
So far just very coarsely tested on some anipose data I am generating. I am no proficient anipose user, and I'm happy to collect example data and feedback from anyone. Will try to dig into example data from the anipose repo to make sure everything can be loaded from there.
Is this a breaking change?
No
Does this PR require an update to the documentation?
Maybe once done
Checklist: