Several Python scripts were written by developers and users to help others use PyRosetta. PyMOL ScriptsPyMOL is the favorite visualizer to use among the PyRosetta community. So much so that we built a Mover specifically for sending structures directly to an instance of PyMOL running the listener script. PyMOL Servers (listeners)PyMOL must run a "listener" script to properly translate packets sent to it from Rosetta. These listeners can only translate a few types of packets but can be customized to translate any desired output. If you plan on using PyRosetta with PyMOL often, we recommend you add the line "run PyMOLPyRosettaServer.py" to your .pymolrc so PyMOL starts automatically listening to PyRosetta. Currently, we only support PyRosetta v2.0 beta however another version of the script is posted here for developers. For more details please see the PyMOL_Mover Tutorial.PyMOLPyRosettaServer.py for PyRosetta v2.0 beta PyMOLPyRosettaServerNew.py for newest PyRosetta (developers only) Sample ScriptsTwelve sample scripts are presented here to demonstrate PyRosetta's data structures, syntax, and traditional applications. Any data files required by default are also provided. For convenience, the scripts are packaged in various compressed (tar gz) directories. Many applications with decompress by default upon download, if not uncompress from the commandline using "tar -zxvf". Since these sample scripts are filled with comments on usage, we've provided a summary of the language used. README Sample Scripts Essential Objects pose_structure.py requires data file test_in.pdb pose_scoring.py requires data file test_in.pdb fold_tree.py movemap.py requires data file test_in.pdb packer_task.py requires data file test_in.pdb Folding Applications folding.py requires data files test_in.pdb, test_in.frag3, and test_in.frag9 refinement.py requires data file test_in.pdb loop_modeling.py requires data files test_in.pdb and test_in.frag3 Docking Applications ala_scan.py requires data file test_dock.pdb (requires the Interface object contained only in the newest versions of PyRosetta) Protein Docking docking.py requires data file test_dock.pdb DNA Docking dna_interface.py requires data file test_dna.pdb Small Molecule Docking ligand_interface.py requires data files test_lig.pdb and ATP.mdl and the tool molfile_to_params.py (compressed directory) ToolsNumerous helper scripts have been developed to make using PyRosetta easier. As Rosetta developers, PyRosetta provides unique challenges since some changes are appropriate to make in the Rosetta C++ source code while others are better handled by constructing Python objects and methods. In previous releases of PyRosetta, these methods were directly added to the __init__.py file within PyRosetta and thus loaded into every new session. Customizing the __init__.py file is still a useful way to introduce your own personal changes but the number of useful tools has made this impractical.Several of the Tools below rely on third-party software. If using PyRosetta on a computer network, make sure to obtain or request the required software. These tool scripts are meant to provide a starting point for many custom applications. They are likely to become outdated soon and are not guaranteed to work like the sample scripts. Current ToolsUnfortunately, the rapid changes to Rosetta and PyRosetta have made support difficult. The tools provided here are developer favorites or use methods essential to some PyRosetta applications. These may not work with all versions of PyRosetta and have only been tested with PyRosetta v2.0 beta or intermediate revisions. Once you are experienced using Python and PyRosetta (by performing the workshops and studying the sample scripts), editing these files to your liking should be fairly easy (sorry we cannot support all tasks directly).cleaning.py simple PDB file cleaning for PyRosetta, removes non-ATOM lines and redundant chains rcsb.py loads PDB files, FASTA files, and Poses directly from RCSB (requires urllib)mutants.py performs sequence changes, constructs Poses from sequences, etc. generate_resfile.py produces resfiles for use with PackerTasks molfile2params converts .mdl or .mol files to .params files, included with ligand_docking etc. load_ligand.py loads files from PubChem and adds them to the minirosetta_database (requires molfile2params and openbabel)extract_coords_pose.py extracts coordinates from a Pose object into Python lists structural_alignment.py the Kabsch alignment algorithm for protein superimposition (requires numpy and extract_coords_pose.py)All FilesAll the script and data files are listed below |