Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwei356 committed Jul 3, 2020
1 parent 84091af commit 1fb4bbb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions unikmer/cmd/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion unikmer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 1fb4bbb

Please sign in to comment.