npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

variant-linker

v3.12.2

Published

CLI for Ensembl VEP and Variant Recoder

Readme

Variant-Linker

CI 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

Windows Installation Issues

If the variant-linker command isn't recognized on Windows PowerShell:

Option 1: Use npx (recommended)

npx variant-linker --help

Option 2: Reinstall globally

npm uninstall -g variant-linker
npm install -g variant-linker

Basic Usage

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

# Analyze a copy number variant (CNV)
variant-linker --variant "7:117559600-117559609:DEL" --output JSON

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

# Liftover hg19 coordinates to hg38 for annotation
variant-linker --assembly hg19tohg38 --variant "chr17-7578406-C-A" --output JSON

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

# Use HTTP proxy for API requests
variant-linker --variant "rs6025" --proxy http://proxy.company.com:8080 --output JSON

# Use authenticated proxy
variant-linker --variant "rs6025" --proxy http://user:[email protected]:8080 --output JSON

Key Features

  • 🔄 Variant Translation - Convert between rsID, HGVS, VCF, and CNV formats
  • 📊 VEP Annotations - Comprehensive variant effect predictions including CNV-specific annotations
  • 🧬 Genome Assembly Liftover - Transparent hg19→hg38 coordinate conversion
  • 👨‍👩‍👧‍👦 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
  • 🌊 Streaming Support - Memory-efficient stdin processing for pipeline integration
  • 🎯 Custom Scoring - Configurable variant prioritization models
  • 📋 Multiple Formats - JSON, CSV, TSV, and VCF output options
  • 🎨 Custom Annotations - Overlay variants with BED regions, gene lists, and JSON metadata

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'
});

// Analyze a copy number variant (CNV)
const cnvResult = await analyzeVariant({
  variant: '7:117559600-117559609:DEL',
  vepOptions: { Phenotypes: '1', numbers: '1' },
  output: 'JSON'
});

// Batch processing with mixed variant types
const batchResult = await analyzeVariant({
  variants: ['rs123', 'ENST00000366667:c.803C>T', '1:1000-5000:DUP'],
  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.