Skip to main content

Library for automatic generation of drug repurposing data

Project description

Project Description for drug-repurposing-extract

This is a Python package for drug repurposing data extraction. You can use it to retrieve and analyze data related to specific compound IDs (CIDs) for potential drug repurposing.

Installation

You can install the package using pip:

pip install drug-repurposing-extract

Usage

Import the package

import drug_repurposing
from drug_repurposing import get_data

Generate CSV File from CID List

To generate a CSV file from a list of CIDs (Compound IDs), you can use the generate_data_from_list function:

get_data.generate_data_from_list([942, 1070])

Generate CSV List from Uploading a CSV File of CID List

You can also generate a CSV file from a list of CIDs by uploading a CSV file containing the CID list. Here's how you can do it in a Google Colab environment:

from google.colab import files
import io
import pandas as pd

uploaded = files.upload()
uploaded_file = list(uploaded.values())[0]
df = pd.read_csv(io.BytesIO(uploaded_file))
data = df["cid"].values

get_data.generate_data_from_list(data)

Predicting the CIDs Data

To predict data based on CIDs, you can follow these steps:

Make sure you have a CSV file (e.g., complete_data.csv) generated from the previous steps.

Read the CSV file using pandas:

import pandas as pd
df = pd.read_csv("complete_data.csv")

Use the predict_data function to perform predictions:

get_data.predict_data(df)

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

drug_repurposing_extract-0.2.3.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

drug_repurposing_extract-0.2.3-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file drug_repurposing_extract-0.2.3.tar.gz.

File metadata

File hashes

Hashes for drug_repurposing_extract-0.2.3.tar.gz
Algorithm Hash digest
SHA256 55ffdf0135cb2ff0a58f684292ff5b888278d424d8fb48ddab3f024407048373
MD5 18b9e5c1f8d61802f27d318b6f88dbef
BLAKE2b-256 b8bb244e4cee8c2bc93210a6ee34f9bc84f3cac9833de55ace6ca666cf6da211

See more details on using hashes here.

File details

Details for the file drug_repurposing_extract-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for drug_repurposing_extract-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b01d3832948cc2cbfd3ea1053adc5faf2a56dfd49cd77d96df97f4410a93c42
MD5 49503cf7a95574544922b8f388e705e4
BLAKE2b-256 edb7adf1fbd1b133a9cfa4265e24339fcec9dd3faa68e6cb26f431236433fcda

See more details on using hashes here.

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