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
--size
parameter, only first--size
nucleotides 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
vcf2seq-0.6.2a0.tar.gz
(19.5 kB
view details)
Built Distribution
vcf2seq-0.6.2a0-py3-none-any.whl
(20.3 kB
view details)
File details
Details for the file vcf2seq-0.6.2a0.tar.gz
.
File metadata
- Download URL: vcf2seq-0.6.2a0.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 967cb9cddd9b888740f2441b2fb91f99d1e6253350bd103a6099a969c468af56 |
|
MD5 | b0427dc5c18f07fe7518303db46e8f3d |
|
BLAKE2b-256 | e29eaadf7b86fab8741db57de4fa1ac52179e7d417bb04b6b0b7c491414b1f6b |
File details
Details for the file vcf2seq-0.6.2a0-py3-none-any.whl
.
File metadata
- Download URL: vcf2seq-0.6.2a0-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d51103367d5def2a992b85f356546839055e050934c187601f0e91a28da48116 |
|
MD5 | 869e8a914bb7cf6fc96be630c4c83f3a |
|
BLAKE2b-256 | 4caa80dde4f9876db6687022d11e4ffddfcd212c75e3b8e6aa17ab80f87b51ef |