Skip to content

Commit

Permalink
Fix types for SeqInfo objects (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche authored Jul 11, 2024
1 parent d757eb5 commit 4d246f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rds2py/granges.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ 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 4d246f5

Please sign in to comment.