• This repository has been archived on 12/Oct/2023
  • Stars
    star
    49
  • Rank 565,532 (Top 12 %)
  • Language
    C++
  • License
    GNU General Publi...
  • Created over 10 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

libsequence: a C++ class library for evolutionary genetic analysis

libsequence - A C++ class library for evolutionary genetic analysis

Copyright (C) 2002 Kevin Thornton

libsequence2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Comments are welcome.

- Kevin Thornton <[email protected]>

User's group

Please post to the libsequence user group for help.

Build status

  • master branch: Build Status . master branch on Circle: CircleCI
  • dev branch: Build Status . dev branch on Circle: CircleCI

Citation

If you use the library for your research, please cite:

@article{libsequence, author = {Thornton, Kevin}, title = {{Libsequence: a C++ class library for evolutionary genetic analysis.}}, journal = {Bioinformatics (Oxford, England)}, year = {2003}, volume = {19}, number = {17}, pages = {2325--2327}, month = nov }

The manuscript is available online at http://bioinformatics.oxfordjournals.org/content/19/17/2325.short

Revision history.

The revision history of the library is here. The document describes what changed for a given release.

Obtaining the source code

Obtaining the master branch

You have a few options:

Obtaining a specific release

Again, a few options:

  • Click on "Releases" at https://github.com/molpopgen/libsequence, then download the one you want
  • Clone the repo (see previous section)
  • Get a list of releases by saying "git tag -l"
  • Checkout the release you want. For example "git checkout 1.8.0"

Installation

Dependencies

  1. A C++11-compliant compiler (see next section)

Compilers

I support the following compilers:

I'd appreciate success/failure reports on Intel's icc compiler. As it is no longer free for academic use, I'm not longer able to test it.

Simplest installation instructions

./configure
make
sudo make install

The build conditions can be adjusted via the usual environment variables. To compile an optimized "release" build:

./configure CXXFLAGS="-O3 -DNDEBUG"

To compile a debugger-friendly build:

./configure CXXFLAGS="-O0 -g"

To change the compiler, set the C and C++ compiler variables:

./configure CC=gcc CXX=g++

Compiling unit tests and examples

To compile unit testing suite and example programs

make check

or

cd test
make check

Note that the library must be built prior to "make check", but you do not have to install the library prior ot "make check". The examples and unit tests are statically-linked to the version of the library that will be found in src/.libs after a "make" command. I do this so that one can perform unit tests without having to install the library. I use static linking here to avoid any possible confusion with an existing libsequence installation.

Running the unit tests

cd test && sh runTests.sh

More complex installation scenarios

Some users may not have the dependent libraries installed in the standard locations on their systems. Note that "standard" means wherever the compiler system looks for header files during compilation and libraries during linking. This scenario is common on OS X systems where users have used some sort of "system" to install various libraries rather than installing from source directly. In order to accomodate such situations, the user must provide the correct path to the include and lib directories. For example, assume that the dependend libraries are in /opt on your system. You would install libsequence as follows:

CPPFLAGS=-I/opt/include LDFLAGS="$LDFLAGS -l/opt/lib" ./configure

make

sudo make install

Note that the modification of LDFLAGS prepends the current value of LDFLAGS if it exists. This allows for scenarios where the system's search path for libraries may have been modified by the user or sysadmin via a modification of that shell variable. (One could also do the same with CPPFLAGS, FYI.)

Installing libsequence locally

If you do not have permission to "sudo make install", you can install the library in your $HOME:

./configure --prefix=$HOME

Then, when compiling any program using libsequence, you need to add

-I$HOME/include

to any compilation commands and

-L$HOME/lib -Wl,-rpath,$HOME/lib

to any linking commands.

When running programs linking to any of the above run-time libraries, and depending on your system, you may also need to adjust variables like LD_LIBRARY_PATH to prepend $HOME/lib to them, etc., but you'll need to figure that out on case-by-case basis, as different systems can behave quite differently.

Installation via Bioconda

Libsequence is available for installation via bioconda:

conda install -c bioconda libsequence

The above command will give you the most recent stable release on OS X or Linux.

Using libsequence to compile other programs

If libsequence is not installed in a standard path, then you must provide the appropriate include (-I) and link path (-L) commands to your compiler. This may be done in various ways, e.g., via a configure script or your own Makefile.

A program that depends on libsequence must provide at least the following libraries to the linker:

-lsequence -lz 

More Repositories

1

BigDataFormats

Tutorial on programming or "big data"/bioinformatics
32
star
2

fwdpy11

Forward-time simulation in Python using fwdpp
Python
27
star
3

fwdpp

fwdpp is a C++ template library for implementing efficient forward-time population genetic simulations
C++
27
star
4

gimp_scripts

Plugins for GIMP
Python
21
star
5

fwdpy

forward-time population genetic simulation in python
Python
18
star
6

devnotes

Notes/tips/tricks/obscure hints related to software development.
C++
11
star
7

msstats

msstats calculates many common popgen summary statistics from the output of the coalescent simulation "ms".
TeX
9
star
8

pylibseq

Python interface to libsequence via pybind11
C++
8
star
9

pecnv

C++ tools for calling structural variants from PE mapping of short reads.
C++
8
star
10

md2Canvas

Examples of canvas questions written in Markdown
Makefile
5
star
11

Rcode4teaching

R code that I use for teaching and illustration of population genetic concepts.
R
4
star
12

fwdpy11_arg_example

Example of tracking the ARG during forward simulations. Implementation is a Python package using fwdpp, fwdpy11, msprime, and pybind11.
Python
4
star
13

cython_mcpp

Glue layer between Cython and C++11/14/17
Python
3
star
14

buRden

Rcpp functions for performing "burden" tests.
C++
3
star
15

ABCreg

Automating approximate Bayesian computation by local linear regression
TeX
2
star
16

sweepsims

A collection of coalescent simulations of selective sweeps written over the years. (See wiki for citation info, please.)
C++
2
star
17

analysis

Programs for the (pre-NGS-era) analysis of population-genetic data.
TeX
2
star
18

newgene

The simulation code used in doi:10.1534/genetics.107.074948
C++
1
star
19

landscape

Explicit landscape simulations using fwdpp
C++
1
star
20

text2qti_example

text2qti_example
Python
1
star
21

sequtils

Tools for manipulation of (pre-NGS-era) sequence data. (Probably only for old folks at this point in time...)
Shell
1
star
22

travis_test

How to get a travis yml file to do what I want.
Shell
1
star