<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Just tried replying, but not sure it worked, Trying again....<div><br></div><div><br></div><div>Hi Graeme,<div><br></div><div> Have a look at some python code we use for auto-populating omero with Projects, Datasets and importing Images.</div><div><a href="https://github.com/ome/omero-setup/blob/master/auto_import.py">https://github.com/ome/omero-setup/blob/master/auto_import.py</a></div><div><br></div><div>This is something we use to set-up a server for testing etc.</div><div><br></div><div>Since you can get the pixels ID from the import process, E.g. see:</div><div><a href="https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/tools/OmeroPy/test/integration/library.py#L161">https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/tools/OmeroPy/test/integration/library.py#L161</a></div><div>you can get the Image ID (can't assume they're the same as in that example) then add some annotations etc (see link below).</div><div><br></div><div><br></div><div>For writing your own Python client / scripts etc, you should start</div><div><a href="https://www.openmicroscopy.org/site/support/omero4/developers/Python.html">https://www.openmicroscopy.org/site/support/omero4/developers/Python.html</a></div><div><br></div><div>For more detail, try the source code of the "Blitz Gateway" - Python wrappers around the core OMERO api, which</div><div>is the 'conn' etc used in many of the starter examples.</div><div><a href="https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/tools/OmeroPy/src/omero/gateway/__init__.py">https://github.com/openmicroscopy/openmicroscopy/blob/develop/components/tools/OmeroPy/src/omero/gateway/__init__.py</a></div><div><br></div><div><br></div><div> Hope that helps,</div><div><br></div><div> Let us know if you have any more questions,</div><div><br></div><div> Cheers,</div><div><br></div><div> Will. </div></div><div><br></div><div><br></div><div><br><div><div>On 2 May 2013, at 15:54, Graeme Ball wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Dear OME,</span><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
I have been writing OMERO scripts to process data and re-import the results, but have hit a couple of snags with the imports.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
I would like to upload results to the same dataset as the images they are derived from, and the command line importer documentation suggests this is possible using the -d option. </div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<a href="http://www.openmicroscopy.org/site/support/omero4/users/command-line-import.html" target="_blank">http://www.openmicroscopy.org/site/support/omero4/users/command-line-import.html</a><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
However, if I try for example, "-d 51" I get:-</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"> Unknown debug action: set(['51']) <br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
which seems to agree with the contents of OMERO.server/lib/python/omero/cli.py (if that is the right file)</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
I would also like to attach results (text files etc.) to each image, but there is no option using the command line importer. The reason I am using the command line importer is that the results are being processed remotely (and we have not managed to set up OMERO.processor as yet). </div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Should I be attempting to write our own python client? And if so, where would be a good place to start? OMERO.server/lib/python/omero/clients.py perhaps?</div>
<div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Thanks & Best Regards,</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Graeme</div></div>
_______________________________________________<br>ome-users mailing list<br><a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a><br>http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users<br></blockquote></div><br></div></body></html>