Skip to main content

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:

  1. Import the EnsemblConverter class from the Ensembl_converter package.
  2. Create an instance of EnsemblConverter
  3. 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 to True 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


Download files

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

Source Distribution

ensembl_converter-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

ensembl_converter-0.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file ensembl_converter-0.0.1.tar.gz.

File metadata

  • Download URL: ensembl_converter-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/6.6.0 pkginfo/1.7.1 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for ensembl_converter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 af980e66391ae911181370910e229cba7b2192612ffe453b356ab45ed5dec1ed
MD5 b7762bb4dc4b85be21b26ab635c54b96
BLAKE2b-256 fb819168d3eaf100da3b5fd3157a1c571c2db05b8b63136ad309c2aec51fae91

See more details on using hashes here.

File details

Details for the file ensembl_converter-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ensembl_converter-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/6.6.0 pkginfo/1.7.1 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3

File hashes

Hashes for ensembl_converter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91968c260e32c907caf4900fb5eca2f9256c72f3e1818cd12b46fa05ac630a21
MD5 f51588cd53f0094921b1e356c268df08
BLAKE2b-256 d6a4922f325b8ae314452dc269b72371077247c9d5722fbb9064873881620663

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