GithubHelp home page GithubHelp logo

hng / biomolecularstructures.jl Goto Github PK

View Code? Open in Web Editor NEW
12.0 7.0 6.0 829 KB

The BiomolecularStructures package provides several Bioinformatics-related modules for Julia.

License: MIT License

Julia 100.00%
julia mafft pdb bioinformatics blast

biomolecularstructures.jl's Introduction

Logo

Build Status Coverage Status Documentation Status

Modules

The BiomolecularStructures package provides several Bioinformatics-related modules:

  • WebBLAST - A module to communicate with the NCBI/EBI BLAST servers.
  • Kabsch - Superimposing protein structures
  • PDB - Utility functions for parsing PDB files
  • Plot - Rudimentary plotting of matrices of atomic coordinates
  • Mafft - Julia API for multisequence alignment with MAFFT
  • Modeller - Functions and scripts to use MODELLER with Julia

Documentation is available here: BiomolecularStructures

Binary Dependencies

The build script should take care of the BioPython dependency. Install MAFFT with sudo apt-get install mafft (or equivalent for other package managers) Modeller needs to be installed manually.

As the available MAFFT version may be different from the one we have tested with and we can't guarantee reproducibly working tests, the tests are disabled by default. You can reenable them by uncommenting the corresponding line in test/runtest.jl:

include(Pkg.dir("BiomolecularStructures", "test", "mafft.jl"))

Troubleshooting julia v0.5-dev

Package fails to build

ERROR: Build process failed.

INFO: Building HttpParser
ERROR: Build process failed.
Connecting to cache.julialang.org (cache.julialang.org)|52.91.20.35|:443... connected.
ERROR: no certificate subject alternative name matches
	requested host name `cache.julialang.org'.
To connect to cache.julialang.org insecurely, use `--no-check-certificate'.
===============================[ ERROR: MbedTLS ]===============================

LoadError: failed process: Process(`wget -O /home/vagrant/.julia/v0.5/MbedTLS/deps/downloads/mbedtls-2.1.1-apache.tgz https://cache.julialang.org/https://tls.mbed.org/download/mbedtls-2.1.1-apache.tgz`, ProcessExited(5)) [5]

when building MbedTLS, download the file manually (change home directory) and then build the package:

wget --no-check-certificate -O /home/vagrant/.julia/v0.5/MbedTLS/deps/downloads/mbedtls-2.1.1-apache.tgz https://cache.julialang.org/https://tls.mbed.org/download/mbedtls-2.1.1-apache.tgz Pkg.build("BiomolecularStructures")

Note: This a workaround, not a fix for MbedTLS

cmake command not found. installing cmake is required for building from source.
===============================[ ERROR: MbedTLS ]===============================

LoadError: failed process: Process(`./cmake_check.sh`, ProcessExited(1)) [1]
while loading /home/vagrant/.julia/v0.5/MbedTLS/deps/build.jl, in expression starting on line 69

================================================================================

Install cmake with sudo apt-get install cmake

Pkg.test("BiomolecularStructures") failing

ERROR: LoadError: LoadError: LoadError: LoadError: Failed to precompile PyPlot to /home/vagrant/.julia/lib/v0.5/PyPlot.ji

This seems to be an issue of how precompilation of dependencies is handled (see this issue: JuliaLang/julia#14193) and does not happen reliably. Try running julia with --precompiled=yes or try precompiling the failing modules manually, e.g. Base.compilecache("Colors"), Base.compilecache("HttpCommon") and run Pkg.test("BiomolecularStructures") again`

MAFFT test fails under Ubuntu 12.04 LTS

If mafft does not work (e.g. the mafft.jl test) and you get this output:

correctly installed?
mafft binaries have to be installed in $MAFFT_BINARIES
or the /build/buildd/mafft-6.850/debian/mafft/usr/lib/mafft/lib/mafft directory.

... you have a broken package. This is fixed in newer Ubuntu LTS releases.

Note about mafft tests

The mafft tests are disabled for v0.5 as i cannot get them to run reliably (tests fail or pass depending on unknown conditions).

Changelog

[0.2.3]

  • fixes a bug in the Kabsch module (generated wrong RMSD values). See #19 for details.

[0.2.0]

  • julia v0.5 compatibility - note: unstable, using the package with v0.5 may require manual fixes, see troubleshooting

[0.1.0]

  • julia v0.4 compatibility

[0.0.1]

  • initial release

A [Bioinformatics WS 2014/15](https://www.uni-due.de/zmb/members/hoffmann/overview.shtml) course project by Simon Malischewski, Henning Schumann. Supervision by [Prof. Dr. Daniel Hoffmann](https://www.uni-due.de/zmb/members/hoffmann/overview.shtml).

biomolecularstructures.jl's People

Contributors

danielhoffmann32 avatar gp0 avatar hng avatar simon1103 avatar tkelman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

biomolecularstructures.jl's Issues

Info about upcoming removal of packages in the General registry

As described in https://discourse.julialang.org/t/ann-plans-for-removing-packages-that-do-not-yet-support-1-0-from-the-general-registry/ we are planning on removing packages that do not support 1.0 from the General registry. This package has been detected to not support 1.0 and is thus slated to be removed. The removal of packages from the registry will happen approximately a month after this issue is open.

To transition to the new Pkg system using Project.toml, see https://github.com/JuliaRegistries/Registrator.jl#transitioning-from-require-to-projecttoml.
To then tag a new version of the package, see https://github.com/JuliaRegistries/Registrator.jl#via-the-github-app.

If you believe this package has erroneously been detected as not supporting 1.0 or have any other questions, don't hesitate to discuss it here or in the thread linked at the top of this post.

Wrong result for Kabsch RMSD

Try this:

P = [-1. 0. 0.; 0. 2. 0.; 0. 1. 0.; 0. 1. 1]
Q = [0. -1. -1.; 0. -1. 0; 0. 0. 0.; -1. 0. 0.]

BiomolecularStructures.Kabsch.kabsch_rmsd(P,Q)

It returns

1.058767176431898

But the correct least RMSD is

0.695

Test failure: No module named Bio.PDB

Running package tests as discussed in JuliaLang/julia#18276 (comment) gave me this error

ERROR: LoadError: LoadError: LoadError: PyError (:PyImport_ImportModule) <type 'exceptions.ImportError'>
ImportError('No module named Bio.PDB',)

Reporting here in case something needs to be done. I am using a mac.

Documentation: readthedocs.org?

So... is everybody okay with using readthedocs.org to host the documentation?

Feature Highlights:

  • github Integration
  • LaTeX support
  • full text search

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.