cmd

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 37 Imported by: 0

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:   "lexicmap",
	Short: "efficient sequence alignment against millions of microbial genomes​",
	Long: fmt.Sprintf(`
    Program: LexicMap: efficient sequence alignment against millions of microbial genomes
    Version: v%s
  Documents: https://bioinf.shenwei.me/LexicMap
Source code: https://github.com/shenwei356/LexicMap

`, VERSION),
}

RootCmd represents the base command when called without any subcommands

View Source
var Strands = [2]byte{'+', '-'}

Strands could be used to output strand for a reverse complement flag

View Source
var VERSION = "0.1.0"

VERSION is the version

Functions

func Combinations2

func Combinations2(set []uint64) [][2]uint64

Note: set should not have duplicates

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 IntSlice2StringSlice

func IntSlice2StringSlice(vals []int) []string

func MeanStdev

func MeanStdev(values []float64) (float64, float64)

Types

type Options

type Options struct {
	NumCPUs int
	Verbose bool

	LogFile  string
	Log2File bool

	Compress         bool
	CompressionLevel int
}

Options contains the global flags

type Query

type Query struct {
	// contains filtered or unexported fields
}

Query is an object for each query sequence, it also contains the query result.

func (*Query) Reset

func (q *Query) Reset()

Reset reset the data for next round of using

type Uint64Slice

type Uint64Slice []uint64

func (Uint64Slice) Len

func (s Uint64Slice) Len() int

func (Uint64Slice) Less

func (s Uint64Slice) Less(i, j int) bool

func (*Uint64Slice) Pop

func (s *Uint64Slice) Pop() interface{}

func (*Uint64Slice) Push

func (s *Uint64Slice) Push(x interface{})

func (Uint64Slice) Swap

func (s Uint64Slice) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL