Skip to content

A tool to call somatic single nucleotide variants.

License

Notifications You must be signed in to change notification settings

jtal/somatic-sniper

 
 

Repository files navigation

SomaticSniper

The purpose of this program is to identify single nucleotide positions that are different between tumor and normal (or in theory, any two bam files). It takes a tumor bam and a normal bam and compares the two to determine the differences. Complete documentation is available at the project web site or in the included pdf.

Build Dependencies

Build Instructions

Build dependencies

  • For APT-based systems (Debian, Ubuntu), install the following packages:
sudo apt-get install build-essential git-core cmake zlib1g-dev libncurses-dev
  • For RPM-based systems (Fedora, CentOS, RHEL), install the following packages instead:
sudo yum groupinstall "Development tools" 
sudo yum install zlib-devel ncurses-devel cmake

Note that for some RPM based systems (like RHEL), you will need to install cmake 2.8 or greater yourself as the packaged version is much older.

Clone the SomaticSniper repository

Recursively clone the git repository

git clone git://github.com/genome/somatic-sniper.git

Build SomaticSniper

SomaticSniper does not support in-source builds. So create a subdirectory, enter it, build, and run tests:

mkdir somatic-sniper/build
cd somatic-sniper/build
cmake ../
make deps
make -j
make test

The binary bam-somaticsniper can then be found under somatic-sniper/build/bin. If you have administrative rights, then run sudo make install to install the tool for all users under /usr/bin.

FAQ

I get lots of compile errors indicating that files are missing. How do I fix this?

SomaticSniper requires that it be linked to an old version of samtools (v0.1.6). This typically happens because you have attempted to link to a newer version. As of version 1.0.3, SomaticSniper includes samtools as part of its build process and you do not need to download samtools yourself.

I get errors from cmake about missing modules. How do I fix this?

As of commit 09ef624 or version 1.0.4, this should no longer be an issue and tarballs from github should function as intended. In earlier versions, SomaticSniper contained a git submodule called build-common. This submodule contains helper modules for cmake. If you downloaded the source as a tarball from github or forgot to do a recursive clone using git, then you will not have this submodule and will see cmake errors. If you are using git, we recommend you go back and use the --recursive option when cloning the SomaticSniper repository. If you cannot use git, follow the instructions below to remedy the situation.

  1. Download the build-common module separately here.
  2. Extract that tarball and rename the directory it creates to build-common.
  3. Replace the empty build-common subdirectory in the sniper directory with directory you just created.
  4. Resume following the build instructions.

User Support

Please first search Biostar and then ask a question there if needed. We automatically monitor Biostar for questions related to our tools.

About

A tool to call somatic single nucleotide variants.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 37.3%
  • Python 28.3%
  • Perl 22.7%
  • C++ 6.6%
  • XSLT 4.3%
  • Shell 0.8%