Skip to main content

Extract genomic sequences and visualize the genomic features in word document

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gtf2seq-0.1.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gtf2seq-0.1.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file gtf2seq-0.1.0.tar.gz.

File metadata

  • Download URL: gtf2seq-0.1.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for gtf2seq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 757573249d640205dafd9dcee9edff636ed2b167c6c8f47dc8c32e9f6dd1b1d1
MD5 99c97f32be7a7d9893af82579be4a177
BLAKE2b-256 2a223b3ed1e344ba4a7ceba2e0ae9090e71501d3f7299cb73cc2c4cf031dbf39

See more details on using hashes here.

File details

Details for the file gtf2seq-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gtf2seq-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for gtf2seq-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 147db2d436fde35fdc7bcd86ca2d9b258f67987339ddb2aa347d2751aba856b1
MD5 c70c6b5d57aaafcbca18163d56a8b0e4
BLAKE2b-256 024ab31b5151661b65feee3d29da0aad344fe00c2eef327a2a2688ca63cd400a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page