PreibischLab / RS-FISH

Tool for precise, interactive, fast and scalable FISH spot detection
GNU General Public License v2.0
45 stars 14 forks source link

Problem using compressed N5 #25

Open ericvaughn11 opened 10 months ago

ericvaughn11 commented 10 months ago

Hi and thanks for the excellent work on this package. I can run RS-FISH on an uncompressed N5 just fine. However, when trying to run the same on a compressed N5 (using blosc: lz4), I'm immediately hitting this snag:

java.lang.NullPointerException
        at org.janelia.saalfeldlab.n5.CompressionAdapter.deserialize(CompressionAdapter.java:146)
        at org.janelia.saalfeldlab.n5.CompressionAdapter.deserialize(CompressionAdapter.java:57)
        at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
        at com.google.gson.Gson.fromJson(Gson.java:932)
        at com.google.gson.Gson.fromJson(Gson.java:1003)
        at com.google.gson.Gson.fromJson(Gson.java:975)
        at org.janelia.saalfeldlab.n5.GsonAttributesParser.parseAttribute(GsonAttributesParser.java:78)
        at org.janelia.saalfeldlab.n5.AbstractGsonReader.getDatasetAttributes(AbstractGsonReader.java:95)
        at net.preibisch.rsfish.spark.SparkRSFISH.call(SparkRSFISH.java:131)
        at net.preibisch.rsfish.spark.SparkRSFISH.call(SparkRSFISH.java:32)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1853)
        at picocli.CommandLine.access$1100(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2255)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2249)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2213)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2080)
        at picocli.CommandLine.execute(CommandLine.java:1978)
        at net.preibisch.rsfish.spark.SparkRSFISH.main(SparkRSFISH.java:338)

I looked into https://github.com/saalfeldlab/n5-blosc and installed this, along with the necessary https://github.com/Blosc/c-blosc, but am still seeing this issue.

Btw, I realize this is not in the RS-FISH-Spark repository but this repository seems to be more active.

Thanks, Eric

LauraBreimann commented 9 months ago

Hi Eric, thanks for the note!

@mzouink could you have a look at this?

mzouink commented 9 months ago

Hi @ericvaughn11

Can you please help me with this informations:

My preliminary assumption is either because of blosc jni or spark serialization