Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
f58376db
Commit
f58376db
authored
13 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
LMS-2134 ibrain2: create projects and spaces on the fly
SVN: 20579
parent
34001f22
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
integration-tests/templates/data-ibrain2/dropboxes/scripts/hcs_image_raw.py
+17
-11
17 additions, 11 deletions
...templates/data-ibrain2/dropboxes/scripts/hcs_image_raw.py
with
17 additions
and
11 deletions
integration-tests/templates/data-ibrain2/dropboxes/scripts/hcs_image_raw.py
+
17
−
11
View file @
f58376db
...
...
@@ -11,26 +11,32 @@ PLATE_TYPE_CODE = "PLATE"
SIRNA_EXP_TYPE
=
"
SIRNA_HCS
"
PLATE_GEOMETRY_PROPERTY_CODE
=
"
$PLATE_GEOMETRY
"
def
createPlateWithExperimentIfNeeded
(
transaction
,
assayParser
,
plate
,
space
,
plateGeometry
):
project
=
assayParser
.
get
(
assayParser
.
EXPERIMENTER_PROPERTY
)
def
createPlateWithExperimentIfNeeded
(
transaction
,
assayParser
,
plate
Code
,
space
Code
,
plateGeometry
):
project
Code
=
assayParser
.
get
(
assayParser
.
EXPERIMENTER_PROPERTY
)
experiment
=
assayParser
.
get
(
assayParser
.
ASSAY_ID_PROPERTY
)
experimentDesc
=
assayParser
.
get
(
assayParser
.
ASSAY_DESC_PROPERTY
)
experimentType
=
assayParser
.
get
(
assayParser
.
ASSAY_TYPE_PROPERTY
)
sampleIdentifier
=
"
/
"
+
space
+
"
/
"
+
plate
plate
=
transaction
.
getSample
(
sampleIdentifier
)
if
plate
==
None
:
expIdentifier
=
"
/
"
+
space
+
"
/
"
+
project
+
"
/
"
+
experiment
if
transaction
.
getSpace
(
spaceCode
)
==
None
:
tr
.
createNewSpace
(
spaceCode
,
None
)
sampleIdentifier
=
"
/
"
+
spaceCode
+
"
/
"
+
plateCode
plateCode
=
transaction
.
getSample
(
sampleIdentifier
)
if
plateCode
==
None
:
projectIdent
=
"
/
"
+
spaceCode
+
"
/
"
+
projectCode
if
transaction
.
getProject
(
projectIdent
)
==
None
:
tr
.
createNewProject
(
projectIdent
)
expIdentifier
=
projectIdent
+
"
/
"
+
experiment
experiment
=
transaction
.
getExperiment
(
expIdentifier
)
if
experiment
==
None
:
experiment
=
transaction
.
createNewExperiment
(
expIdentifier
,
SIRNA_EXP_TYPE
)
openbisExpDesc
=
experimentDesc
+
"
(type:
"
+
experimentType
+
"
)
"
experiment
.
setPropertyValue
(
"
DESCRIPTION
"
,
openbisExpDesc
)
plate
=
transaction
.
createNewSample
(
sampleIdentifier
,
PLATE_TYPE_CODE
)
plate
.
setPropertyValue
(
PLATE_GEOMETRY_PROPERTY_CODE
,
plateGeometry
)
plate
.
setExperiment
(
experiment
)
return
plate
plate
Code
=
transaction
.
createNewSample
(
sampleIdentifier
,
PLATE_TYPE_CODE
)
plate
Code
.
setPropertyValue
(
PLATE_GEOMETRY_PROPERTY_CODE
,
plateGeometry
)
plate
Code
.
setExperiment
(
experiment
)
return
plate
Code
iBrain2DatasetId
=
None
...
...
@@ -52,7 +58,7 @@ if incoming.isDirectory():
imageRegistrationDetails
=
factory
.
createImageRegistrationDetails
(
imageDataset
,
incoming
)
for
propertyCode
,
value
in
metadataParser
.
getDatasetPropertiesIter
():
imageRegistrationDetails
.
setPropertyValue
(
propertyCode
,
value
)
tr
=
service
.
transaction
(
incoming
,
factory
)
plate
=
metadataParser
.
getPlateCode
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment