Coder Social home page Coder Social logo

mmterm's Introduction

mmterm

Have you ever wondered if you could visualise a protein in the terminal? Do you miss the resolution of 1990s RasMol? More seriously, have you ever wanted to get a feel for a protein/DNA/RNA structure on a remote system without having to copy it locally and load it in PyMol?

If so, mmterm is for you. It gives you a quick interactive view of a PDB/mmCIF/MMTF/MAE/MAEGZ file, purely in the terminal. It should work anywhere that the Python curses module works, i.e. anywhere but Windows. It is built on top of drawille, NumPy, Biopython and Schrödinger.

Installation

Python 3 is required.

git clone https://github.com/jgreener64/mmterm
cd mmterm
pip install -e .

Usage

Installation puts the executable mmterm on the path. Run mmterm -h to see the help text. To view a structure, just give the filepath:

mmterm 1FME.pdb

mmterm example

Controls for rotating, translating, zooming, spinning and playing trajectories are given. The file format is guessed from the file extension but can be given explicitly with -f:

mmterm 1FME -f mmcif

Other options:

# Show a different model initially
mmterm 1FME.pdb -m 5

# Only show given chains
mmterm 4KPY.pdb -c A B

# Decrease the size of the viewing box
mmterm 1FME.pdb -s 50

# Read from stdin
cat 1FME.pdb | mmterm -f pdb -

You can also use mmterm to view proteins from the REPL, from IPython or from other Python scripts:

from mmterm import view
view("1FME.pdb")

mmterm's People

Contributors

a-r-j avatar blake-riley avatar dimkal avatar jgreener64 avatar sbliven avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.