Code migrated to https://github.com/ome/ecdp2019-publication
This file contains hidden or 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
# | |
git clone https://github.com/snoopycrimecop/bio-formats-build -b east_merge_trigger | |
pushd bio-formats-build | |
git submodule update --init | |
pushd bioformats | |
popd | |
docker build -t bf --build-arg BUILD_IMAGE=gradle:jdk8 . | |
popd | |
git clone https://github.com/snoopycrimecop/omero-build -b west_merge_trigger |
This file contains hidden or 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
import bioformats.omexml as ome | |
import javabridge as jv | |
import bioformats | |
import os | |
import sys | |
import numpy as np | |
# Write file to disk | |
def writeOMETIFF(img_XYCZT, path, type='uint16', verbose=True): |
This file contains hidden or 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
[defaults] | |
# Using Galaxy roles only | |
roles_path = ./vendor |
This file contains hidden or 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
#@UIService uiService | |
#@LogService log | |
# read in and display ImagePlus object(s) | |
from loci.plugins import BF | |
from loci.common import Region | |
from loci.plugins.in import ImporterOptions | |
from loci.plugins.util import LociPrefs | |
from ij import Prefs | |
from loci.formats import ImageReader |
This file contains hidden or 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
west: | |
team: | |
- jburel | |
- will-moore | |
- dgault | |
- manics | |
- hflynn | |
- pwalczysko | |
releases: | |
- name: OMERO 5.4.5 |
This file contains hidden or 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
bfCheckJavaPath; | |
r=bfGetReader(cellh5Path); | |
% Load full image | |
I0 = bfGetPlane(r,1); | |
sizeX = r.getSizeX(); | |
sizeY = r.getSizeY(); | |
% Load image in tiles | |
for n = [2 4 8 16] |
This file contains hidden or 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
import java.io.IOException; | |
import loci.formats.FormatException; | |
import loci.formats.in.CellH5Reader; | |
public class CellH5Test { | |
public static CellH5Reader reader; | |
This file contains hidden or 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
// Legacy mode (default - 5.3.0 behavior) | |
writer = new OMETiffWriter(); | |
writer.setMetadataRetrieve(omexml); | |
// Write TIFFs in strips (no tiling) | |
// Initial tile sizes | |
iniTileSizeX = writer.getTileSizeX(); // returns sizeX | |
iniTileSizeY = writer.getTileSizeY(); // returns sizeY | |
// Set full image tiles |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<OME UUID="urn:uuid:07504f88-7bc3-11e0-b937-2faf67bc00b3" | |
xmlns="http://www.openmicroscopy.org/Schemas/OME/2016-06" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.openmicroscopy.org/Schemas/OME/2016-06 | |
http://www.openmicroscopy.org/Schemas/OME/2016-06/ome.xsd"> | |
<Image ID="Image:0" Name="5D image"> | |
<Pixels DimensionOrder="XYZCT" ID="Pixels:0:0" Type="int8" SizeC="3" SizeT="4" SizeX="128" SizeY="128" SizeZ="5"> | |
<TiffData FirstC="0" FirstT="0" FirstZ="0" IFD="0" PlaneCount="1"> | |
<UUID FileName="plane.ome.tiff">urn:uuid:4978087c-a670-4b12-af53-256c62d8d101</UUID> |