<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=384506&amp;fmt=gif">
Skip to content
Sign Up
    July 18, 2022

    CDD Vault Update (July 2022): Mixture Lookups; Include Source and API Parameters to Limit the Amount of Data Returned

    Vault Name is Included when Looking Up Mixture Components

    When registering a new Mixture using the Vault Lookup interface, the source of the component is displayed to indicate where the component is currently registered.

    Limiting Data Returned Via API Calls

    API parameters are available to limit the actual data returned by API calls. This can significantly improve the performance of these API endpoints. I. The "only_ids" parameter on the GET Molecules, GET Batches, GET ELN Entries and GET Protocols API calls allows you to return only the relevant object IDs instead of all associated data. This reduces the amount of data and time, and can be useful to determine if objects are deleted. The GET Molecules API call, sending this JSON file:
    {   "created_after":"2022-01-01",
    Would return only these JSON results:
        "count": 4,
        "objects": [
    II. The "no_structures" parameter on the GET Molecules and GET Batches API calls allows you to omit the structural information from the resulting JSON. This, too, allows for a faster response and avoids passing along sensitive structural information. The GET Molecules API call, sending this JSON file:
    {   "created_after":"2022-01-01",
    Would omit all chemical structure information from the JSON results. III. The “molecule_fields” and “batch_fields'' parameters for the GET Molecules and GET Batches API let you specify exactly which fields you’d like to return. By default all fields are returned and you can specify a non-existent field, e.g. -1 to not return any fields. The GET Molecules API call, sending this JSON file:
    {   "names":"CAW-0000028",
    Would return only the data stored in the Source Molecule Field in the JSON results (data in other Molecule fields would be omitted):
        "molecule_fields": { "Source": "Graceland CRO" },

    Helpful Hint

    Nearly all of the CDD API endpoints support a number of parameters which can be passed when making API calls. Historically, these parameters are passed by adding them directly to the url used for the API call. However, with the number of useful parameters growing, adding a combination of parameters to the url may make the url long and rather unwieldy. We'd like to recommend a "best-practice" method for passing parameters so they no longer have to be added to the url. Instead of adding parameters to the url, create a JSON file containing all of the parameters you wish to submit and then reference your JSON file in your API call.

    Other posts you might be interested in

    View All Posts
    CDD Blog
    8 min   July 22, 2024
    Drug Discovery Industry Roundup with Barry Bunin — July, 22 2024
    Read More
    CDD Blog
    34 min   July 1, 2024
    Critical Data Considerations for All Lifecycle Stages of a Biotech Startup
    Read More
    CDD Vault Snack
    3 min   June 27, 2024
    Vault Snack #24 - New Interface, Features & Infrastructure for the CDD Vault ELN
    Read More