[ome-users] Multiple groups "in-place import"?

Kölble, Konrad Konrad.Koelble at uk-erlangen.de
Wed Feb 13 19:59:11 GMT 2019


Hi,
Josh's suggestion modified for testing 
https://raw.githubusercontent.com/ome/training-scripts/master/maintenance/scripts/in_place_import_as.sh
...
echo Starting
SUDOER=${SUDOER:-GrandImporter}
OMEROPATH=${OMEROPATH:-/opt/omero/server/OMERO.server/bin/omero}
PASSWORD=${PASSWORD:-ome}
HOST=${HOST:-omerotest.uk-erlangen.de}
PROJECT=${PROJECT:-Lightsheet}
FOLDER=${FOLDER:-SN120-16}
NUMBER=${NUMBER:-2}
OMEUSER=${OMEUSER:-trainer}
 DATATYPE=${DATATYPE:-dataset}
 for ((i=1;i<=$NUMBER;i++));
 do  $OMEROPATH login --sudo ${SUDOER} -u $OMEUSER-$i -s $HOST -w $PASSWORD
     if [ "$DATATYPE" = "dataset" ]; then
        ProjectId=$($OMEROPATH obj new Project name=$PROJECT)
        DatasetId=$($OMEROPATH obj new Dataset name=$FOLDER)
        $OMEROPATH obj new ProjectDatasetLink parent=$ProjectId child=$DatasetId

     elif [ "$DATATYPE" = "plate" ]; then
        $OMEROPATH import --transfer=ln_s "/OMERO/in-place-import/$FOLDER"

    fi
    $OMEROPATH logout
...

produces 
"
Starting
Created session 7aeb4c20-90c3-4870-ac24-40920388a6f7 (trainer-1 at omerotest.uk-erlangen.de:4064). Idle timeout: 10 min. Current group: FPBioimage
Using session 7aeb4c20-90c3-4870-ac24-40920388a6f7 (trainer-1 at omerotest.uk-erlangen.de:4064). Idle timeout: 10 min. Current group: FPBioimage
Using session 7aeb4c20-90c3-4870-ac24-40920388a6f7 (trainer-1 at omerotest.uk-erlangen.de:4064). Idle timeout: 10 min. Current group: FPBioimage
Using session 7aeb4c20-90c3-4870-ac24-40920388a6f7 (trainer-1 at omerotest.uk-erlangen.de:4064). Idle timeout: 10 min. Current group: FPBioimage
ProjectDatasetLink:1738
Created session 3028a26e-1a12-491a-96c5-c5ef5a08879c (trainer-2 at omerotest.uk-erlangen.de:4064). Idle timeout: 10 min. Current group: FPBioimage
Using session 3028a26e-1a12-491a-96c5-c5ef5a08879c (trainer-2 at omerotest.uk-erlangen.de:4064). Idle timeout: 10 min. Current group: FPBioimage
Using session 3028a26e-1a12-491a-96c5-c5ef5a08879c (trainer-2 at omerotest.uk-erlangen.de:4064). Idle timeout: 10 min. Current group: FPBioimage
Using session 3028a26e-1a12-491a-96c5-c5ef5a08879c (trainer-2 at omerotest.uk-erlangen.de:4064). Idle timeout: 10 min. Current group: FPBioimage
ProjectDatasetLink:1739
Finishing
"
and creates projects and folders DEVOID OF images contained in the source.
What's missing?

Cheers
Konrad


More information about the ome-users mailing list