This project contains the Typescript tools that are transformed into javascript and used by BigQuery routines to transform the ClinVar Ingest fields that have not been completely parsed from their json form. Additionally, it provides tools that derive HGVS from ClinVar fields, format dates and calculate nearest months for aggregating data around ClinVar releases.
Before you begin, ensure you have met the following requirements:
- You have installed Node.js (>=14.x).
- You have a basic understanding of TypeScript and Node.js.
- You have a GitHub account.
To set up the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/clingen-data-model/clinvar-ingest-bq-tools.git cd your-repo-name
-
Install dependencies:
npm install
To compile the TypeScript code to JavaScript, run:
npx tsc
The compiled files will be output to the dist
directory.
This project uses Jest for testing. To run the tests, use the following command:
npm test
This project uses GitHub Actions for continuous integration. The workflow is defined in
.github/workflows/node.js.yml
and runs on every pull request to the main
branch.
It includes the following steps:
- Checkout the repository
- Setup Node.js
- Install dependencies
- Compile TypeScript
- Run tests
You can view the status of the workflow here.
To contribute to this project, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Make your changes and commit them (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Create a new Pull Request.
Please ensure your changes pass all tests and follow the project's coding standards.
This project is licensed under the CC0 1.0 Universal License. See the LICENSE file for details.