Skip to content

Instantly share code, notes, and snippets.

@sbesson
Last active December 22, 2015 19:58
Show Gist options
  • Save sbesson/6522798 to your computer and use it in GitHub Desktop.
Save sbesson/6522798 to your computer and use it in GitHub Desktop.
A set of files to test the new OMERO.cli tag plugin
[{
"name" : "Foo001",
"desc" : "A foo was fooed when the food was few.",
"set" : [{
"name" : "Foo001_Sub1",
"desc" : "Substandard substitutes with stubbed tubs."
}, {
"name" : "Foo001_Sub2",
"desc" : "Strained strange trains stray starkly."
}, {
"name" : "Foo001_Sub3",
"desc" : "Two towed to too tooled towels."
}]
},
{
"name" : "Boo001",
"desc" : "A foo was fooed when the food was few.",
"set" : [{
"name" : "Boo001_Sub1",
"desc" : "Substandard substitutes with stubbed tubs."
}, {
"name" : "Boo001_Sub2",
"desc" : "Strained strange trains stray starkly."
}, {
"name" : "Boo001_Sub3",
"desc" : "Two towed to too tooled towels."
}]
}]
tag -h
tag list -h
tag list
tag listsets -h
tag listsets
# Test tag creation
tag create -h
tag create --name tag1 --desc 'tag1'
tag create --name tag2 --desc 'tag2'
tag createset -h
tag createset --tag 1 --name tagset1 --desc 'tagset1'
# Test created tags
tag list
tag listsets
# Import image and create image-tag links
import test.fake
tag link Image:1 1
tag link Image:1 2
tag link Image:1 3
# Import new tags from a JSON file
tag load fake_tags.json
tag list
rm -rf /OMERO/*
dropdb omero
createdb -O omero omero
bin/omero db script -f OMERO.sql "" "" ome
createlang plpgsql omero || echo "Database already ready?"
psql -U omero -h localhost omero < OMERO.sql
bin/omero admin restart
bin/omero login -s localhost -u root -w ome
bin/omero load test_tag_plugin
bin/omero logout
bin/omero admin stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment