Skip to content

Example Jupyter notebook and R scripts using Harmony in real research problems

License

Notifications You must be signed in to change notification settings

harmonydata/harmony_examples

Repository files navigation

The Harmony Project logo

🌐 harmonydata.ac.uk Harmony | LinkedIn Harmony | X Harmony | Instagram Harmony | Facebook Harmony | YouTube

Harmony on Twitter

Harmony example scripts

Harmony is a tool using AI which allows you to compare items from questionnaires and identify similar content. You can try Harmony at https://harmonydata.ac.uk/app and you can read our blog at https://harmonydata.ac.uk/blog/.

Here you can find example scripts for using the Python and R libraries.

R examples

Python examples

🖱 Looking to try Harmony in the browser?

Visit: https://harmonydata.ac.uk/app/

Looking for Harmony source code?

Harmony is based on four repositories: the core Python library, the API, the R port, and the front end for running in the browser. We welcome contributions and you can raise issues, pick up issues, and make pull requests.

  • Python - the main core library and the Python package which is on Pypi
  • R - the R port is on CRAN and it is slightly less mature than Python so we really appreciate if you can give the R package some TLC.
  • API - the Python API runs with Pydantic and Fast API and is running on an on-prem server enabling the web app to work
  • Web front end - we welcome feedback and contributions on front end and UX issues
  • If you're doing research and found Harmony useful, please cite us!
  • If you're a researcher trying to use the tool, and you encounter a problem, a bug, or a feature which you would like us to implement, please raise an issue on Github or message us on Discord.

Read our guide to contributing to Harmony here or read CONTRIBUTING.md.

🖥 Installation instructions for Python library (video)

Installing Harmony

Who to contact?

You can contact Harmony team at https://harmonydata.ac.uk/, or Thomas Wood at https://fastdatascience.com/.

‎😃💁 Who worked on Harmony?

Harmony is a collaboration project between Ulster University, University College London, the Universidade Federal de Santa Maria, and Fast Data Science. Harmony is funded by Wellcome as part of the Wellcome Data Prize in Mental Health.

The core team at Harmony is made up of:

📜 License

MIT License. Copyright (c) 2023 Ulster University (https://www.ulster.ac.uk)

📜 How do I cite Harmony?

You can cite our validation paper:

McElroy, Wood, Bond, Mulvenna, Shevlin, Ploubidis, Scopel Hoffmann, Moltrecht, Using natural language processing to facilitate the harmonisation of mental health questionnaires: a validation study using real-world data. BMC Psychiatry 24, 530 (2024), https://doi.org/10.1186/s12888-024-05954-2

A BibTeX entry for LaTeX users is

@article{mcelroy2024using,
  title={Using natural language processing to facilitate the harmonisation of mental health questionnaires: a validation study using real-world data},
  author={McElroy, Eoin and Wood, Thomas and Bond, Raymond and Mulvenna, Maurice and Shevlin, Mark and Ploubidis, George B and Hoffmann, Mauricio Scopel and Moltrecht, Bettina},
  journal={BMC psychiatry},
  volume={24},
  number={1},
  pages={530},
  year={2024},
  publisher={Springer}
}