<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Niko,
<div class=""><br class="">
</div>
<div class="">looking at the source code, are you linking the image to a comment annotation or a different</div>
<div class="">type of annotation?</div>
<div class="">At the moment, the `—annotation_link` option in the importer code can only handle comment</div>
<div class="">annotations (and we may have suggested the opposite during the meeting, apologies if that</div>
<div class="">was the case) - see</div>
<div class=""><a href="https://github.com/openmicroscopy/openmicroscopy/blob/v5.1.2/components/blitz/src/ome/formats/importer/cli/CommandLineImporter.java#L843" class="">https://github.com/openmicroscopy/openmicroscopy/blob/v5.1.2/components/blitz/src/ome/formats/importer/cli/CommandLineImporter.java#L843</a></div>
<div class=""><br class="">
</div>
<div class="">If you want to create a link to a different type of annotation, your best current solution using the</div>
<div class="">current state might be to do the following post-import:</div>
<div class="">1- parse the output of bin/omero import to retrieve the image id - see for instance</div>
<div class=""><a href="https://github.com/sbesson/openmicroscopy/blob/v5.1.2/examples/Training/training_setup.sh#L52" class="">https://github.com/sbesson/openmicroscopy/blob/v5.1.2/examples/Training/training_setup.sh#L52</a></div>
<div class="">2- call bin/omero obj in a separate command to link the image to the know annotation e.g.</div>
<div class="">$ bin/omero obj new ImageAnnotationLink parent=<span class="pl-smi">Image:iid</span> child=<span class="pl-smi">FileAnnotation:fid</span></div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Sebastien</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 4 Jun 2015, at 21:40, Niko Ehrenfeuchter <<a href="mailto:nikolaus.ehrenfeuchter@unibas.ch" class="">nikolaus.ehrenfeuchter@unibas.ch</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class=""><br class="">
<br class="">
<br class="">
<blockquote type="cite" class="">
<blockquote type="cite" class=""><br class="">
Am I doing something wrong?<br class="">
</blockquote>
<br class="">
A quick guess from the road: is the annotation in another group?<br class="">
</blockquote>
<br class="">
I don't think so, as another image in this  dataset has the very same annotation - set via the webclient. At least if I remember correctly.
<br class="">
<br class="">
I'll double check tomorrow, iirc the webclient shows all those properties when hovering with the mouse over an annotation, right?
<br class="">
<br class="">
Cheers <br class="">
Niko <br class="">
_______________________________________________<br class="">
ome-devel mailing list<br class="">
<a href="mailto:ome-devel@lists.openmicroscopy.org.uk" class="">ome-devel@lists.openmicroscopy.org.uk</a><br class="">
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<span style="font-size:10pt;">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</body>
</html>