Skip to content

Commit f93b317

Browse files
committed
struct optimizations
1 parent 4ccec75 commit f93b317

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

matrix_table_consumer/functions_go/functions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ func extractRow(line string) *VCFContainer {
3737
info := fields[7]
3838

3939
return &VCFContainer{
40-
Qual: qual8,
41-
Pos: pos32,
4240
Chrom: chrom,
4341
Id: id,
4442
Ref: ref,
4543
Alt: alt,
4644
Filter: filter,
4745
Info: info,
46+
Pos: pos32,
47+
Qual: qual8,
4848
}
4949
}
5050

matrix_table_consumer/functions_go/types.go

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,36 @@ import (
66
)
77

88
type VCFContainer struct {
9-
Qual int8 `json:"QUAL"`
10-
Pos int32 `json:"POS"`
119
Chrom string `json:"CHROM"`
1210
Id string `json:"ID"`
1311
Ref string `json:"REF"`
1412
Alt string `json:"ALT"`
1513
Filter string `json:"FILTER"`
1614
Info string `json:"INFO"`
15+
Pos int32 `json:"POS"`
16+
Qual int8 `json:"QUAL"`
1717
}
1818

19-
// Тип коллекции строк VCF
2019
type Rows []*VCFContainer
2120

2221
// Tqdm introduces progress bar
2322
type Tqdm struct {
24-
total int
25-
current int
2623
startTime time.Time
2724
lastUpdate time.Time
2825
description string
29-
writer io.Writer
3026
barFormat string
31-
width int
32-
showBar bool
33-
showRate bool
34-
showETA bool
3527
unit string
36-
unitScale bool
28+
writer io.Writer
29+
30+
total int
31+
current int
32+
width int
3733
minInterval time.Duration
34+
35+
showBar bool
36+
showRate bool
37+
showETA bool
38+
unitScale bool
3839
}
3940

4041
// Option defines a function to configure Tqdm

0 commit comments

Comments
 (0)