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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page