Skip to content

Commit

Permalink
convert seqlenghts to int and is_circular to booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Jul 11, 2024
1 parent 34136fd commit 6490369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rds2py/granges.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def as_granges(robj):
_seqinfo_genome = robj["attributes"]["seqinfo"]["attributes"]["genome"]["data"]
_seqinfo = SeqInfo(
seqnames=_seqinfo_seqnames,
seqlengths=[None if x == -2147483648 else x for x in _seqinfo_seqlengths],
is_circular=[None if x == -2147483648 else x for x in _seqinfo_is_circular],
seqlengths=[None if x == -2147483648 else int(x) for x in _seqinfo_seqlengths],
is_circular=[None if x == -2147483648 else bool(x) for x in _seqinfo_is_circular],
genome=_seqinfo_genome,
)

Expand Down

0 comments on commit 6490369

Please sign in to comment.