Skip to content

mo-zd/ChatGPT-KNIME-Connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT-KNIME Connector

The ChatGPT-KNIME Connector is a Python package that allows you to integrate OpenAI's ChatGPT and KNIME Analytics Platform for drug design research. It includes functions for generating molecules with ChatGPT and screening them with a KNIME workflow, as well as a function for outputting data to KNIME.

chat-gpt

Requirements

Python 3
OpenAI API key
KNIME Analytics Platform
Molecule Screening workflow in KNIME

Installation

  1. Clone the repository to your local machine.
  2. Install the required packages with pip install -r requirements.txt.

Usage

  1. Import the package in your Python script with import ChatGPT_KNIME_Connector.
  2. Set your OpenAI API key with openai.api_key = "YOUR_API_KEY".
  3. Call the generate_molecules() function to generate a list of molecules based on a starting sequence.
  4. Call the screen_molecules() function to screen the generated molecules with a KNIME workflow.
  5. Call the knime_output() function to output the screened molecules back to KNIME.

Here is an example code snippet:

import ChatGPT_KNIME_Connector
import pandas as pd

# Set your OpenAI API key
openai.api_key = "YOUR_API_KEY"

# Generate molecules with ChatGPT
molecules = ChatGPT_KNIME_Connector.generate_molecules('C')

# Screen molecules with KNIME
screened_molecules = ChatGPT_KNIME_Connector.screen_molecules(molecules)

# Output data to KNIME
ChatGPT_KNIME_Connector.knime_output(screened_molecules)

Credits

The ChatGPT-KNIME Connector package was created by Mohsen Yazdani.

Contributing

If you find any bugs or would like to contribute to the development of the ChatGPT-KNIME Connector, please open an issue or a pull request on this repository.

License

This package is released under the MIT license. See LICENSE for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published