Comments (9)
I had a closer look at the python code. I saw the option for execute commands that ChatGPT suggested. I will try more cases and see how far we can go.
from chatmol.
Yes, I found the magic word 'True'. This is a wonderful starting point. How about we stretch this functionality to do more fancy actions. We can feed ChatGPT a lot of text - actions pairs of the most useful and common tasks behind the scenes. In this allow ChatGPT to exact a set of structured information (actions and their corresponding parameters), and based on this extracted information (in JSON format), and can use PyMol script to perform a sequence of actions behind the scene, so from user perspective, ChatMol is really smart.
We can continue our discussion, perhaps with email or WeChat. I am living in New York, there is 12 hour time difference between New York and Beijing. My email is [email protected].
from chatmol.
BTW, I also tried the "run" command, and got the same error.
from chatmol.
try pip install openai
in the pymol command line. Seems that your pymol uses different python than your deafult environment. The run
and load
not make a difference here.
from chatmol.
Many thanks, Jinyuan. That solves the problem.
Any plan to extend the current ChatGPT capability? From your sample commands, it looks like the current implementation in PyMol is more like a advanced help function to find out how to do things in PyMol. The next step is let ChatGPT to perform a set of actions automatically. For instance. if one type "chatgpt align two proteins 1ake and 4ake", the chatgpt plugin should perform the whole procedure, fetching proteins, align them and display. What do you think about this idea? I am going to hire two summer interns to do something similar for fun. It would be great if we can work together.
from chatmol.
I just read a blog about your work: https://techserr.com/chatgpt-the-future-of-pymol-automation/
from chatmol.
from chatmol.
The outcome after executing chatgpt align two proteins 1ake and 4ake, True
:
PyMOL>chatgpt align two proteins 1ake and 4ake, True
ChatGPT: To align two proteins in PyMOL, you can use the `align` command. Here's an example code snippet that aligns the two proteins 1AKE and 4AKE:
``
# Fetch the two proteins
fetch 1ake
fetch 4ake
# Align the two proteins
align 1ake, 4ake
# Visualize the aligned proteins
show cartoon
color blue, 1ake
color green, 4ake
``
In this code, we first fetch the two proteins using the `fetch` command. Then, we use the `align` command to align the two proteins. Finally, we visualize the aligned proteins using the `show` and `color` commands. The `show` command displays the protein as a cartoon, while the `color` command sets the color of the two proteins to blue and green, respectively.
Executing code: fetch 1ake
PyMOL>fetch 1ake
TITLE STRUCTURE OF THE COMPLEX BETWEEN ADENYLATE KINASE FROM ESCHERICHIA COLI AND THE INHIBITOR AP5A REFINED AT 1.9 ANGSTROMS RESOLUTION: A MODEL FOR A CATALYTIC TRANSITION STATE
ExecutiveLoad-Detail: Detected mmCIF
CmdLoad: "./1ake.cif" loaded as "1ake".
Executing code: fetch 4ake
PyMOL>fetch 4ake
TITLE ADENYLATE KINASE
ExecutiveLoad-Detail: Detected mmCIF
CmdLoad: "./4ake.cif" loaded as "4ake".
Executing code: align 1ake, 4ake
PyMOL>align 1ake, 4ake
Match: read scoring matrix.
Match: assigning 808 x 575 pairwise scores.
MatchAlign: aligning residues (808 vs 575)...
MatchAlign: score 2180.000
ExecutiveAlign: 3312 atoms aligned.
ExecutiveRMS: 7 atoms rejected during cycle 1 (RMSD=18.57).
ExecutiveRMS: 2 atoms rejected during cycle 2 (RMSD=18.51).
Executive: RMSD = 18.491 (3303 to 3303 atoms)
Executing code: show cartoon
PyMOL>show cartoon
Executing code: color blue, 1ake
PyMOL>color blue, 1ake
Executive: Colored 3816 atoms and 1 object.
Executing code: color green, 4ake
PyMOL>color green, 4ake
Executive: Colored 3459 atoms and 1 object.
Executed code successfully.
from chatmol.
Great, hope we have a further discussion soon.
from chatmol.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatmol.