[ome-users] CLI importing (arbitrary) file annotations

Niko Ehrenfeuchter nikolaus.ehrenfeuchter at unibas.ch
Wed Jul 20 09:15:57 BST 2016


Hi Colin,


On 19.07.2016 18:32, Colin Blackburn (Staff) wrote:
> Hi Niko,
>
> On 19/07/2016 16:45, "ome-users on behalf of Niko Ehrenfeuchter"
> <ome-users-bounces at lists.openmicroscopy.org.uk on behalf of
> nikolaus.ehrenfeuchter at unibas.ch> wrote:
>
>> Dear all,
>>
>> I'm feeling a bit stupid but I couldn't find anything in the docs about
>> importing file annotations using the command line interface.
>>
>> Our use case is to attach some text and Excel files to a dataset - is
>> this doable using the CLI?
>
>
> Yes it is doable from the CLI, I covered it in a workshop presentation at
> this year's users' meeting:
>
> http://downloads.openmicroscopy.org/presentations/2016/Users-Meeting/Worksh
> ops/CLI-Data-Interaction/#/

I knew I had seen this somewhere! :-)


> You'd do something like this:
>
> $ bin/omero upload analysis.csv
> Uploaded analysis.csv as 275
> $ bin/omero obj new FileAnnotation file=OriginalFile:275
>    FileAnnotation:5
>    $ bin/omero obj new DatasetAnnotationLink parent=Dataset:51
> child=FileAnnotation:5
>    DatasetAnnotationLink:2

Thanks a lot, this is exactly what I had been looking for!

Cheers,
~Niko


More information about the ome-users mailing list