Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Created March 7, 2016 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icaoberg/790727e69a1605db1b76 to your computer and use it in GitHub Desktop.
Save icaoberg/790727e69a1605db1b76 to your computer and use it in GitHub Desktop.
Create a new project and a dataset in OMERO using OMERO Matlab #OMERO.matlab-5.2.2-ice35-b17
addpath( 'OMERO.matlab-5.2.2-ice35-b17' )
server = 'localhost';
port = 4064;
username = 'murphylab';
password = 'murphylab';
client = loadOmero( server, port );
session = client.createSession( username, password );
timeout_in_seconds = 60;
client.enableKeepAlive( timeout_in_seconds );
%lets make a project
project_name = 'My First Project';
project = createProject( session, project_name );
%and a dataset attached to the project
dataset_name = 'Pretty Pictures';
dataset = createDataset( session, dataset_name, project );
%very important to close the session
client.closeSession()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment