Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BufferSize = 65536 //os.Getpagesize()
BufferSize is size of buffer
View Source
var RootCmd = &cobra.Command{ Use: "unikmer", Short: "Unique-Kmer Toolkit", Long: fmt.Sprintf(`unikmer - Unique-Kmer Toolkit unikmer is a toolkit for nucleic acid k-mer analysis, providing functions including set operation on k-mers optional with TaxIds but without count information. K-mers are either encoded (k<=32) or hashed (arbitrary k) into 'uint64', and serialized in binary file with extension '.unik'. TaxIds can be assigned when counting k-mers from genome sequences, and LCA (Lowest Common Ancestor) is computed during set opertions including computing union, intersection, set difference, unique and repeated k-mers. Version: v%s Author: Wei Shen <shenwei356@gmail.com> Documents : https://shenwei356.github.io/unikmer Source code: https://github.com/shenwei356/unikmer Dataset (optional): Manipulating k-mers with TaxIds needs taxonomy file from e.g., NCBI Taxonomy database, please extract "nodes.dmp", "names.dmp", "delnodes.dmp" and "merged.dmp" from link below into ~/.unikmer/ , ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz , or some other directory, and later you can refer to using flag --data-dir or environment variable UNIKMER_DB. For GTDB, use https://github.com/nick-youngblut/gtdb_to_taxdump for taxonomy conversion. Note that TaxIds are represented using uint32 and stored in 4 or less bytes, all TaxIds should be in range of [1, %d] `, VERSION, maxUint32), }
RootCmd represents the base command when called without any subcommands
View Source
var VERSION = "0.17.2"
VERSION is the version
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ParseByteSize ¶ added in v0.7.0
ParseByteSize parses byte size from string.
Types ¶
Source Files ¶
- common.go
- concat.go
- count.go
- decode.go
- diff.go
- dump.go
- encode.go
- filter.go
- genautocomplete.go
- grep.go
- head.go
- inter.go
- locate.go
- merge.go
- num.go
- rfilter.go
- root.go
- sample.go
- sort.go
- split.go
- stats.go
- tsplit.go
- union.go
- uniqs.go
- util-binary-file.go
- util-cli.go
- util-io.go
- util-sort.go
- util.go
- version.go
- view.go
Click to show internal directories.
Click to hide internal directories.