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
9cf3ac2b
Commit
9cf3ac2b
authored
10 years ago
by
juanf
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-1078 : PAPER - Provide sensible defaults - Implementation
SVN: 32721
parent
aa87338a
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
plasmid/source/core-plugins/newbrowser/1/as/initialize-master-data.py
+14
-5
14 additions, 5 deletions
...ce/core-plugins/newbrowser/1/as/initialize-master-data.py
with
14 additions
and
5 deletions
plasmid/source/core-plugins/newbrowser/1/as/initialize-master-data.py
+
14
−
5
View file @
9cf3ac2b
...
...
@@ -18,12 +18,15 @@
import
ch.systemsx.cisd.openbis.generic.server.jython.api.v1.DataType
as
DataType
##
##
Help Method
s
##
Global
s
##
vocabulariesCache
=
{};
propertiesCache
=
{};
tr
=
service
.
transaction
()
##
## API Facade
##
def
createVocabularyWithTerms
(
vocabularyCode
,
terms
):
vocabulary
=
tr
.
createNewVocabulary
(
vocabularyCode
);
addTerms
(
vocabulary
,
terms
);
...
...
@@ -77,9 +80,8 @@ def addProperty(entity, propertyCode, section, propertyLabel, dataType, vocabula
propertyAssignment
.
setSection
(
section
);
##
## Vocabular
i
es
## Vocabular
y Typ
es
##
createVocabularyWithTerms
(
"
HOST
"
,
[
[
"
MOUSE
"
,
"
mouse
"
],
[
"
RAT
"
,
"
rat
"
],
...
...
@@ -347,7 +349,6 @@ createVocabularyWithTerms("MACHINE", [
##
## DataSet Types
##
createDataSetTypeWithProperties
(
"
ELN_PREVIEW
"
,
"
PHYSICAL
"
,
"
ELN Preview image
"
,
[]);
createDataSetTypeWithProperties
(
"
SEQ_FILE
"
,
"
PHYSICAL
"
,
""
,
[
...
...
@@ -391,7 +392,6 @@ createExperimentTypeWithProperties("DEFAULT_EXPERIMENT", "Default Experiment", [
##
## Sample Types
##
createSampleTypeWithProperties
(
"
ANTIBODY
"
,
""
,
[
[
"
NAME
"
,
"
General
"
,
"
Name
"
,
DataType
.
VARCHAR
,
None
,
"
Name
"
],
[
"
HOST
"
,
"
General
"
,
"
Host
"
,
DataType
.
CONTROLLEDVOCABULARY
,
"
HOST
"
,
"
Host used to produce the antibody
"
],
...
...
@@ -408,3 +408,12 @@ createSampleTypeWithProperties("ANTIBODY", "", [
[
"
NOTES
"
,
"
Comments
"
,
"
Notes
"
,
DataType
.
MULTILINE_VARCHAR
,
None
,
"
Notes
"
],
[
"
XMLCOMMENTS
"
,
"
Comments
"
,
"
Comments List
"
,
DataType
.
XML
,
None
,
"
Several comments can be added by different users
"
]
]);
createSampleTypeWithProperties
(
"
CHEMICAL
"
,
""
,
[
[
"
NAME
"
,
"
General
"
,
"
Name
"
,
DataType
.
MULTILINE_VARCHAR
,
None
,
"
Name
"
],
[
"
SUPPLIER
"
,
"
Supplier and storage
"
,
"
Supplier
"
,
DataType
.
MULTILINE_VARCHAR
,
None
,
"
Supplier of the product
"
],
[
"
ARTICLE_NUMBER
"
,
"
Supplier and storage
"
,
"
Art. Number
"
,
DataType
.
MULTILINE_VARCHAR
,
None
,
"
Article number of the product
"
],
[
"
STORAGE
"
,
"
Supplier and storage
"
,
"
Storage
"
,
DataType
.
CONTROLLEDVOCABULARY
,
"
STORAGE
"
,
"
Storage conditions of the product
"
],
[
"
XMLCOMMENTS
"
,
"
Comments
"
,
"
Comments List
"
,
DataType
.
VARCHAR
,
None
,
"
Several comments can be added by different users
"
],
]);
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