Skip to content

Instantly share code, notes, and snippets.

@joshmoore
joshmoore / tops.ipynb
Created February 2, 2016 16:52
IDR Top tag counts
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joshmoore
joshmoore / cmpo.ipynb
Last active February 2, 2016 15:33
IDR CMPO counts
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joshmoore
joshmoore / gene_identifier.ipynb
Last active February 2, 2016 15:26
IDR Gene Identifier counts
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joshmoore
joshmoore / script.sh
Last active August 29, 2015 14:22
docker/postgres replication
#!/bin/bash
# https://groups.google.com/forum/#!topic/docker-user/ysAx3_oP8zI
set -e
set -u
set -x
PGMASTER=testmaster
PGSLAVE=testslave
#!/bin/bash
set -e
set -u
FILE=$1
shift;
# Define environement variables
HOST=${HOST:-localhost}
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Glencoe Software, Inc.
# All rights reserved.
import time
import tempfile
import os
@joshmoore
joshmoore / w.py
Last active March 13, 2024 12:49
Tile Writing
from omero.gateway import *
from omero.model import *
from omero.rtypes import *
from omero.util.tiles import *
from numpy import fromfunction
user = '2448'
pw = 'ome'
host = 'localhost'
@joshmoore
joshmoore / repo_test.py
Last active August 29, 2015 14:01
Repo test for PR 2448
from uuid import uuid4 as UUID
import tempfile
import pytest
import time
import sys
import os
libdir = os.path.abspath("dist/lib/python")
sys.path.insert(0, libdir)
assert "ICE_CONFIG" not in os.environ
@joshmoore
joshmoore / permissions.md
Last active August 29, 2015 13:58
OMERO Permissions

In-use

  • rw---- : private group (admin can read)
  • rwr--- : collab. read-only
  • rwra-- : collab. read-annotate

Currently proposed

  • r----- : and
@joshmoore
joshmoore / makeUsers.py
Last active December 27, 2015 22:59 — forked from ximenesuk/makeUsers.py
from omero.gateway import BlitzGateway
import omero
from omero.rtypes import rstring
from omero_model_ProjectI import ProjectI
from omero_model_DatasetI import DatasetI
from omero_model_ProjectDatasetLinkI import ProjectDatasetLinkI
from omero_model_ExperimenterI import ExperimenterI
from omero_model_ExperimenterGroupI import ExperimenterGroupI
from omero_model_PermissionsI import PermissionsI
from omero_model_TagAnnotationI import TagAnnotationI