Skip to content
/ mphf Public

Indexing & querying matrix method with a minimal perfect hash function

Notifications You must be signed in to change notification settings

mbouzid/mphf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mphf

Dependencies

Acknowledgment

Install

make && make clean

Usage

  • indexing abundance k-mer matrix (w/compress) ./bin/mphf index [counts.tsv] [hash.bin] [counts.bin] y

  • file format for [counts.tsv]

 tag  sample1 ... sampleM
 <kmer1>  abundance11  ... abundance1M
   ...
 <kmerN> abundanceN1 ... abundanceNM

e.g.

tag  sample1 sample2 sample3 sample4
AAAAAAAAAAAAAAAAAAAAAAAAAAATTAT	12  78	11  91
CAAAAAAAAAAAAAAAAAAAAAAAAAAAATA	59  22	14  78
CCCTAAAAAAAAAAAAAAAAAAAAAAAAAAT	31  52	11  0
  • querying k-mer ./bin/mphf query [counts.bin] [hash.bin] <number of samples> <k-mer>

Test

  • index cd test && sh index.sh
  • query cd test && sh query.sh

About

Indexing & querying matrix method with a minimal perfect hash function

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages