import ch.systemsx.cisd.openbis.generic.server.jython.api.v1.DataType as DataType tr = service.transaction() vocabulary_TREATMENT_TYPE = tr.getOrCreateNewVocabulary('TREATMENT_TYPE') vocabulary_TREATMENT_TYPE.setDescription('Type of treatment of a biological sample.') vocabulary_TREATMENT_TYPE.setUrlTemplate(None) vocabulary_TREATMENT_TYPE.setManagedInternally(False) vocabulary_TREATMENT_TYPE.setInternalNamespace(False) vocabulary_TREATMENT_TYPE.setChosenFromList(True) exp_type_MS_SEARCH = tr.getOrCreateNewExperimentType('MS_SEARCH') exp_type_MS_SEARCH.setDescription('MS_SEARCH experiment') samp_type_MS_INJECTION = tr.getOrCreateNewSampleType('MS_INJECTION') samp_type_MS_INJECTION.setDescription('injection of a biological sample into a MS') samp_type_MS_INJECTION.setListable(True) samp_type_MS_INJECTION.setSubcodeUnique(False) samp_type_MS_INJECTION.setAutoGeneratedCode(False) samp_type_MS_INJECTION.setGeneratedCodePrefix('S') samp_type_SEARCH = tr.getOrCreateNewSampleType('SEARCH') samp_type_SEARCH.setDescription('pointer to an MS_INJECTION sample used as placeholder for searches') samp_type_SEARCH.setListable(True) samp_type_SEARCH.setSubcodeUnique(False) samp_type_SEARCH.setAutoGeneratedCode(False) samp_type_SEARCH.setGeneratedCodePrefix('S') data_set_type_PROT_RESULT = tr.getOrCreateNewDataSetType('PROT_RESULT') data_set_type_PROT_RESULT.setDescription('protXML file')