We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1753854 commit a57e5bcCopy full SHA for a57e5bc
genomefile.go
@@ -10,6 +10,7 @@ import (
10
"github.com/brentp/xopen"
11
)
12
13
+// GenomeFile has the Lengths and Orders of the chromosomes.
14
type GenomeFile struct {
15
Lengths map[string]int
16
Order map[string]int
@@ -21,6 +22,7 @@ func (g *GenomeFile) Less(a, b string) bool {
21
22
return g.Order[a] <= g.Order[b]
23
}
24
25
+// ReadGenomeFile returns a GenomeFile struct
26
func ReadGenomeFile(path string) (*GenomeFile, error) {
27
28
rdr, err := xopen.Ropen(path)
0 commit comments