Git Product home page Git Product logo

pdbwords's Introduction

ABOUT

pdbwords was written by Kresten Lindorff-Larsen, University of Copenhagen, in 2015.

I cannot guarantee that your eyes will not start to bleed if you read the code.

The main ingredient of pdbwords is a protein alphabet, developed by Mark Howarth: http://www.bioch.ox.ac.uk/howarth/alphabet.htm

The python code is distributed under GNU General Public License v3.0

THIS IS HOW YOU RUN PDB WORDS

./pdbwords.py Just write your text here to set it in PDBWORDS

Requirements

The code is essentially a wrapper for ImageMagick, which needs to be installed separately; see http://www.imagemagick.org

I have only tested the code under macOS

More information

Currently the letters A-Z can be used, and it is also possible to use . , ! ? :

All letters will be set as uppercase letters, but you can input as either lower or upper.

Every unknown characters will be set as a space.

Lines will be broken up so that there are no more than MAXCHARS (hardcoded in script) characters on each line. If you want to force a line break, just write xLBx as a (case sensitive) word (again, hardcoded in LINEBREAK in script).

The two last features makes the following hack work to insert blank lines xLBx @ xLBx (which forces a line break, then the @ is converted to a space (it is unknown) and then a new linebreak. Not elegant, but it works.

Background

The letters were mostly discovered by Mark Howarth and are described in a paper: http://www.nature.com/nsmb/journal/v22/n5/full/nsmb.3011.html and a website: http://www.bioch.ox.ac.uk/howarth/alphabet.htm

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.