-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable opening of the Microglia data
- Loading branch information
Showing
12 changed files
with
187 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
src/main/java/org/embl/mobie/lib/table/columns/MicrogliaSegmentColumnNames.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/*- | ||
* #%L | ||
* Fiji viewer for MoBIE projects | ||
* %% | ||
* Copyright (C) 2018 - 2023 EMBL | ||
* %% | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright notice, | ||
* this list of conditions and the following disclaimer in the documentation | ||
* and/or other materials provided with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE | ||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
* #L% | ||
*/ | ||
package org.embl.mobie.lib.table.columns; | ||
|
||
import java.util.Collection; | ||
|
||
/** | ||
* https://github.com/embl-cba/microglia-morphometry/tree/main#features | ||
* | ||
*/ | ||
public class MicrogliaSegmentColumnNames implements SegmentColumnNames | ||
{ | ||
private static final String NONE = "None"; | ||
private static final String LABEL_ID = "Object_Label"; | ||
private static final String[] ANCHOR = { "Centroid_X_Pixel", "Centroid_Y_Pixel", "Centroid_Z_Pixel" }; | ||
private static final String[] BB_MIN = { NONE, NONE, NONE }; | ||
private static final String[] BB_MAX = { NONE, NONE, NONE }; | ||
private static final String TIMEPOINT = "Centroid_Time_Frames"; | ||
|
||
@Override | ||
public String labelImageColumn() | ||
{ | ||
return NONE; | ||
} | ||
|
||
@Override | ||
public String labelIdColumn() | ||
{ | ||
return LABEL_ID; | ||
} | ||
|
||
@Override | ||
public String timePointColumn() | ||
{ | ||
return TIMEPOINT; | ||
} | ||
|
||
@Override | ||
public String[] anchorColumns() | ||
{ | ||
return ANCHOR; | ||
} | ||
|
||
@Override | ||
public String[] bbMinColumns() | ||
{ | ||
return BB_MIN; | ||
} | ||
|
||
@Override | ||
public String[] bbMaxColumns() | ||
{ | ||
return BB_MAX; | ||
} | ||
|
||
public static boolean matches( Collection< String > columns ) | ||
{ | ||
return columns.contains( LABEL_ID ); | ||
} | ||
|
||
@Override | ||
public boolean timePointsAreOneBased() { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package projects; | ||
|
||
import net.imagej.ImageJ; | ||
import org.embl.mobie.MoBIE; | ||
import org.embl.mobie.command.open.OpenTableCommand; | ||
|
||
import java.io.File; | ||
|
||
public class OpenVeronicaMicroglia | ||
{ | ||
public static void main( String[] args ) | ||
{ | ||
new ImageJ().ui().showUI(); | ||
final OpenTableCommand command = new OpenTableCommand(); | ||
command.root = new File( "/Users/tischer/Desktop/veronica" ); | ||
command.table = new File( "/Users/tischer/Desktop/veronica/Intensities c3 pup4 lps.csv" ); | ||
command.images = "Path_Intensities=Signal"; | ||
command.labels = "Path_LabelMasks=Segmentations,Path_Skeletons=Skeletons,Path_Annotations=Annotations"; | ||
command.removeSpatialCalibration = false; | ||
command.run(); | ||
} | ||
} |
@tischi If you use scijava scripts for deployment via CI, you should never manually set a release version, but let
release-version.sh
do it.