From dce4ce4eb302c68ec3363dedeee34fa7b1184f87 Mon Sep 17 00:00:00 2001 From: "Robert A. Petit III" Date: Tue, 7 Feb 2023 17:09:01 +0000 Subject: [PATCH] add version info --- bin/bactopia-sketcher | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/bactopia-sketcher b/bin/bactopia-sketcher index a47d28e..9c8204b 100755 --- a/bin/bactopia-sketcher +++ b/bin/bactopia-sketcher @@ -12,6 +12,11 @@ if [[ $# == 0 ]]; then exit fi +if [[ "$1" == "version" ]] || [[ "$1" == "--version" ]]; then + echo "bactopia-sketcher ${VERSION}" + exit +fi + gzip -cd ${FASTQ} | mash sketch -o ${PREFIX}-k21 -k 21 -s 21 -r -I ${PREFIX} - gzip -cd ${FASTQ} | mash sketch -o ${PREFIX}-k31 -k 31 -s 31 -r -I ${PREFIX} - sourmash sketch dna -p k=21,k=31,k=51,abund,scaled=1000 --merge ${PREFIX} -o ${PREFIX}.sig ${FASTQ}