berntpopp / variant-linker

MIT License
0 stars 0 forks source link

Variant-Linker

Introduction

Variant-Linker is a command-line interface (CLI) tool designed to facilitate the retrieval of genetic variant annotations. It integrates with Ensembl's Variant Recoder and Variant Effect Predictor (VEP) REST APIs to provide a streamlined process for obtaining detailed annotations for a given genetic variant.

Features

Installation

Before installing Variant-Linker, ensure you have Node.js and npm (Node Package Manager) installed on your system.

To set up Variant-Linker, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-github-username/variant-linker.git
    cd variant-linker
  2. Install dependencies:

    npm install
  3. Link the package globally (optional but recommended):

    npm link

Usage

After installation, you can run Variant-Linker using the following command:

variant-linker --variant <variant_input> --output <output_format> [--debug]

Command-Line Options

Configuration File

Variant-Linker can accept a JSON configuration file to specify parameters. Command-line parameters will override configuration file parameters if both are provided.

Example Configuration File (example_input.json):

{
  "variant": "ENST00000366667:c.803C>T",
  "output": "JSON",
  "save": "output/example_output.json",
  "debug": 3,
  "scoring_config_path": "scoring/meta_score/"
}

VCF Handling

Variant-Linker can detect and process variants provided in VCF format. When a VCF formatted variant is detected, the tool:

VCF Format Example

Example Usage

Using command-line parameters:

variant-linker --variant 'ENST00000366667:c.803C>T' --output JSON

Using a configuration file:

variant-linker --config example_input.json

Contributing

Contributions to Variant-Linker are welcome. Please feel free to fork the repository, make your changes, and submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgements

This tool utilizes the Ensembl Variant Recoder and Variant Effect Predictor APIs, provided by the Ensembl project.