Skip to content

Commit

Permalink
2024/09/08-11:58:56 (Linux cray unknown)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbenner committed Sep 8, 2024
1 parent 6ac70b1 commit f8a3689
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions granges_gtf.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func (granges GRanges) WriteGTF(w_ io.Writer) error {

sources := granges.GetMetaStr("sources")
features := granges.GetMetaStr("features")
scores := granges.GetMetaInt("scores")
scores := granges.GetMetaFloat("scores")
frames := granges.GetMetaInt("frames")

for i := 0; i < granges.Length(); i++ {
Expand All @@ -263,7 +263,7 @@ func (granges GRanges) WriteGTF(w_ io.Writer) error {
fmt.Fprintf(w, "\t%d", granges.Ranges[i].From)
fmt.Fprintf(w, "\t%d", granges.Ranges[i].To)
if len(scores) > 0 {
fmt.Fprintf(w, "\t%d", scores[i])
fmt.Fprintf(w, "\t%f", scores[i])
} else {
fmt.Fprintf(w, "\t%s", ".")
}
Expand Down
2 changes: 2 additions & 0 deletions granges_row.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ type GRange struct {
Strand byte
}

/* -------------------------------------------------------------------------- */

type GRangesRow struct {
GRange
MetaRow
Expand Down

0 comments on commit f8a3689

Please sign in to comment.