分享

bamtools---process .bam file

 xiaohua1314 2012-03-13

Building and installing

Get BamTools

The easiest way to get BamTools is to clone the git repository straight from GitHub:

$ git clone git://github.com/pezmaster31/bamtools.git

Developers who would like to modify (and we hope, contribute to) BamTools directly, may fork the project using the 'Fork' button at the top of the BamTools homepage, then pull down their own version of BamTools.

Get CMake

BamTools has been migrated to a CMake-based build system. We believe that this should simplify the build process across all platforms, especially with the BamTools API now available primarily as a shared library (that you link to instead of compiling lots of source files directly into your application). CMake is available on all major platforms, and indeed comes out-of-the-box with many Linux distributions.

To see if you have CMake (and if so, which version) try this command:

$ cmake --version

BamTools requires CMake (version >= 2.6.4). If you are missing CMake or have an older version, check your OS package manager (for Linux users) or download it here: http://www./cmake/resources/software.html .

Build BamTools

Ok, now that you have CMake ready to go, let's build BamTools. A good practice in building applications is to do an out-of-source build, meaning that we're going to set up an isolated place to hold all the intermediate installation steps.

In the top-level directory of BamTools, type the following commands:

$ mkdir build
$ cd build
$ cmake ..
Microsoft Visual Studio users: This step creates a VS solution file (.sln), which can then be built to create the toolkit executable and API DLL's.

Everybody else: After running cmake, just run:

$ make

Then go back up to the BamTools root directory.

$ cd ..

Assuming the build process finished correctly, you should be able to find the toolkit executable here:

./bin/

The BamTools API and Utils libraries will be found here:

./lib/

The BamTools API headers will be found here:

README:  https://github.com/pezmaster31/bamtools/wiki/Using-the-toolkit

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多