Giter VIP home page Giter VIP logo

proteinpersistent.jl's Introduction

ProteinPersistent

Build Status Coverage Status

Calculate the persistence diagrams of proteins.

Installation

Dependencies

There are a few python packages you ought to install beforehand.

  • python 2.7
    • Tkinter
    • Cython
    • ripser
    • biopython

After having the previous packages installed, follow the steps below to install the package.

using Pkg
Pkg.add("https://github.com/chronchi/ProteinPersistent.jl")

Usage

Persistence Diagrams

To calculate the persistence diagram of a protein you can call the function returndiagram and pass as input the path to the protein PDB file.

pathpdb = path_to_pdbprotein
diagrams = returndiagram(pathpdb)

As default it will return the 0th and 1st persistence diagram using the Vietoris-Rips complex. To specify the dimensions to be calculated you can pass as an optional argument as below.

pathpdb = path_to_pdbprotein
diagrams = returndiagram(pathpdb, maxdim = k)

The above snippet will return all the persistence diagrams up to the dimension k. The default k is 1.

Protein Coordinates

If you want to get the coordinates and use another persistent homology algorithm you can call coordpdb and as previously pass the protein PDB file path.

pathpdb = path_to_pdbprotein
proteincoordinates = coordpdb(pathpdb)

The output will be a DataFrame with five columns, where the first three columns are the atom coordinates from the protein, the fourth column corresponds to the respective atoms and the van der Waals radii are given in the last column. The values can be see as in the following code.

pathpdb = path_to_pdbprotein
proteincoordinates = coordpdb(pathpdb)

# return the 1st coordinate
proteincoordinates[:coord1]

# return the 2nd coordinate
proteincoordinates[:coord2]

# return the 3rd coordinate
proteincoordinates[:coord3]

# return the respective atom
proteincoordinates[:atom_name]

# return the respective van der Waals radius
proteincoordinates[:radius]

proteinpersistent.jl's People

Contributors

chronchi avatar

Stargazers

 avatar

Watchers

 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.