SimBA (Simulation busing Best-fit Algorithms)
Please download a precompiled version of SimBA from the releases page. We provide binaries for Linux and macOS.
Here we provide a short description on how to use it from the command line.
The following command simulates 40 tetraploid samples based on 30 founders. Input markers are read from file input.vcf. Output population is written in file output.vcf:
$ simba-hap --founders 30 --samples 40 --ploidy 4 --input-vcf input.vcf --output-vcf output.vcfGo to the build folder:
$ cd buildThen run cmake, specifying the path to IBM CPLEX. For example, on Linux:
$ cmake .. -DSTATIC_BUILDS=ON \
-DILOG_ROOT_DIR=/opt/ibm/ILOG/CPLEX_Studio127/cplex \
-DILOG_CPLEX_LIBRARY=/opt/ibm/ILOG/CPLEX_Studio127/cplex/lib/x86-64_linux/static_pic/libcplex.a \
-DILOG_CONCERT_LIBRARY=/opt/ibm/ILOG/CPLEX_Studio127/concert/lib/x86-64_linux/static_pic/libconcert.aOr on macOS:
$ cmake .. -DSTATIC_BUILDS=ON \
-DCMAKE_CXX_COMPILER=/opt/local/bin/g++-mp-4.9 \
-DILOG_ROOT_DIR=/opt/ibm/ILOG/CPLEX_Studio126/cplex/ \
-DILOG_CPLEX_LIBRARY=/opt/ibm/ILOG/CPLEX_Studio126/cplex/lib/x86-64_osx/static_pic/libcplex.a \
-DILOG_CONCERT_LIBRARY=/opt/ibm/ILOG/CPLEX_Studio126/concert/lib/x86-64_osx/static_pic/libconcert.aFinally build the package by invoking make as follows:
$ make packagePlease cite the following article if you use SimBA in your research:
E. Siragusa, N. Haiminen, F. Utro, L. Parida. Linear time algorithms to construct populations fitting multiple constraint distributions at genomic scales. IEEE/ACM Transactions on Computational Biology and Bioinformatics. 2017
We welcome contributions but request that you follow the guidelines indicated here.
Copyright 2016 IBM Corporation
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
If you have suggestions, questions or comments regarding SimBA, please email us to:
pa_ri_da (at) us.ibm.com (remove the underscores)
Find more open source projects on the IBM Github Page