Open tischi opened 5 months ago
I ran the segmentation and morphometry on a small crop of your data, which resulted in this folder with files: test.zip
Then in MoBIE, I could open them with
OpenTableCommand command = new OpenTableCommand();
command.root = new File("/Users/tischer/Desktop/microglia-data/test");
command.table = new File("/Users/tischer/Desktop/microglia-data/test/test-crop-8bit-ds2.csv");
command.images = "Path_Intensities=Signal";
command.labels = "Path_LabelMasks=Segmentation";
command.removeSpatialCalibration = true;
command.run();
Can you reproduce this?
No it does not work with the data you provided either: In the Log I get
Opening data from table: C:\Users\mambroset\Desktop\test\test-crop-8bit-ds2.csv [WARNING] Found duplicate column names, e.g.: 9.219544457292887 [WARNING] Trying now to open the table assuming that there are two header rows...
And in the Console:
[ERROR] Command errored: Open Table...
java.lang.ArrayIndexOutOfBoundsException: 1
at org.embl.mobie.lib.table.saw.TableOpener.dealWithTwoHeaderRowsIfNeeded(TableOpener.java:250)
at org.embl.mobie.lib.table.saw.TableOpener.openDelimitedTextFile(TableOpener.java:220)
at org.embl.mobie.lib.table.saw.TableOpener.openDelimitedTextFile(TableOpener.java:274)
at org.embl.mobie.lib.SourcesFromTableCreator.
I'm wondering if it has to do with the way it recognizes the headers in a csv table but I have no clue where to look to fix it! Is it possible that it's a weird difference between OSs?
Yes, it is possible that the OS plays a role, in which case this is also difficult to debug for me, because I do not have access to a Windows computer.
Could you do me a favour and try whether it also does not work with the MoBIE-beta update site? This update site contains a newer version of MoBIE....
However, it indeed feels more like an OS issue, it seems like your computer does not recognise the line breaks in the CSV, that's why it considers 9.219544457292887
a column header even though that is already part of the normal table rows; super weird though...sorry, also a bit speechless right now...
Same behavior with MoBIE-beta! I have no clue what could be wrong...
I am using the Java tablesaw library to open the tables. Seems like other people had similar issues before.
I asked also for us: https://github.com/jtablesaw/tablesaw/issues/1255
Thanks for the dedication! I confirm that a simple workaround for now is to open and save the csv tables before opening them with MoBIE! Doing so in Fiji works perfectly fine so it's easily scriptable :).
Thanks for finding this out! This is so weird 🤯
@mambroset could you please share here with me the table after re-saving from Fiji?
https://forum.image.sc/t/microglia-morphometry-fiji-plugin-parameters-cell-size-not-working/95045/4