Exemplo n.º 1
0
                 'DataCustodianEmail':'*****@*****.**',
                 'CollaborativeGroup':'Prostate and Urologic',
                 'OrganSite':'Pancreas',
                 'UpdateCollection':'true', # default value = true
                 
    } 
    

    # upload dataset staged in directory $LABCAS_STAGING/<product_type>/<dataset_id>
    labcasClient.uploadCollection(dataset_name, metadata)

    # update the dataset metadata WITHOUT generating a new version
    metadata['ProtocolId'] = '99'
    labcasClient.uploadCollection(dataset_name, metadata)
    
    # update dataset metadata while generating a new version
    metadata['LeadPI'] = 'Mister X'
    labcasClient.uploadCollection(dataset_name, metadata, newVersion=True)

    # list all product types in File manager
    labcasClient.listProductTypes()
    
    # query the product types from the XML/RPC File Manager interface
    labcasClient.getProductTypeByName(product_type)
    
    # or equivalently
    labcasClient.getProductTypeById("urn:edrn:%s" % product_type)
    
    # list all products for given product type
    labcasClient.listProducts(product_type)