-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from gsergeant/mosaic_reader
Reader for Mosaic files
- Loading branch information
Showing
12 changed files
with
741 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## Mosaic example | ||
|
||
The example in the *Mosaic* directory was generated using the [MosaicSuite plugin](http://mosaic.mpi-cbg.de/?q=downloads/imageJ) for ImageJ/Fiji. | ||
|
||
Version used: `MosaicSuite-1.0.8`. | ||
|
||
### Example 1 | ||
The dataset used in this example is the same used in the [TrackMate](../TrackMate) and other examples. The images were both detected and tracked using the Mosaic Particle Tracker tool. | ||
|
||
#### The test dataset | ||
The test dataset used can be uploaded in ImageJ: | ||
|
||
`File ▶ Open Samples ▶ Tracks for TrackMate (807K)` | ||
|
||
You can then open and run the Mosaic plugin selecting: | ||
|
||
`Plugins ▶ Mosaic ▶ Particle Tracker 2D/3D ` | ||
|
||
Alternatively, you can download the data from this [link](http://fiji.sc/samples/FakeTracks.tif). | ||
|
||
#### Settings to reproduce the two examples | ||
To reproduce the example in this directory, you need to choose the following settings | ||
|
||
- Detection settings: | ||
- Kernel radius: 5 | ||
- Cutoff radius: 0.01 | ||
- Percentile: 0.4 | ||
- Tracking settings: | ||
- Displacement: 10.0 | ||
- Linkrange: 3 | ||
|
||
Once you run the tracking, you can select **All Trajectories to Table**, which opens an ImageJ table that you can save to disk. | ||
|
||
|
||
#### Running the data_package library | ||
Move to the example directory and run the data package creation script: | ||
|
||
``` | ||
cd examples/Mosaic/example_1 | ||
python ../../../scripts/create_dpkg.py mosaic_tracks.csv | ||
``` |
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 @@ | ||
[TOP_LEVEL_INFO] | ||
author = paola masuzzo | ||
title = A CMSO data package representation of cell tracking data | ||
name = cmso_tracks | ||
author_institute = VIB | ||
author_email = [email protected] | ||
|
||
[TRACKING_DATA] |
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,88 @@ | ||
{ | ||
"author": "paola masuzzo", | ||
"author_email": "[email protected]", | ||
"author_institute": "VIB", | ||
"name": "cmso_tracks", | ||
"resources": [ | ||
{ | ||
"name": "cmso_objects_table", | ||
"path": "objects.csv", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"constraints": { | ||
"unique": true | ||
}, | ||
"description": "", | ||
"format": "default", | ||
"name": "cmso_object_id", | ||
"title": "", | ||
"type": "integer" | ||
}, | ||
{ | ||
"description": "", | ||
"format": "default", | ||
"name": "cmso_frame_id", | ||
"title": "", | ||
"type": "integer" | ||
}, | ||
{ | ||
"description": "", | ||
"format": "default", | ||
"name": "cmso_x_coord", | ||
"title": "", | ||
"type": "number" | ||
}, | ||
{ | ||
"description": "", | ||
"format": "default", | ||
"name": "cmso_y_coord", | ||
"title": "", | ||
"type": "number" | ||
}, | ||
{ | ||
"description": "", | ||
"format": "default", | ||
"name": "cmso_z_coord", | ||
"title": "", | ||
"type": "integer" | ||
} | ||
], | ||
"primaryKey": "cmso_object_id" | ||
} | ||
}, | ||
{ | ||
"name": "cmso_links_table", | ||
"path": "links.csv", | ||
"schema": { | ||
"fields": [ | ||
{ | ||
"description": "", | ||
"format": "default", | ||
"name": "cmso_object_id", | ||
"title": "", | ||
"type": "integer" | ||
}, | ||
{ | ||
"description": "", | ||
"format": "default", | ||
"name": "cmso_link_id", | ||
"title": "", | ||
"type": "integer" | ||
} | ||
], | ||
"foreignKeys": [ | ||
{ | ||
"fields": "cmso_object_id", | ||
"reference": { | ||
"datapackage": "", | ||
"fields": "cmso_object_id", | ||
"resource": "cmso_objects_table" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"title": "A CMSO data package representation of cell tracking data" | ||
} |
Oops, something went wrong.