Last active
December 22, 2015 19:58
-
-
Save sbesson/6522798 to your computer and use it in GitHub Desktop.
A set of files to test the new OMERO.cli tag plugin
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
test.fake |
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
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 |
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
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