Skip to content

BioinformaticsArchive/hapmuc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HapMuC

HapMuC is a somatic mutation caller, which can utilize the information of heterozygous germline variants near candidate mutations. It takes a tumor bam and a normal bam as inputs, and generates a list of candidate somatic mutations.

Build Status

How to build

Preliminary

Please make sure developer tools for the OS are available (usually installable in batch, but should include make, gcc/g++ etc.) The version we tested is GCC 4.8.1.

Prepare build dependencies

For convenience, the prerequisites of HapMuC are all included in this repository (You can find them at libs/). The prerequisites are:

To prepare them, please execute the following script in your shell:

% make dependencies

Build HapMuC

Just execute the following script in your shell:

% make

Get ready for associated scripts

Ruby and Python are required to run associated scripts for making candidate windows. The versions we tested were listed below:

  • Ruby 1.9.3
  • Python 2.7.3.

Also, the Python script requires the fisher module for calculating the p-values of Fisher's exact test.

How to run

HapMuC workflow is consisting from three steps. Let's try it on the sample bam files, which we prepared in the tests folder. Please go to tests/data/1.

Step1: samtools mpileup

../../../libs/samtools-0.1.19/samtools mpileup -B -f ../random_ref.fasta normal.bam > normal.pileup
../../../libs/samtools-0.1.19/samtools mpileup -B -f ../random_ref.fasta tumor.bam > tumor.pileup

Step2: making candidate windows

sh ../../../utils/make_windows.sh tumor.pileup normal.pileup ./

Outputs:

  • ./cand_somatic
    • Candidate somatic mutations, which passed the minimum criteria. (NOTE: you can set the parameters in utils/search_variants.rb )
  • ./cand_hetero_germline
    • Heterozygous germline variants. Also, you can check the criteria in utils/search_variants.rb.
  • ./windows
    • A list of candidate windows, which is generated based on the above two files using bedtools window.

Step3: mutation calling by HapMuC algorithm

../../../bin/hapmuc -a tumor.bam -b normal.bam -f ../random_ref.fasta -w windows -o result/mc

You can check the results in results/mc.calls.txt

Simulation

A dataset and scripts for simulation are available here: https://github.com/usuyama/hapmuc_simulation .

Publication

Submitted.

License

Copyright © 2013 Naoto Usuyama
Released under the GNU General Public License, Version 3.0.

This implementation forked from the program Dindel, which is licensed under the GPLv3.

About

A somatic mutation caller, which can utilize the information of heterozygous germline variants near candidate mutations.

Resources

Stars

Watchers

Forks

Packages

No packages published