Inputing a VCF file, it returns the genomic sequence at the specified length (31 by default).
Project description
vcf2seq
Aim
Similar to seqtailor [PMID:31045209] : reads a VCF file, outputs a genomic sequence (default length: 31)
Unlike seqtailor, all sequences will have the same length. Moreover, it is possible to have an absence character (by default the dot . ) for indels.
- When a insertion is larger than
--sizeparameter, only first--sizenucleotides are outputed. - Sequence headers are formated as "_".
VCF format specifications: https://github.com/samtools/hts-specs/blob/master/VCFv4.4.pdf
Installation
pip install vcf2seq
usage
usage: vcf2seq.py [-h] -g genome [-s SIZE] [-t {alt,ref,both}] [-b BLANK] [-a ADD_COLUMNS [ADD_COLUMNS ...]] [-o OUTPUT] [-v] vcf
positional arguments:
vcf vcf file (mandatory)
options:
-h, --help show this help message and exit
-g genome, --genome genome
genome as fasta file (mandatory)
-s SIZE, --size SIZE size of the output sequence (default: 31)
-t {alt,ref,both}, --type {alt,ref,both}
alt, ref, or both output? (default: alt)
-b BLANK, --blank BLANK
Missing nucleotide character, default is dot (.)
-a ADD_COLUMNS [ADD_COLUMNS ...], --add-columns ADD_COLUMNS [ADD_COLUMNS ...]
Add one or more columns to header (ex: '-a 3 AA' will add columns 3 and 27). The first column is '1' (or 'A')
-o OUTPUT, --output OUTPUT
Output file (default: <input_file>-vcf2seq.fa/tsv)
-f {fa,tsv}, --output-format {fa,tsv}
Output file format (default: fa)
-v, --version show program's version number and exit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vcf2seq-0.9.2.tar.gz.
File metadata
- Download URL: vcf2seq-0.9.2.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe8645c67c5f98bf32f8ba009cf3f116e134470a6752fb86e0db45f8444a2655
|
|
| MD5 |
7938c3320745c9fcbce8c86463d95224
|
|
| BLAKE2b-256 |
c8497d909bdd2408b3183cd93248950180ad503fed61b55a323de85eb424ce02
|
File details
Details for the file vcf2seq-0.9.2-py3-none-any.whl.
File metadata
- Download URL: vcf2seq-0.9.2-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
909877f750adff6a93e05ea18382fc67ac411e9426748512d571aa4f08e700f9
|
|
| MD5 |
379a15def4ec2cf8c92618f076dfdefb
|
|
| BLAKE2b-256 |
102186573ab715b0fa9f2fa8e7c73415d7d06763f3d9b6510ae3a864004069b3
|