Skip to main content

Extract gene length based on featureCount calculation gene nonredundant exon length method.

Project description

GetGeneLength Package

  • Extract gene length based on featureCount calculation gene nonredundant exon length method.

  • If you want to calculate TPM/FPKM/RPKM to visualize results and for other downstream analysis with only count matrix, you can use this GetGeneLength function to get gene length information and get normalized values.

Install

$ pip install GetGeneLength

Usage

help infomation:

$ GetGeneLength -h
usage: GetGeneLength --database ensembl --gtffile gencode.v38.annotation_human.gtf --lengthfile gene_length.txt

Get gene length from GTF annotation file.

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -d {ucsc,ensembl,gencode}, --database {ucsc,ensembl,gencode}
                        which annotation database you choose. (default="ensembl")
  -g GTFFILE, --gtffile GTFFILE
                        input your GTF file. (ucsc/ensembl/gencode)
  -l LENGTH_INFO, --lengthfile LENGTH_INFO
                        output your gene lenth file. (gene_length.txt)

Thank your for your support, if you have any questions or suggestions please contact me: 3219030654@stu.cpu.edu.cn.

for ucsc gtf file:

$ GetGeneLength -d ucsc -g hg38.ncbiRefSeq.gtf -l ucsc_gene_length.txt
Your job is running, please wait...

Your job is done!

$ head -n 3 ucsc_gene_length.txt
TRNP	TRNP	68
TRNT	TRNT	66
CYTB	CYTB	1141

for gencode/ensembl gtf file:

$ GetGeneLength -d gencode -g gencode.v38.annotation_human.gtf -l gene_length.txt
Your job is running, please wait...

Your job is done!

$ head -n 3 gene_length.txt
DDX11L1	ENSG00000223972.5	transcribed_unprocessed_pseudogene	1735
WASH7P	ENSG00000227232.5	unprocessed_pseudogene	1351
MIR6859-1	ENSG00000278267.1	miRNA	68

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

GetGeneLength-0.0.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

GetGeneLength-0.0.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file GetGeneLength-0.0.4.tar.gz.

File metadata

  • Download URL: GetGeneLength-0.0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for GetGeneLength-0.0.4.tar.gz
Algorithm Hash digest
SHA256 bc4ec18dce719fac4048e24190fa2c396997825921469bbf34d7fe80187dd66f
MD5 288feae8eed3554466a39511997dd18f
BLAKE2b-256 0d89b46c42c2b7cba99d1ad2a581984f0fca9e37b01c3bc9c531b09d3c4fe875

See more details on using hashes here.

File details

Details for the file GetGeneLength-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: GetGeneLength-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for GetGeneLength-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 78d3aa213f5f953780992702e68983d12a5318adf8ea75c3fa0f1e99f7acbac8
MD5 e684873efc300d03b03eb367c652d426
BLAKE2b-256 8033ea7f9f176bd9a9b10428ee5d30394824499fa27ea1679c3c1064e94364f1

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