gtf2seq
Motivation: Although tools like snpEFF have been developed for annotating and predicting the effects of variants, there is a lack of tools to show the variants in gene sequences. In order to enable research-ers to easily extract sequences from GFF files with annotations of genomic features, we developped gff2seq to fill this gap.
Results: Gff2seq, an open-source toolkit, can extract genomic sequences and visualize the genomic features in word document.
Installation
Install using pip (recommended)
pip install gtf2seq
Install yourself
git clone https://github.com/caoliru/gff2seq.git
pip3 install pyfaidx==0.5.9.5
pip3 install pysam==0.16.0.1
pip3 install python-docx==0.8.10
pip3 install PyVCF==0.6.8
Usage
usage: gtf2seq.py [-h] -g GTF -f FASTA -t TRANSCRIPTID_LIST [--vcf VCF]
[--sample SAMPLE] [--exclude_intron] [-o OUTPUT]
optional arguments:
-h, --help show this help message and exit
-g GTF, --gtf GTF Genome annotation file in GTF format
-f FASTA, --fasta FASTA
Genome sequences in FASTA format
-t TRANSCRIPTID_LIST, --transcriptid_list TRANSCRIPTID_LIST
List of transcript IDs
--vcf VCF VCF files with snpEff annotation.
--sample SAMPLE Sample/individual ID if you want to output genotypes in the sequence for a specific sample/individual.
--exclude_intron Exclude intron sequences in the output
-o OUTPUT, --output OUTPUT
Output file in Word format
Example using test data
gtf2seq.py -g test/test.gtf -f test/Zea_mays.B73_RefGen_v4.part.fa -t test/target_transcript_id.txt --vcf test/Mo17_snp.snpEff.part.vcf.gz --sample Zea_mays_Mo17 -o test.docx
Release files for gtf2seq 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gtf2seq-0.1.0.tar.gz | 12.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gtf2seq-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:32.6 kB
Release files / gtf2seq-0.1.0.tar.gz
| Download URL | gtf2seq-0.1.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
757573249d640205dafd9dcee9edff636ed2b167c6c8f47dc8c32e9f6dd1b1d1
|
|
BLAKE2b-256 checksum How to use checksums |
2a223b3ed1e344ba4a7ceba2e0ae9090e71501d3f7299cb73cc2c4cf031dbf39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.13
|
Release files / gtf2seq-0.1.0-py3-none-any.whl
| Download URL | gtf2seq-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
147db2d436fde35fdc7bcd86ca2d9b258f67987339ddb2aa347d2751aba856b1
|
|
BLAKE2b-256 checksum How to use checksums |
024ab31b5151661b65feee3d29da0aad344fe00c2eef327a2a2688ca63cd400a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.13
|