Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Oct 3, 2019
1 parent c040fb3 commit 7746f33
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Getting Started

```sh
wget https://github.com/lh3/dipcall/releases/download/v0.1/dipcall-0.1_x64-linux.tar.bz2
tar -jxf dipcall-0.1_x64-linux.tar.bz2
# for female
dipcall.kit/run-dipcall prefix hs38.fa pat.fa.gz mat.fa.gz > prefix.mak
# or for male, requiring PAR regions in BED
# dipcall.kit/run-dipcall -x dipcall.kit/hs38.PAR.bed prefix hs38.fa pat.fa.gz mat.fa.gz > prefix.mak
make -j2 -f prefix.mak
```

## Introduction

Dipcall is a reference-based variant calling pipeline for a pair of phased
haplotype assemblies. It was originally developed for constructing the
[syndip][syndip] benchmark dataset and has been applied to other phased
assemblies, too. Dipcall can call small variants and long INDELs as long as
they are contained in minimap2 alignment.

If you use dipcall, please cite

> Li H, Bloom JM, Farjoun Y, Fleharty M, Gauthier L, Neale B, MacArthur D
> (2018) A synthetic-diploid benchmark for accurate variant-calling evaluation.
> Nat Methods, 15:595-597. [PMID:30013044]
[syndip]: https://github.com/lh3/CHM-eval
4 changes: 4 additions & 0 deletions dipcall-aux.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env k8

var version = "0.1";

var getopt = function(args, ostr) {
var oli; // option letter list index
if (typeof(getopt.place) == 'undefined')
Expand Down Expand Up @@ -194,12 +196,14 @@ function main(args)
print("Commands:");
print(" samflt filter SAM file");
print(" vcfpair convert 2-sample VCF to phased VCF");
print(" version print version number");
exit(1);
}

var cmd = args.shift();
if (cmd == 'samflt') samflt(args);
else if (cmd == 'vcfpair') vcfpair(args);
else if (cmd == 'version') print(version);
else throw("unrecognized command: " + cmd);
}

Expand Down
2 changes: 2 additions & 0 deletions run-dipcall
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use strict;
use warnings;
use Getopt::Std;

my $version = "0.1";

my %opts = (t=>8);
getopts("t:d:x:", \%opts);

Expand Down

0 comments on commit 7746f33

Please sign in to comment.