<div dir="ltr">Hi Steve,<div><br></div><div>If you want to compile a list of things that you want to do with the API then I can prepare some examples and come up and show you them if you want? Especially with the Python API I have quite a bit of experience now.</div>


<div><br></div><div>Cheers,</div><div><br></div><div>Douglas</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 25 April 2014 18:16, Stephen Taylor <span dir="ltr">&lt;<a href="mailto:stephen.taylor@imm.ox.ac.uk" target="_blank">stephen.taylor@imm.ox.ac.uk</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p>Hi Simon,<u></u><u></u></p><div>
<p><span><u></u>&nbsp;<u></u></span></p>
<p>&gt;As Jason pointed out in his email you should definitely be able to obtain all the information you need via the OMERO API, and we can certainly help you once you get started.<u></u><u></u></p>
<p><u></u>&nbsp;<u></u></p>
<p>&gt;Probably the easiest way to get started is to look at one of the language specific pages. Picking Python as an example, the code samples at &gt;<a href="http://www.openmicroscopy.org/site/support/omero5/developers/Python.html#code-samples" target="_blank"><span style="color:windowtext;text-decoration:none">http://www.openmicroscopy.org/site/support/omero5/developers/Python.html#code-samples</span></a><u></u><u></u></p>



<p>&gt;cover the basics of connecting to OMERO, and retrieving/manipulating data. An intro to the full API is at
<a href="http://www.openmicroscopy.org/site/support/omero5/developers/Modules/Api.html" target="_blank">
<span style="color:windowtext;text-decoration:none">http://www.openmicroscopy.org/site/support/omero5/developers/Modules/Api.html</span></a><u></u><u></u></p>
<p>&gt;<u></u>&nbsp;<u></u></p>
</div><p>&gt; We are planning to extend OMERO to be able to support our zoomable image and query interface called PivotViewer (for details see
<a href="http://www.cbrg.ox.ac.uk/data/pivotviewer/intro.shtml" target="_blank"><span style="color:windowtext;text-decoration:none">http://www.cbrg.ox.ac.uk/data/pivotviewer/intro.shtml</span></a>) or to view it in action, see the YouTube movie (<a href="https://www.youtube.com/watch?v=BvDOPpRo7KM" target="_blank"><span style="color:windowtext;text-decoration:none">https://www.youtube.com/watch?v=BvDOPpRo7KM</span></a>).<u></u><u></u></p>


<div>
<p>&gt;<u></u>&nbsp;<u></u></p>
<p>&gt; We have 3 main goals:<u></u><u></u></p>
<p>&gt;<u></u>&nbsp;<u></u></p>
<p>&gt; 1) Visualise OMERO projects by :<u></u><u></u></p>
<p>&gt; i)&nbsp; Generating indices for PivotViewer by doing an export of metadata (possible from the HDF5 tables) and images from the OMERO database.<u></u><u></u></p>
<p><u></u>&nbsp;<u></u></p>
<p>&gt;There are methods for listing images in Projects/Datasets/Screens, and for obtaining the raw images data and metadata. Are the HDF5 tables you refer to created using the OMERO.tables &gt;API, or are they created by yourself? If it&#39;s the
 latter there are API methods to retrieve the original HDF5 file (or any other type of file you want to store in OMERO).<u></u><u></u></p>
<p><u></u>&nbsp;<u></u></p>
</div><p><span>OMERO.tables. <u></u><u></u></span></p><div>
<p><span><u></u>&nbsp;<u></u></span></p>
<p><span><u></u>&nbsp;<u></u></span></p>
<p>&gt; ii) Exporting the images + metadata on the fly.<u></u><u></u></p>
<p><u></u>&nbsp;<u></u></p>
<p>&gt;Could you expand on what do you mean by &quot;export&quot;? There are examples of rendering images on the fly on the code samples page, for more advanced usage you might want to look at the &gt;source code for OMERO.web.<u></u><u></u></p>



<p><u></u>&nbsp;<u></u></p>
</div><p><span>Ok. Currently we use static PNGs/JPGs and create a tiling pyramid which is read by the viewer, but it would be cool to generate these on the fly, caching the images of interest.<u></u><u></u></span></p>
<div>
<p><span><u></u>&nbsp;<u></u></span></p>
<p>&gt; 2) Use the results of filtering operations to run OMERO.scripts and see the results in PivotViewer.<u></u><u></u></p>
<p><u></u>&nbsp;<u></u></p>
<p>&gt;As you&#39;re probably already aware scripts are run asynchronously in a separate process. If you want something more responsive there may be other options.<u></u><u></u></p>
<p><u></u>&nbsp;<u></u></p>
</div><p><span>No I didn&rsquo;t know that. I&rsquo;d be interested to hear about the other options...<u></u><u></u></span></p><div>
<p><span><u></u>&nbsp;<u></u></span></p>
<p>&gt; 3) Use the results of filtering operations to be able to annotate back to the OMERO database. So for example, I might choose a subset of images that I think are badly stained and tag them as &#39;stained=bad&#39; or similar.<u></u><u></u></p>



<p><u></u>&nbsp;<u></u></p>
</div><p>&gt;This should be straightforward- once you&#39;ve got a list of images (or any other OMERO objects) you can easily create a tag on them. It&#39;s also possible to attach more structured data to ?&gt;an image.<u></u><u></u></p>



<p><u></u>&nbsp;<u></u></p>
<p><span>Ok. Sounds good. Is there a link where I can find more info about the different data structures available?<u></u><u></u></span></p><div>
<p><span><u></u>&nbsp;<u></u></span></p>
<p>&gt; I am trying to pull together enough technical information to define how much work would be required to do this as part of a grant application. Would anyone on this list be able to &gt;help?<u></u><u></u></p>
<p><u></u>&nbsp;<u></u></p>
<p>&gt;What kind of interaction do you want to see between OMERO and PivotViewer? Do you see it as a separate standalone application, or part of OMERO.web?
<u></u><u></u></p>
<p><u></u>&nbsp;<u></u></p>
</div><p><span>Ultimately it would be good to have as part of OMERO web but I think we have to get a bit more familiar with OMERO&rsquo;s guts before we look at that. Doing it OMERO.web would be useful since we could use the same
 authentication to secure collections, though I guess if both systems are using LDAP this might not be a problem. What other advantages do you think would be in using OMERO.web?</span><u></u><u></u></p><div>
<p><u></u>&nbsp;<u></u></p>
<p>&gt;<u></u>&nbsp;<u></u></p>
<p>&gt;Do you need real-time updates- that &gt;could be pretty challenging. However we&#39;ve done (and are planning a lot more) work on integrating analysis tools into OMERO, so if you come across &gt;any issues don&#39;t hesitate to mention &gt;them.<u></u><u></u></p>



<p><span><u></u>&nbsp;<u></u></span></p>
</div><p><span>I think it would be standalone in the first instance and export the data (images and metadata) from OMERO incrementally and then index it on the file system.
<u></u><u></u></span></p>
<p><span><u></u>&nbsp;<u></u></span></p>
<p><span>Thanks for your help so far,<u></u><u></u></span></p>
<p><span><u></u>&nbsp;<u></u></span></p>
<p><span>Steve<u></u><u></u></span></p><div>
<p><u></u>&nbsp;<u></u></p>
<p><span><u></u>&nbsp;<u></u></span></p>
<p>&gt; Also, if any developers are interested in collaborating on this project please let me know!<u></u><u></u></p>
<p>&gt;<u></u>&nbsp;<u></u></p>
<p>&gt; Kind regards and thanks,<u></u><u></u></p>
<p>&gt;<u></u>&nbsp;<u></u></p>
<p>&gt; Steve<u></u><u></u></p>
<p>&gt; =======================================<u></u><u></u></p>
<p>&gt; Head of Computational Biology Research Group Weatherall Institute of
<u></u><u></u></p>
<p>&gt; Molecular Medicine University of Oxford <a href="http://www.cbrg.ox.ac.uk" target="_blank">
<span style="color:windowtext;text-decoration:none">www.cbrg.ox.ac.uk</span></a><u></u><u></u></p>
<p>&gt;<u></u>&nbsp;<u></u></p>
<p>&gt;<u></u>&nbsp;<u></u></p>
<p>&gt;<u></u>&nbsp;<u></u></p>
<p>&gt; _______________________________________________<u></u><u></u></p>
<p>&gt; ome-devel mailing list<u></u><u></u></p>
<p>&gt; <a href="mailto:ome-devel@lists.openmicroscopy.org.uk" target="_blank">
<span style="color:windowtext;text-decoration:none">ome-devel@lists.openmicroscopy.org.uk</span></a><u></u><u></u></p>
<p>&gt; <a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel" target="_blank">
<span style="color:windowtext;text-decoration:none">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</span></a><u></u><u></u></p>
<p><u></u>&nbsp;<u></u></p>
<p><u></u>&nbsp;<u></u></p>
<p>The University of Dundee is a registered Scottish Charity, No: SC015096<u></u><u></u></p>
</div></div>
</div>

<br>_______________________________________________<br>
ome-devel mailing list<br>
<a href="mailto:ome-devel@lists.openmicroscopy.org.uk" target="_blank">ome-devel@lists.openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</a><br>
<br></blockquote></div><br></div></div>