Code Monkey home page Code Monkey logo

pas2rs's Introduction

PAS2RS

PAS2RS is a simple tool for protein absolute structure transformation to relative structure.

Running the script

The tool can be run two different ways. Either with input file passed as parameter or input passing through pipe.

# reading from STDIN
> cat input_file | ./PAS2RS.sh
# reading from file
> ./PAS2RS.sh input_file 

Input

Protein absolute structure is a sequence of 3D coordinates of central carbon of every residue in protein.

PAS2RS expect relative structure to be passed through STDIN or regular text file. Either way, every line of input has to consist of 3 floats representing 3 coordinates of a given central carbon. See the example input file.

Output

Relative structure of a protein consist of 5 features per every residue in protein. That is central carbon angles (CCA), forward central carbon plane torsion angles (CCPTA_F) and directions (CCPTD_F) and forward central carbon plane torsion angles (CCPTA_B) and directions (CCPTD_B).

Output is printed to the STDOUT.

Output example

> cat test/coordinates.txt | ./PAS2RS.sh

CCA CCPTA_F CCPTD_F CCPTA_B CCPTD_B
0 0 0 0 0
0.333333333333 0 0 0.608172322575 -1.0
0.333333333333 0.608172322575 -1.0 0.695913171072 1.0
0.5 0.695913171072 1.0 0.695913171072 -1.0
0.333333333333 0.695913171072 -1.0 0.0 0.0
0.333333333333 0.0 0.0 0.391827677425 1.0
6.70787927625e-09 0 0 0 0
0.333333333333 0.391827677425 1.0 0.391827677425 1.0
0.333333333333 0.391827677425 1.0 0.608172322575 -1.0
0.333333333333 0.608172322575 -1.0 0.391827677425 1.0
0.333333333333 0.391827677425 1.0 0.0 0.0
0.666666666667 0.0 0.0 1.0 0.0
6.70787927625e-09 0 0 0 0
0.666666666667 1.0 0.0 0.0 0.0
0.333333333333 0.0 0.0 0.391827677425 -1.0
0.666666666667 0.391827677425 -1.0 1.0 0.0
0.666666666667 1.0 0.0 0.0 0.0
0.333333333333 0.0 0.0 0.608172322575 1.0
6.70787927625e-09 0 0 0 0
0.666666666667 0.608172322575 1.0 0 0
0 0 0 0 0

pas2rs's People

Contributors

michalfilippi avatar

Stargazers

Pavel Filippi avatar

Watchers

James Cloos avatar  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.