AntoineHo / HilMa

Hilbert Mapper is a C++ implementation of Hilbert's space filling curve to represent read coverage on genomic sequences. Although it can be used to represent any unidimensional vector of positive numerical data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HilMa

Hilbert Mapper is a C++ implementation of Hilbert's space filling curve to represent read coverage on genomic sequences. Although it can be used to represent any unidimensional vector of positive numerical data.

Installation

git clone https://github.com/AntoineHo/HilMa.git
cd HilMa
chmod +x install.sh
./install.sh

Usages

reading a samtools depth output file:

python hilma.py sam [coverage file from samtools depth] [contig ID]

awk, grep, custom script, ... outputting integer unidimensional data to stdout:

[stdin] | python hilma.py vector - [output prefix]

reading a custom coverage file:

python hilma.py custom [column of IDs] [column of values] [coverage file] [ID of sequence to plot]

This usage may change in future commits!

Exemples

samtools depth mybam.bam > mybam.cov
python hilma.py mybam.cov contig3
grep contig3 mybam.cov | awk '{print $3}' | python hilma.py vector - custom_prefix
python hilma.py custom custom.cov 0 3 contig_002

About

Hilbert Mapper is a C++ implementation of Hilbert's space filling curve to represent read coverage on genomic sequences. Although it can be used to represent any unidimensional vector of positive numerical data.

License:GNU General Public License v3.0


Languages

Language:C++ 65.5%Language:Python 32.0%Language:CMake 2.1%Language:Shell 0.4%