Skip to content

Commit

Permalink
fix usage of go-collections
Browse files Browse the repository at this point in the history
  • Loading branch information
ygidtu committed Jul 15, 2020
1 parent 0f95eeb commit 140b0c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions load.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func loadBedFile() (map[string]*set.Set, error) {
// Add target positions
temp, ok := targetPosition[chr]
if !ok {
temp = &set.Set{}
temp = set.New()
}

j := intersectionStart
Expand Down Expand Up @@ -197,7 +197,7 @@ func createOmopolymericPositions() error {
}
}

sugar.Infof("%s total omopolymeric positions found.", len(positions))
sugar.Infof("%d total omopolymeric positions found.", len(positions))

sugar.Infof("Writing omopolymeric positions to file: %s.", conf.OmopolymericFile)

Expand Down Expand Up @@ -274,7 +274,7 @@ func loadOmopolymericPositions() (map[string]*set.Set, error) {

temp, ok := positions[chrom]
if !ok {
temp = &set.Set{}
temp = set.New()
}

j := f
Expand Down Expand Up @@ -340,7 +340,7 @@ func loadSplicingPositions() (map[string]*set.Set, error) {

temp, ok := res[chrom]
if !ok {
temp = &set.Set{}
temp = set.New()
}

st, tp := lines[4], lines[3]
Expand Down

0 comments on commit 140b0c7

Please sign in to comment.