Code Monkey home page Code Monkey logo

sortmedna's Introduction

sortmedna

This is ongoing development of SortMeDNA. See 'release' on this page for releases or visit http://bioinfo.lifl.fr/sortmedna/ for more information.

WARNING: Do not run _autotools_batch_.sh unless you have Autotools installed. This script is for producing a distribution version of the code.

NOTE: the Clang compiler on Mac (distributed through Xcode) does not support multithreading. A preliminary implementation of OpenMP for Clang has been made at "http://clang-omp.github.io" though has not been yet incorporated into the Clang mainline. The user may follow the steps outlined in the above link to install the version of Clang with multithreading support, though this version has not yet been tested with SortMeDNA. Otherwise, the user is recommended to install the original GCC compiler via MacPorts (contains full multithreading support).

To compile on Linux OS:

(1) Check your GCC compiler is version 4.0 or higher:

gcc --version

(2) Run configure and make scripts:

bash ./build.sh

Note: make install is not called in this script. However, any arguments given to build.sh will be passed to the configure script. If you plan on calling make install afterwards, then you can set your installation directory using build.sh --prefix=/path/to/installation/dir. Otherwise, you can simply copy the binaries sortmedna and indexdb_dna to your installation directory after calling build.sh.

To compile on Mac OS:

(1) Check the version of your C/C++ compiler:

gcc --version

If the compiler is LLVM-GCC (deprecated, see Deprecation and Removal Notice), then you must set it to Clang or the original GCC compiler (installable via MacPorts).

(2a) To set your compiler to Clang (check you have it "clang --version", if not then see "Install Clang for Mac OS" below):

export CC=clang
export CXX=clang++

(2b) To set your compiler to the original GCC (check you have it "gcc-mp-4.8 --version", if not then see "Install GCC through MacPorts" below. Note the GCC compiler comes in many versions, 4.8 is one of the latest):

export CC=gcc-mp-4.8
export CXX=g++-mp-4.8

(3) Run configure and make scripts:

bash ./build.sh

Note: make install is not called in this script. However, any arguments given to build.sh will be passed to the configure script. If you plan on calling make install afterwards, then you can set your installation directory using build.sh --prefix=/path/to/installation/dir. Otherwise, you can simply copy the binaries sortmedna and indexdb_dna to your installation directory after calling build.sh.

Install Clang for Mac OS

Installing Xcode (free through the App Store) and Xcode command line tools will automatically install the latest version of Clang supported with Xcode.

After installing Xcode, the Xcode command line tools may be installed via:

Xcode -> Preferences -> Downloads

Under "Components", click to install "Command Line Tools"

Install GCC though MacPorts

Assuming you have MacPorts installed, type:

sudo port selfupdate
sudo port install gcc48

After the installation, you should find the compiler installed in /opt/local/bin/gcc-mp-4.8 and /opt/local/bin/g++-mp-4.8 .

sortmedna's People

Contributors

ekopylova avatar

Stargazers

 avatar  avatar

Watchers

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