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 omero | |
from omero.gateway import BlitzGateway | |
from omero.rtypes import rint, rstring | |
from skimage import morphology | |
from skimage import measure | |
conn = BlitzGateway('user', 'password', port=4064, host='localhost') | |
conn.connect() |
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 omero | |
from omero.rtypes import rdouble, rint | |
import omero.grid | |
from omero.gateway import BlitzGateway | |
import numpy as np | |
USERNAME = "user" | |
PASSWORD = "password" | |
HOST = "merge-ci-devspace.openmicroscopy.org" | |
PORT = 4064 |
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 re | |
from omero.gateway import BlitzGateway, MapAnnotationWrapper, LongAnnotationWrapper | |
conn = BlitzGateway("user", "pass", port=4064, host="localhost") | |
conn.connect() | |
# Some example chromosome regions we want to annotate Images with... | |
regions = [ | |
"hg19:chr19:15200000-15560000", |
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
from omero.model.enums import UnitsLength | |
import omero | |
from omero.rtypes import rstring | |
from omero.gateway import BlitzGateway | |
conn = BlitzGateway('user', 'password', port=4064, host='localhost') | |
conn.connect() | |
units = [ | |
UnitsLength.PICOMETER, |
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
# coding: utf-8 | |
# ### Please use the following link to try out the OMERO Python language bindings | |
# https://docs.openmicroscopy.org/latest/omero/developers/Python.html | |
# ### Import Packages required to connect to OMERO | |
# In[1]: |
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 omero | |
from omero.gateway import BlitzGateway | |
# See https://www.openmicroscopy.org/community/posting.php?mode=reply&f=6&t=8736 | |
idr_client = omero.client(host="idr.openmicroscopy.org", port=4064) | |
idr_client.createSession('public', 'public') | |
conn = BlitzGateway(client_obj=idr_client) |
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 omero | |
from omero.gateway import BlitzGateway | |
# See https://www.openmicroscopy.org/community/viewtopic.php?f=4&t=8728 | |
conn = BlitzGateway("username", "password", host="localhost", port=4064) | |
conn.connect() | |
# Supports "Project", "Dataset" or "Image" |
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
# See https://www.openmicroscopy.org/community/viewtopic.php?f=4&t=8679 | |
# and https://www.openmicroscopy.org/community/posting.php?mode=reply&f=6&t=8706 | |
import omero | |
from omero.gateway import BlitzGateway | |
from PIL import Image | |
import numpy | |
conn = BlitzGateway("username", "password", host="localhost", port=4064) |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import omero | |
from omero.rtypes import rdouble, rint, rstring, unwrap | |
from omero.gateway import BlitzGateway | |
USERNAME = 'username' | |
PASSWORD = 'password' | |
HOST = 'localhost' |
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 sys | |
import subprocess | |
from path import path | |
import omero.scripts as scripts | |
from omero.gateway import BlitzGateway | |
import omero.util.script_utils as script_utils | |
import omero | |
from omero.rtypes import rint, rlong, rstring, robject, unwrap |