Adding a Custom Metadata Field to the In Vivo Sync App
Follow the instructions below to create and map new metadata from In Vivo to Benchling.
- In In Vivo, add the desired metadata to the corresponding schema in the Glossary
-
- Copy the slug name and store it for later use in this process
-
- In Benchling, add the same desired metadata on the related schema (ex. In Vivo Study for Study, In Vivo Animal for Animal)
-
- Copy the field’s API ID and store it for later use in this process
-
- In Benchling, select the Connection icon on the left navigation bar
- Select the Apps tab and open the In Vivo Sync app
- In the app, select the Configuration sub-tab
- Scroll to find the relevant schema section (ex. Study Schema, Animal Schema) for the new metadata field that was added to In Vivo
- In the associated Metadata Mapping JSON box, add the appropriate JSON code to map the new metadata field to the In Vivo Sync App. The JSON should be written as follows: {“benchling_registry_field_API_ID”:“in_vivo_slug_name”}
-
- Enter the Benchling Registry’s field API ID and the In Vivo slug name in the respective locations
- If mapping more than one field Separate each JSON line using a comma
-
- Press the submit button in the upper right-hand corner of the app. This is critical for the changes to save!
Please note that adding metadata after items have started syncing will not automatically backfill the new metadata field for existing entities. If a backfill is desired, see the section below for information on running a backfill.
- Update the metadata field for the “Benchling Integration Folder” on the Study or studies you would like backfilled within In Vivo under the “Settings” Section of the study.
-
- Create a folder within Benchling
- Copy the API ID of that folder
- Paste it into to the “Benchling Integration Folder” field
-
- Navigate to the In Vivo Sync App within Benchling and set the date in which studies will be backfilled for after that date
- Select Run In Vivo Backfill
Removing a Custom Metadata Field from the In Vivo Sync App
Follow the instructions below to remove custom metadata syncing from In Vivo to Benchling.
- In In Vivo, navigate to the field in the Glossary
- Select archive
- In Benchling, navigate to the corresponding Registry field
- Select archive
- In Benchling, select the Connection icon on the left navigation bar
- Select the Apps tab and open the In Vivo Sync app
- In the app, select the Configuration sub-tab
- Scroll to find the relevant schema section (ex. Study Schema, Animal Schema) for the new metadata field that was added to In Vivo
- In the associated Metadata Mapping JSON box, find the appropriate JSON code that maps the metadata fields in the In Vivo Sync App. The JSON should be written as follows: {“benchling_registry_field_API_ID”:“in_vivo_slug_name”}. You can use the field API ID and/or the slug name to help locate the applicable code.
- Delete the applicable JSON code, being sure to check for appropriate syntax after updating (ex. Remove unnecessary commas, ensure brackets are present)
- Press the submit button in the upper right-hand corner of the app. This is critical for the changes to save!
Remapping an Existing Custom Metadata Field in the In Vivo Sync App
Follow the instructions below to archive an existing field in In Vivo, create a new field in In Vivo, and re-map the field to successfully sync from In Vivo to Benchling.
- In In Vivo, navigate to the field in the Glossary
-
- Copy the slug name and store it for later use in this process
-
- Select archive
- In In Vivo, create the new desired field if not already created
-
- Copy the slug name and store it for later use in this process
-
- In Benchling, select the Connection icon on the left navigation bar
- Select the Apps tab and open the In Vivo Sync app
- In the app, select the Configuration sub-tab
- Scroll to find the relevant schema section (ex. Study Schema, Animal Schema) for the new metadata field that was added to In Vivo
- In the associated Metadata Mapping JSON box, find the appropriate JSON code that maps the metadata fields in the In Vivo Sync App. The JSON should be written as follows: {“benchling_registry_field_API_ID”:“in_vivo_slug_name”}. You can use the field API ID and/or the slug name to help locate the applicable code.
- Replace the applicable “in_vivo_slug_name” from the archived In Vivo field with the “in_vivo_slug_name” from the new field, being sure to check for appropriate syntax after updating (ex. Ensure quotation marks are present, ensure brackets are present)
- Press the submit button in the upper right-hand corner of the app. This is critical for the changes to save!