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

Can't easily save BoneJ results from table #129

Closed
mdoube opened this issue Aug 17, 2018 · 8 comments
Closed

Can't easily save BoneJ results from table #129

mdoube opened this issue Aug 17, 2018 · 8 comments
Assignees

Comments

@mdoube
Copy link
Member

mdoube commented Aug 17, 2018

BoneJ2 results are stored in a SharedTable called "BoneJ results" and displayed to the user (or not, if running headless).

There appears to be no programmatic way to save the results - commands from the File menu have no effect, and there is no 'save' method in the parent Table class.

It is possible to copy paste via the UI into a spreadsheet like LibreOffice Calc or into a text editor.

Users need a way to save table data via UI and scripts.

@imagejan
Copy link
Contributor

FYI, the net.imagej.table.* classes will soon be deprecated and replaced by org.scijava.table.* from scijava-table. Except for the package naming and dependencies, the API is mostly unchanged. See imagej/imagej-common#78 for details.

Together with this move, we also moved the IO component to scijava-plugins-io-table, see also scijava/scijava-plugins-io-table#3.

There are plans to integrate some UI in the table display to allow saving of tables: imagej/imagej-common#75

If you're missing any functionality, or consider some parts of SharedTable etc. worth being moved into the respective SciJava component, I'd be happy to know and accept PRs :)

@mdoube mdoube self-assigned this Aug 17, 2018
@mdoube
Copy link
Member Author

mdoube commented Aug 17, 2018

OK, I will have a go at reconfiguring Maven to use scijava-table

@rimadoma
Copy link
Contributor

rimadoma commented Aug 20, 2018

Copy-pasting is possible from the table in the UI (click in the table, and ctrl-a, ctrl-c), and @alessandrofelder and I have done that while testing results from Intertrabecular angle

@mdoube Thanks for labelling the issue!

@tristan05
Copy link

Hello -

I am using boneJ2 via the ImageJ-Matlab interface. I would like to get numerical results from the "BoneJ results" table back to Matlab, but it does not appear as though the results window is treated as a table in Fiji. Is there a programmatic workaround to automatically store numerical results?
By the way, copy and paste of the results does not work when boneJ2 is being run via Matlab.
Many thanks,
Tristan

@mdoube
Copy link
Member Author

mdoube commented Sep 4, 2019

@tristan05 please make a forum post requesting assistance with this https://forum.image.sc/
In the meantime take a look at BoneJ2's SharedTable API, in particular SharedTable.getTable(), which returns an org.scijava.table.Table object, that might be amenable to parsing values from.
Programmatic access to BoneJ2 results might also be better using the APIs of the classes you are interested in, rather than via the table. (But I am not sure if that is possible from Matlab - hence the recommendation to make a forum post).

@mdoube
Copy link
Member Author

mdoube commented Apr 30, 2020

There is a workaround mentioned here to export tables:
https://forum.image.sc/t/accessing-bonej2-results-table-via-imagej-matlab/29252/5
Need to get the snapshots finished off and included in the user release.

@imagejan
Copy link
Contributor

imagejan commented Apr 30, 2020

All components are released and pinned in the latest pom-scijava.

<scijava-plugins-io-table.version>0.2.0</scijava-plugins-io-table.version>

<scijava-table.version>0.5.0</scijava-table.version>

No need to pin to any SNAPSHOT versions. With the next big round of Fiji updates (by @ctrueden) these will be available from the Java-8 update site.

(see also scijava/scijava-table#9)

@mdoube
Copy link
Member Author

mdoube commented Feb 27, 2021

This is now fixed by the user command _File > Export > Table ... _

@mdoube mdoube closed this as completed Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants