Skip to content

Commit

Permalink
v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwei356 committed Oct 10, 2018
1 parent 36f022b commit 695a355
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- v0.4.1
- Better writing and reading performance
- v0.4.0
- **Binary serialization format changed.**
- new command `unikmer sort`: sort binary files
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ optionally compressed in gzip format with extension of `.unik`.
![A.muciniphila-ATCC_BAA-835.fasta.gz.cr.tsv.png](testdata/A.muciniphila-ATCC_BAA-835.fasta.gz.cr.tsv.png)

label |encoded-kmer<sup>a</sup>|gzip-compressed<sup>b</sup>|compact-format<sup>c</sup>|sorted<sup>d</sup>|comment
:---------------|:-----------------------|:--------------------------|:-------------------------|:-----------------|:------------------------------------------------------
:---------------|:----------------------:|:-------------------------:|:------------------------:|:----------------:|:------------------------------------------------------
`plain` | | | | |plain text
`plain.gz` | |✔ | | |gzipped plain text
`.unik` |✔ |✔ | | |gzipped encoded kmer in fixed-length byte array
Expand Down
2 changes: 1 addition & 1 deletion unikmer/cmd/count.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,5 @@ func init() {
countCmd.Flags().IntP("kmer-len", "k", 0, "Kmer length")
countCmd.Flags().BoolP("circular", "", false, "circular genome")
countCmd.Flags().BoolP("canonical", "K", false, "only keep the canonical Kmers")
countCmd.Flags().BoolP("sort", "s", false, "sort Kmers, this reduces file size, you can even disable gzip compression by flag -C/--no-compress")
countCmd.Flags().BoolP("sort", "s", false, helpSort)
}
2 changes: 1 addition & 1 deletion unikmer/cmd/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,5 +499,5 @@ func init() {
RootCmd.AddCommand(diffCmd)

diffCmd.Flags().StringP("out-prefix", "o", "-", `out file prefix ("-" for stdout)`)
diffCmd.Flags().BoolP("sort", "s", false, "sort Kmers, this reduces file size, you can even disable gzip compression by flag -C/--no-compress")
diffCmd.Flags().BoolP("sort", "s", false, helpSort)
}
2 changes: 1 addition & 1 deletion unikmer/cmd/inter.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,5 +327,5 @@ func init() {
RootCmd.AddCommand(interCmd)

interCmd.Flags().StringP("out-prefix", "o", "-", `out file prefix ("-" for stdout)`)
interCmd.Flags().BoolP("sort", "s", false, "sort Kmers, this reduces file size, you can even disable gzip compression by flag -C/--no-compress")
interCmd.Flags().BoolP("sort", "s", false, helpSort)
}
2 changes: 2 additions & 0 deletions unikmer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ func init() {
RootCmd.PersistentFlags().BoolP("compact", "c", false, "write more compact binary file with little loss of speed")
RootCmd.PersistentFlags().StringP("infile-list", "i", "", "file of input files list (one file per line), if given, files from cli arguments are ignored")
}

const helpSort = "sort Kmers, this significantly reduce file size. You can even disable gzip compression by flag -C/--no-compress. This flag overwrites global option -c/--compact"
2 changes: 1 addition & 1 deletion unikmer/cmd/union.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,5 @@ func init() {
RootCmd.AddCommand(unionCmd)

unionCmd.Flags().StringP("out-prefix", "o", "-", `out file prefix ("-" for stdout)`)
unionCmd.Flags().BoolP("sort", "s", false, "sort Kmers, this reduces file size, you can even disable gzip compression by flag -C/--no-compress")
unionCmd.Flags().BoolP("sort", "s", false, helpSort)
}
2 changes: 1 addition & 1 deletion unikmer/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
)

// VERSION is the version
var VERSION = "0.4.0"
var VERSION = "0.4.1"

// versionCmd represents the version command
var versionCmd = &cobra.Command{
Expand Down

0 comments on commit 695a355

Please sign in to comment.