utils

package
v0.8.29 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CHROMOSOME_LENGTHS = [25]uint64{248956422, 242193529, 198295559, 190214555, 181538259,
		170805979, 159345973, 145138636, 138394717, 133797422,
		135086622, 133275309, 114364328, 107043718, 101991189,
		90338345, 83257441, 80373285, 58617616, 64444167,
		46709983, 50818468, 156040895, 57227415, 16569}
)

Hardcoded chromosome lengths for GRCh38 - hg38 https://www.ncbi.nlm.nih.gov/grc/human/data

Functions

func ChromosomeIndex

func ChromosomeIndex(chromosome string) int

ChromosomeIndex returns an index used for sorting the chromosomes based on karyotypic order https://stackoverflow.com/questions/46789259/map-vs-switch-performance-in-go

func SHA256FileHash

func SHA256FileHash(path string) (string, error)

SHA256FileHash returns the SHA256 hash of the specified file

Types

type Spinner

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

func NewSpinner

func NewSpinner(suffix string) *Spinner

func (*Spinner) Message

func (s *Spinner) Message(msg string)

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Stop

func (s *Spinner) Stop(msg string)

func (*Spinner) StopDuration

func (s *Spinner) StopDuration()

Jump to

Keyboard shortcuts

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