From table file containing HGVS column, it returns a fixed size sequence
Project description
hvgs2seq
From a tabulated file, with an hgvs column (e.g. NM_000142.4:c.1953G>A), build a transcriptomic
sequence of a fixed size (31 by default) around the variant.
- the hgvs could be splitted in two columns (e.g. col 1:
NM_000142.4and col 2:c.1953G>A) - when the variant is an indel largest than the specified size, the insertion/deletion will be truncated
- when the variant is located at the edge of the transcript, it will not be centered.
- not all hgvs nomenclature is covered.
Installation
With pip (recommended)
pip install hgvs2seq
With github
requiresite : biopython
git clone https://github.com/Bio2M/hgvs2seq.git
PATH=${PWD}/hgvs2seq/hgvs2seq:$PATH # also in your .bashrc
Usage
-h, --help show this help message and exit
-q, --query QUERY Query as TSV format
-r, --ref, --reference REF
Annotation Fasta File, according the query
-t, --out-type {ref,alt,both}
result contain only ALT, REF, or both sequences
-c, --col, --column COL [COL ...]
column index of the HGVS notation. The first column is '1'
(or 'A'). If HGVS is splitted in two columns (refseq &
variant) specify the two columns, for example '5 10': 5 is
the column for the reference (ex: NM_004006.2) and 10 is
the column for the variant (ex: c.93+1G>T). 'E J' is the
same. If not specified, hgvs2seq will try to find it (one
column only).
-s, --size SIZE Output sequence size
-a, --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 file name (default: stdout)
-f, --output-format {fa,tsv}
Output file format (default: fa)
-n, --no-header Query file has no header
-w, --no-warnings do not add warnings to fasta headers
-m, --show-messages Show Message explanations and quit
-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
hgvs2seq-0.2.1b0.tar.gz
(26.9 kB
view details)
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 hgvs2seq-0.2.1b0.tar.gz.
File metadata
- Download URL: hgvs2seq-0.2.1b0.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e862c67850cb7f75fcee47d078400d3337632efbb3972028ea6c78222b5b632d
|
|
| MD5 |
ae82bc10dae2e73cc5c7aac65b33386e
|
|
| BLAKE2b-256 |
b1ee2d1f2c890c8816f7b8b99e3ff9ae2f311420a445d096ca70c542461a5e4b
|
File details
Details for the file hgvs2seq-0.2.1b0-py3-none-any.whl.
File metadata
- Download URL: hgvs2seq-0.2.1b0-py3-none-any.whl
- Upload date:
- Size: 27.8 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 |
ec4ec77126a4408bb9b5a74cc5bf5c8c065becfb5c8cf5a784c6efd0a1e432d2
|
|
| MD5 |
e94bfc4616a8c15af300b32b1a267833
|
|
| BLAKE2b-256 |
514c769ae594222510b37769b57d5cab22ca33f4a05e433706d57f5ac56c6191
|