[ome-users] Multiple groups "in-place import"?
Kölble, Konrad
Konrad.Koelble at uk-erlangen.de
Thu Jan 31 14:20:39 GMT 2019
Hi,
Josh's suggestion
https://raw.githubusercontent.com/ome/training-scripts/master/maintenance/scripts/in_place_import_as.sh
...
FOLDER=${FOLDER:-siRNAi-HeLa}
NUMBER=${NUMBER:-40}
OMEUSER=${OMEUSER:-user}
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
DatasetId=$($OMEROPATH obj new Dataset name=$FOLDER)
$OMEROPATH import -d $DatasetId --transfer=ln_s "/OMERO/in-place-import/$FOLDER"
elif [ "$DATATYPE" = "plate" ]; then
$OMEROPATH import --transfer=ln_s "/OMERO/in-place-import/$FOLDER"
fi
...
imports datasets into folders for N users.
Could one adapt this to import a more complex multi-project structure into N groups(=participants/users) keeping the Dataset Details contained?
Cheers
Konrad
More information about the ome-users
mailing list