MAPR plugin installation
Posted: Thu May 24, 2018 9:33 am
Hello everyone ,
we are doing tests with the MAPR plugin on our OMERO database.
We followed the instructions: https://github.com/ome/omero-mapr/
Now, we do not know how to integrate this code into our database?
key_value_data = [["Gene Identifier", "ENSG00000117399"],
["Gene Identifier URL", "http://www.ensembl.org/id/ENSG00000117399"],
["Gene Symbol", "CDC20"]]
map_ann = omero.gateway.MapAnnotationWrapper (conn)
map_ann.setValue (key_value_data)
map_ann.setNs ( "openmicroscopy.org/mapr/gene")
map_ann.save ()
i = conn.getObject ('Image', 2917)
i.linkAnnotation (map_ann)
Is there a Python script that allows us to insert annotations ? Or a simpler way?
Thanks for your help
we are doing tests with the MAPR plugin on our OMERO database.
We followed the instructions: https://github.com/ome/omero-mapr/
Now, we do not know how to integrate this code into our database?
key_value_data = [["Gene Identifier", "ENSG00000117399"],
["Gene Identifier URL", "http://www.ensembl.org/id/ENSG00000117399"],
["Gene Symbol", "CDC20"]]
map_ann = omero.gateway.MapAnnotationWrapper (conn)
map_ann.setValue (key_value_data)
map_ann.setNs ( "openmicroscopy.org/mapr/gene")
map_ann.save ()
i = conn.getObject ('Image', 2917)
i.linkAnnotation (map_ann)
Is there a Python script that allows us to insert annotations ? Or a simpler way?
Thanks for your help