From 1fb4bbba63d6d37ac21a2d284c42feff4277ede3 Mon Sep 17 00:00:00 2001 From: Wei Shen Date: Fri, 3 Jul 2020 15:22:15 +0800 Subject: [PATCH] clean code --- unikmer/cmd/merge.go | 4 ---- unikmer/cmd/root.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/unikmer/cmd/merge.go b/unikmer/cmd/merge.go index 8cfc165..c270cb8 100644 --- a/unikmer/cmd/merge.go +++ b/unikmer/cmd/merge.go @@ -140,7 +140,6 @@ Tips: var infh *bufio.Reader var r *os.File var reader *unikmer.Reader - // var nUnequalK, nNotConsC, nNotSorted int var k int = -1 var canonical bool var hasTaxid bool @@ -203,9 +202,6 @@ Tips: }() } - // if nNotSorted > 0 || nUnequalK > 0 || nNotConsC > 0 { - // checkError(fmt.Errorf("please check chunk files: %d with different K, %d with different canonical flag, %d not sorted", nUnequalK, nNotConsC, nNotSorted)) - // } files = _files diff --git a/unikmer/cmd/root.go b/unikmer/cmd/root.go index d4d4472..d5996d2 100644 --- a/unikmer/cmd/root.go +++ b/unikmer/cmd/root.go @@ -104,7 +104,7 @@ func init() { RootCmd.PersistentFlags().Uint32P("max-taxid", "", 1<<32-1, "for smaller taxids, we can use less space to store taxids. default value is 1<<32-1, that's enough for NCBI Taxonomy taxids") RootCmd.PersistentFlags().BoolP("ignore-taxid", "I", false, "ignore taxonomy information") RootCmd.PersistentFlags().StringP("data-dir", "", defaultDataDir, "directory containing NCBI Taxonomy files, including nodes.dmp, names.dmp, merged.dmp and delnodes.dmp") - // RootCmd.PersistentFlags().BoolP("cache-lca", "", false, "cache LCA queries") + } const helpSort = "sort k-mers, this significantly reduce file size for k<=25. This flag overwrites global flag -c/--compact"