Skip to main content

gene4mVCF

Introduction

gene4mVCF is a Python package that allows you to extract variant entries for specific genes or a list of genes from a VCF (Variant Call Format) file. It utilizes tools like bcftools, tabix, and Python libraries like pysam, pandas, pybedtools, tqdm, and gffutils to efficiently parse and extract variants.

Installation

You can install gene4mVCF via pip:

$ pip install gene4mVCF

After installation please download the four required bed files and place inside the folder /gene4mVCF
'hg19.ensGene.bed' --> https://hgdownload.soe.ucsc.edu/goldenPath/hg19/bigZips/genes/hg19.ensGene.gtf.gz

'hg19.ncbiRefSeq.bed' --> https://hgdownload.soe.ucsc.edu/goldenPath/hg19/bigZips/genes/hg19.ncbiRefSeq.gtf.gz

'hg38.ensGene.bed' --> https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/genes/hg38.ensGene.gtf.gz

'hg38.ncbiRefSeq.bed'--> https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/genes/hg38.ncbiRefSeq.gtf.gz

Usage

Extract variant entries for a specific gene or list of genes from a VCF file.
usage: $ gene4mVCF [-h] -i INPUT -g GENE [-r REFERENCE]

Needed arguments:
-i INPUT, --input INPUT, is bgzip compressed VCF file

-g GENE, --genes GENE, is either a Gene name, Ensembl gene ID, or path to a genelist file with *.txt extension


optional arguments:

-h, --help show this help message and exit

-r REFERENCE, --ref REFERENCE, is 37 or 38, based on the reference genome used for creating the VCF file

-f FEATURE, --feature FEATURE, is feature type(s) to filter for (e.g., exon, CDS, 5UTR, 3UTR, transcript)

Examples

Extract variants for a single gene using gene name: $ gene4mVCF -i input.vcf.gz -g EGFR

Extract variants for a single using ensembl gene id: $ gene4mVCF -i input.vcf.gz -g ENSG00000168878

Extract variants for multiple genes listed in a file: $ gene4mVCF -i input.vcf.gz -g acmg-genes.txt

For more options and details, refer to the help message.

Example showing extraction of variants of ACTB gene


input command
Example Image


Output file in the tab-separated format
Example Image

Support

For any issues or inquiries, please open an issue on the GitHub repository https://github.com/vkulaganathan/gene4mVCF

Installation

Installation via pip:

$ pip install gene4mVCF

current version='1.1.5'

Metadata

Release files for gene4mVCF 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gene4mVCF 1.1.5
File Size Uploaded
gene4mvcf-1.1.5.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gene4mVCF 1.1.5
File Interpreter ABI Platform
gene4mVCF-1.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / gene4mvcf-1.1.5.tar.gz

Download URL gene4mvcf-1.1.5.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
33b7e8b0afcfcb9859faad6969a59a22af6491d4b2003fb0b9d8674a372480b2
BLAKE2b-256 checksum
How to use checksums
75b3dd12fed7ec65cc9cdfbb41bf3354e1f9a042e82287960594ff917ad35b75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.6

Release files / gene4mVCF-1.1.5-py3-none-any.whl

Download URL gene4mVCF-1.1.5-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c51694a9df5113ff084237623f9130104233265e5564461aabb4d92936c8b75c
BLAKE2b-256 checksum
How to use checksums
e924e5c53cf6902366fe270463add346612b92f9a924ed6c2f9e46c2559b9bd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.6

Release history Release notifications | RSS feed

This release

1.1.5 This release

2 release files

1.1.4

2 release files

1.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page