24 February 2020 1 1K Report

I want to write a script that asks the user to enter the PDB file so that the script can be entered (it prompts the user to enter it), the user enters the 4 character code, then the rest of the script loads (it shows cartoon, changes colors of chains, etc).

Is it possible to ask for this user input? or in the script do i have to write "fetch 3GKF" or whatever the file name is, and then change the PDB name every time?

Put another way I want to essentially -

x = ""

x = raw_input("Enter PDB Code: ")

fetch x

Thanks!

More Audrey Allen's questions See All
Similar questions and discussions