Gene Feature Extraction and Keyword Analysis
This repository contains Python functions for extracting gene features from a GFF3 file and performing keyword analysis using TF-IDF (Term Frequency-Inverse Document Frequency).
Functions
Extraction.py:
This file contains methods required to extract information from the genome and descriptions of organisms.
extract_keywords(text: str) -> set
Returns important keywords from a given text using TF-IDF. The function tokenizes the text, removes stopwords, and computes the TF-IDF scores. It then selects the top N words as keywords.
Args:
text(str): The input text from which keywords are drawn.
Returns:
extraction(set): A set of important keywords.
extract_gene_features(gff_file: str, output_filename: str) -> None
Extracts gene features from a GFF3 file and writes them to a new file.
Args:
gff_file(str): Path to the GFF3 file.output_filename(str): Path to the output file.
extract_gene_info(gff_file: str, output_filename: str) -> None
Extracts gene IDs and descriptions from a GFF3 file and writes them to a new file.
Args:
gff_file(str): Path to the GFF3 file.output_filename(str): Path to the output file.
Read.py
This file contains a method to read descriptions of genes and return ones that match to generated keywords.
read_descriptions(fp: str, kwords: set) -> set
Finds matching gene IDs and descriptions based on provided keywords.
Args:
fp(str): The filepath to the gene descriptions text file.kwords(set): A set of keywords to search for.
Returns:
matching_descriptions(set): A set of tuples containing matching gene IDs, descriptions, and keywords.
Metadata
Release files for PyGPTK 0.0.1
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 |
|---|---|---|---|---|
| pygptk-0.0.1.tar.gz | 8.2 kB | Without provenance | Details for pygptk-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyGPTK-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for PyGPTK-0.0.1-py3-none-any.whl |
Total release size: 19.8 kB
Release files / pygptk-0.0.1.tar.gz
| Download URL | pygptk-0.0.1.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cea8883f53562f45794239a828dc5e649cc1ebc42e6d026cf375bd594c8d8cb0
|
|
BLAKE2b-256 checksum How to use checksums |
2c179cbeae43ebb8d3f6ecf983a36313a6419f1395461dc3aff5a759921b9a1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.4
|
Release files / PyGPTK-0.0.1-py3-none-any.whl
| Download URL | PyGPTK-0.0.1-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3d5b402020bf8bac8384c82d76785cc37e644ba6f32a3bc3c950df9eeda4104
|
|
BLAKE2b-256 checksum How to use checksums |
4df64a62846c6f1a2da91a7a1fd0ff81e91e7f5b820abc02d9667f93818a7af2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.4
|
Security for PyGPTK 0.0.1
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.