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
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
File details
Details for the file drug_repurposing_extract-0.2.3.tar.gz
.
File metadata
- Download URL: drug_repurposing_extract-0.2.3.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55ffdf0135cb2ff0a58f684292ff5b888278d424d8fb48ddab3f024407048373 |
|
MD5 | 18b9e5c1f8d61802f27d318b6f88dbef |
|
BLAKE2b-256 | b8bb244e4cee8c2bc93210a6ee34f9bc84f3cac9833de55ace6ca666cf6da211 |
File details
Details for the file drug_repurposing_extract-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: drug_repurposing_extract-0.2.3-py3-none-any.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b01d3832948cc2cbfd3ea1053adc5faf2a56dfd49cd77d96df97f4410a93c42 |
|
MD5 | 49503cf7a95574544922b8f388e705e4 |
|
BLAKE2b-256 | edb7adf1fbd1b133a9cfa4265e24339fcec9dd3faa68e6cb26f431236433fcda |