JSPM

  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q57478F
  • License MIT

CLI for Ensembl VEP and Variant Recoder

Package Exports

  • variant-linker
  • variant-linker/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (variant-linker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Variant-Linker

Build Status npm version License: MIT

A powerful CLI tool and JavaScript library for genetic variant annotation using Ensembl APIs.

๐Ÿ“š Complete Documentation โ†’

Quick Start

Installation

git clone https://github.com/berntpopp/variant-linker.git
cd variant-linker
npm install
npm link  # Optional: for global CLI access

Basic Usage

# Analyze a single variant
variant-linker --variant "rs6025" --output JSON

# Process VCF file with inheritance analysis
variant-linker --vcf-input sample.vcf --ped family.ped --calculate-inheritance --output VCF

# Batch processing with custom scoring
variant-linker --variants-file variants.txt --scoring_config_path scoring/nephro_variant_score/ --output CSV

Key Features

  • ๐Ÿ”„ Variant Translation - Convert between rsID, HGVS, and VCF formats
  • ๐Ÿ“Š VEP Annotations - Comprehensive variant effect predictions
  • ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Family Analysis - Inheritance pattern detection from PED files
  • ๐Ÿ—‚๏ธ VCF Support - Full VCF input/output with header preservation
  • โšก Batch Processing - Efficient handling of large variant datasets
  • ๐ŸŽฏ Custom Scoring - Configurable variant prioritization models
  • ๐Ÿ“‹ Multiple Formats - JSON, CSV, TSV, and VCF output options

Library Usage

Use Variant-Linker as a library in your Node.js projects:

const { analyzeVariant, variantRecoderPost, vepRegionsAnnotation } = require('variant-linker');

// Analyze a single variant
const result = await analyzeVariant({
  variant: 'rs6025',
  output: 'JSON'
});

// Batch processing
const batchResult = await analyzeVariant({
  variants: ['rs123', 'ENST00000366667:c.803C>T'],
  recoderOptions: { vcf_string: '1' },
  vepOptions: { CADD: '1', hgvs: '1' },
  output: 'JSON'
});

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Development Setup

git clone https://github.com/berntpopp/variant-linker.git
cd variant-linker
npm install
npm test
npm run lint

See our Contributing Guide for detailed information.

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.