Giter VIP home page Giter VIP logo

gamgee's Introduction

Build Status Coverage Status Issue Stats Issue Stats

Gamgee

A C++ interface for key next generation sequencing file formats. This library provides an API for handilng SAM, BAM, CRAM, VCF, BCF, BED, intervals and interval_list files.

The implementation is currently incomplete, but is under development. The APIs are free to change until we reach version 1.

Gamgee is licensed under the MIT License

Quick start

If you need detailed instructions, read our blog post on how to set up your development environment.

You'll need the latest version of Boost installed in your system.

$ hub clone broadinstitute/gamgee         # simple git clone also works here

Building Gamgee

Gamgee is configured to use CMake for better integration with the CLion IDE. We recommend an out-of-source build. From your Gamgee root directory, create a build directory:

$ mkdir build/

Navigate to that directory to complete the initial CMake setup:

$ cd build/
$ cmake ..

If building on the Broad servers, you will need extra arguments:

$ cmake .. -DCMAKE_C_COMPILER=`which gcc` -DCMAKE_CXX_COMPILER=`which g++`

After the setup of the build configuration and makefiles, build Gamgee by executing make from the build/ directory:

$ make

By default, CMake will execute the most recent explicitly specified build configuration (release/debug). To specify a build configuration use:

$ make release

or

$ make debug

for the release or debug configurations, respectively.

Building Tips

  • To clean your build, use

    $ make clean
    
  • If building on the Broad cluster you will need these dotkits

reuse -q .boost-1.55.0 reuse -q .fftw-3.3.4 reuse -q GCC-4.9 reuse -q CMake ``` NOTE: the CMake dotkit is only availble for systems running RHEL 6 or higher. For other systems, you will have to compile your own version of CMake from the latest source

Testing Gamgee

Gamgee comes with an extensive suite of unit tests. To run all tests simply do:

$ make run_test

Setting up CLion

  1. Download the latest version of the CLion IDE from here

  2. Click through the walk-through and set up your preferences as desired.

  3. At the startup menu, select "Import Project From Sources"

  4. Navigate to the Gamgee repo directory and select it.

  5. CLion will inform you that "Directory gamgee contains CMakeLists.txt". Choose "Open Project".

  6. CLion may not recognize all of the namespaces in the code until you execute a build from the IDE. Select "Build" from the Run menu or click the build button in the upper right (green down arrow with ones and zeros).

  7. If CLion still can't find all dependencies, go to File > Invalidate Caches / Restart... This will restart CLion. Reindexing files and references may take a minute or two.

NOTE: Using CMake from CLion uses a different build directory than using CMake from the command line.

gamgee's People

Contributors

akiezun avatar cwhelan avatar davidbenjamin avatar droazen avatar jmthibault79 avatar kgururaj avatar kshakir avatar lbergelson avatar ldgauthier avatar nsubtil 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.