gfeat
Python genomic features extractor from raw files (Fasta, GTF and VCF).
gfeat is a convenient tool for extracting diverse DNA features for genomic modeling and analysis. It allows to get, for example, transcript Kozak sequence and GC content, genome codon pair bias and etc. It is also possible to inject SNPs using a VCF file, get position-type variant matrices and investigate sequences with different combinations of heterozygous variants (when homozygous always stay injected in the sequence).
You can find several short usage examples in the Tutorial section of the documentation.
Free software: MIT license
Documentation: https://i12g-gagneurweb.in.tum.de/public/docs/gfeat
Features
GFGenome:
- GFGenome.get_consensus_Kozak_seq(seq=False)
Consensus Kozak sequence
- GFGenome.get_Kozak_matrix()
Kozak sequence matrix (rows - transcripts)
- GFGenome.get_consensus_stop_codon_context(seq=False)
Consensus stop codon context sequence
- GFGenome.get_stop_codon_context_matrix()
Stop codon context matrix (rows - transcripts)
- GFGenome.get_codon_pair_bias()
Codon pair bias
- GFGenome.get_nucleobase_mutation_table()
Nucleobase mutation matrix (table with positions of variants and their type in Kozak sequence and stop codon context)
GFTranscript:
- GFTranscript.codon_counts()
Coding sequence codon count
- GFTranscript.utr5_motif_counts(pattern)
5’UTR motif count
- GFTranscript.utr3_motif_counts(pattern)
3’UTR motif count
- GFTranscript.codon_usage()
Coding sequence codon usage
- GFTranscript.gc_content(region)
Coding sequence, 5’UTR or 3’UTR G and C content
- GFTranscript.get_Kozak_seq()
Kozak sequence
- GFTranscript.get_stop_codon_context()
Stop codon context
- GFTranscript.get_codon_pairs_frequency()
Coding sequence codon pair frequency
Upstream AUG:
- UpstreamAUG.predict_on_sample(seq)
Predict on sample (get all AUGs with the information whether they are in-frame or not and whether they have a stop codon or not)
- UpstreamAUG.predict_on_sample_with_pos(seq)
Predict on sample with position (predict on sample plus positions of AUGs)
- UpstreamAUG.predict_on_sample_with_pos_pandas()
Predict on sample with position and appending to the passed dictionary
- UpstreamAUG.predict_on_batch(seq_list)
Predict on batch
5’UTR class:
- FivePrimeUTRSeq(data, reverse_complement_bool, contig=None, strand=None)
An object contains list of all 5’UTR sequences, their positions, exons, positions of exons and corresponding transcripts
Auxiliary functions:
- VCFMutator.mutate_sequence(interval, fasta=None, seq_whole=None)
Mutate sequence
- VCFMutator.mutate_codon_context(intervals, seqs, column_names)
Mutate codon context
- reverse_complement(dna)
Reverse complement
- PCA_with_standard_sample_deviation_scaling(df, n_comp=2)
Pca with scaling
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template. gfeat is based on pyensembl package and can be partially viewed as its extension.
History
0.1.0 (2018-09-27)
First release on PyPI.
1.0.0 (2018-09-28)
First stable release on PyPI.
Metadata
Release files for gfeat 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| gfeat-1.0.0.tar.gz | 10.8 MB | Without provenance | Details for gfeat-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gfeat-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for gfeat-1.0.0-py2.py3-none-any.whl |
Total release size: 23.1 MB
Release files / gfeat-1.0.0.tar.gz
| Download URL | gfeat-1.0.0.tar.gz |
|---|---|
| Size | 10.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9ad304d7ffcf5931c2ac0ef1921ac99e2369ce54c78f7c5ae6c68194fcf9e4b
|
|
BLAKE2b-256 checksum How to use checksums |
b609ec4f2affaa26a08d21e8df06f02e4adae2ddb3eb5a85c6d55bb24473f218
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
|
Release files / gfeat-1.0.0-py2.py3-none-any.whl
| Download URL | gfeat-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 12.3 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
88d5c2d64d908edca0129b8f840098ad02ecf87df6e44a43b8f77f56c7f41988
|
|
BLAKE2b-256 checksum How to use checksums |
824d0ef512272bc724c63f117e4ec23bc22ef6dc55238512cc5db39f198e80de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
|
Security for gfeat 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.