-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This new repository contains a port of the flimj-ops library: https://github.com/flimlib/flimj-ops/
- Loading branch information
Showing
43 changed files
with
4,994 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Copyright (c) 2024, SciJava developers. | ||
All rights reserved. | ||
|
||
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 HOLDER 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. |
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,70 @@ | ||
# SciJava Ops FLIM: A fluorescence lifetime analysis library for SciJava Ops. | ||
|
||
SciJava Ops FLIM is a collection of FLIM analysis ops based on [FLIMLib](https://github.com/flimlib/flimlib). It extends the single-transient fitting functions in FLIMLib to dataset-level fitting ops. Currently supported fitting ops include: RLD, MLA, Global, Phasor, and single-component Bayesian. | ||
|
||
Besides curve fitting, SciJava Ops FLIM also provides a variety of pre-processing options such as pixel binning, intensity thresholding, ROI masking as well as post-processing utility ops for e.g. calculating τ<sub>m</sub> (mean lifetime), A<sub>i</sub>% (fractional contribution) and pseudocoloring the result with LUT. | ||
|
||
# Example usage | ||
Open [test2.sdt](test_files/test2.sdt) in [Fiji](https://fiji.github.io/). Execute in [Script Editor](http://imagej.github.io/Using_the_Script_Editor) as Groovy: | ||
|
||
```groovy | ||
#@ UIService ui | ||
#@ OpEnvironment op | ||
#@ ImgPlus img | ||
// set up parameters | ||
import org.scijava.ops.flim.FitParams | ||
param = new FitParams() | ||
param.transMap = img; // input 3-dimensional (x, y, t) dataset | ||
param.xInc= 0.040 // time difference between bins (ns) | ||
param.ltAxis = 2 // time bins lay along axis #2 | ||
// op call | ||
fittedImg = op.unary("flim.fitLMA").input(param).apply().paramMap | ||
// display each parameter | ||
zImg = op.ternary("transform.hyperSliceView").input(fittedImg, param.ltAxis, 0L).apply() | ||
AImg = op.ternary("transform.hyperSliceView").input(fittedImg, param.ltAxis, 1L).apply() | ||
tauImg = op.ternary("transform.hyperSliceView").input(fittedImg, param.ltAxis, 2L).apply() | ||
ui.show("z", zImg) | ||
ui.show("A", AImg) | ||
ui.show("tau", tauImg) | ||
``` | ||
|
||
After running this script, the output shown below can be seen by first running the script, and then brightness and contrast (Ctrl + Shift + C, select "Set" and bound the contrast to each image's corresponding range below). | ||
|
||
(z in [-1, 1], A in [0, 4], tau in[0, 3]): | ||
|
||
![example output](images/example%20z.png)![example output](images/example%20A.png)![example output](images/example%20tau.png) | ||
|
||
See more examples in [Demo.ipynb](notebooks/Demo.ipynb) and [groovy.md](groovy.md). | ||
|
||
# Using from a Java project | ||
|
||
To depend on SciJava Ops FLIM, copy the following to your `pom.xml`: | ||
|
||
```xml | ||
<properties> | ||
<scijava-ops-flim.version>0-SNAPSHOT</scijava-ops-flim.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.scijava</groupId> | ||
<artifactId>scijava-ops-flim</artifactId> | ||
<version>${scijava-ops-flim.version}</version> | ||
</dependency> | ||
</dependencies> | ||
``` | ||
|
||
# See also | ||
|
||
- [FLIMLib](https://github.com/flimlib/flimlib): Curve fitting library for FLIM | ||
- [Debug tutorial](https://github.com/flimlib/flimlib/wiki/Debugging) | ||
- [FLIMJ Ops](https://github.com/flimlib/flimj-ops): ImageJ Ops for accessing FLIM | ||
|
||
# Citation | ||
|
||
Comming soon... |
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,8 @@ | ||
name: scijava | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- beakerx | ||
- jupyter_contrib_nbextensions | ||
- numpy | ||
- openjdk=11 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.