From f3dc2c30f82a33ceae5e4d6384ab54c602e69351 Mon Sep 17 00:00:00 2001 From: zzh Date: Mon, 16 Dec 2024 15:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8README=E4=B8=AD=E6=B7=BB=E5=8A=A0Usage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff8ca57..9736776 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,11 @@ Use spdlog as log tool and the default level is 'info'. ### Build tools +* autoconf (for htslib) * cmake * c++17 (gcc >= 8.1 or clang >= 7 should work.) -### Libraries need +### Libraries needed * zlib * libbz2 @@ -47,7 +48,7 @@ Use spdlog as log tool and the default level is 'info'. Download a distribution tarball `FastDup.tar.gz` or clone the source codes from github. -``` +```bash # build htslib cd FastDup/ext/htslib autoreconf -i @@ -59,4 +60,18 @@ cd FastDup mkdir build && cd build cmake .. -DCMAKE_BUILD_TYPE=Release make && sudo make install +``` + +## Usage + +1. get help + +```bash +fastdup --help +``` + +2. mark duplicates on an input BAM file + +```bash +fastdup --input in.bam --output out.bam --metrics stats.txt --num-threads 8 ``` \ No newline at end of file