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

Josh Moore josh at glencoesoftware.com
Thu Jan 31 15:37:35 GMT 2019


Hi Konrad,

On Thu, Jan 31, 2019 at 3:20 PM Kölble, Konrad
<Konrad.Koelble at uk-erlangen.de> wrote:
>
> 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?

Definitely. Projects need to be created and have the datasets linked into them:

  ProjectId=$($OMEROPATH obj new Project name=$PROJECT)
  DatasetId=$($OMEROPATH obj new Dataset name=$FOLDER)
  $OMEROPATH obj new ProjectDatasetLink parent=$ProjectId child=$DatasetId


> Cheers
> Konrad

~Josh


More information about the ome-users mailing list