Carrot Transform automates data transformation processes and facilitates the standardisation of datasets to the OMOP vocabulary, simplifying the integration of diverse data sources.
Carrot Mapper is a webapp which allows the user to use the metadata (as output by WhiteRabbit) from a dataset to produce mapping rules to the OMOP standard, in the JSON format. These can be ingested by Carrot Transform to perform the mapping of the contents of the dataset to OMOP.
Carrot Transform transforms input data into tab separated variable files of standard OMOP tables, with concepts mapped according to the provided rules (generated from Carrot Mapper).
To have the project up and running, please follow the Quick Start Guide.
To release a new version of carrot-transform
follow these steps:
- First ensure that repository is clean and all required changes have been merged.
- Pull the latest changes from
main
withgit pull origin main
.
- Now create a new feature branch name
release/v<NEW-VERSION>
(e.g.release/v0.2.0
).
- Use poetry to bump the version. For example, for a minor version update invoke:
poetry version minor
- Commit and push the changes (to the release feature branch):
NEW_VERSION=$(poetry version -s)
git add pyproject.toml
git commit -m "Bump version to $NEW_VERSION"
git push --set-upstream origin release/v$NEW_VERSION
- Open a pull request from
release/v$NEW_VERSION
tomain
and await approval.
- After approval merge the the feature branch to
main
. - Checkout to
main
, pull updates, and create a tag corresponding to the new version number.
git checkout main
git pull origin main
git tag -a "$NEW_VERSION" -m "Release $NEW_VERSION"
git push origin "$NEW_VERSION"
- We must now link the tag to a release in the GitHub repository. To do this from the command line first install GitHub command line tools
gh
and then invoke:
gh release create "$TAG" --title "$TAG" --notes "Release for $VERSION"
- Alternatively, follow the instructions in the GitHub documentation to manually create a release.
This repository's source code is available under the MIT license.