chromInfo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Overview

Package chromInfo provides function to read and manipulate chromInfo files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadToMap

func ReadToMap(filename string) map[string]ChromInfo

SliceToMap reads a chromInfo file into a map[Name]ChromInfo.

func SliceToMap

func SliceToMap(chroms []ChromInfo) map[string]ChromInfo

SliceToMap converts a slice of chromInfo structs into a map[Name]ChromInfo.

Types

type ChromInfo

type ChromInfo struct {
	Name  string
	Size  int
	Order int
}

ChromInfo stores the chromosome name and size of each chromosome as well as the order they appear in the file.

func ReadToSlice

func ReadToSlice(filename string) []ChromInfo

ReadToSlice reads a chromInfo file into a slice where the index corresponds to the order of appearance in the file.

Jump to

Keyboard shortcuts

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