Convert Ensembl IDs to gene symbols
Project description
*Ensembl_converter
The Ensembl_converter
package is a Python library that allows you to convert Ensembl IDs to gene symbols. It provides a simple and convenient way to retrieve gene symbols for a given list of Ensembl IDs using the Ensembl REST API.
Installation
You can install Ensembl_converter
using pip:
pip install Ensembl_converter
Usage
To convert Ensembl IDs to gene symbols, follow these steps:
- Import the
EnsemblConverter
class from the Ensembl_converter package. - Create an instance of
EnsemblConverter
- Call the
convert_ids
method with a list of Ensembl IDs as input.
Here's an example:
from Ensembl_converter import EnsemblConverter
# Create an instance of EnsemblConverter
converter = EnsemblConverter()
# Provide a list of Ensembl IDs
ensembl_ids = ['ENSG00000000457', 'ENSG00000273486', 'ENSG00000273493']
# Convert Ensembl IDs to gene symbols
result = converter.convert_ids(ensembl_ids)
# Print the resulting DataFrame
print(result)
This will output a DataFrame with two columns: ENSG (Ensembl IDs) and Symbol (gene symbols).
Options
The EnsemblConverter
class supports the following options:
use_progressbar
(default=False): Set this toTrue
to display a progress bar during the conversion process. This can be useful for larger gene lists.
Dependencies
The Ensembl_converter package depends on the following libraries:
- requests
- pandas
- tqdm
These dependencies will be automatically installed when you install the Ensembl_converter
package (If you don't already have these installed).
Contributing
Contributions to Ensembl_converter
are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ensembl_converter-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91968c260e32c907caf4900fb5eca2f9256c72f3e1818cd12b46fa05ac630a21 |
|
MD5 | f51588cd53f0094921b1e356c268df08 |
|
BLAKE2b-256 | d6a4922f325b8ae314452dc269b72371077247c9d5722fbb9064873881620663 |