Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 9, 2024
1 parent 049f685 commit 4d37553
Show file tree
Hide file tree
Showing 3 changed files with 1,536 additions and 1,536 deletions.
72 changes: 36 additions & 36 deletions src/rds2py/granges.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,33 +36,33 @@

# _seqnames = _as_list(robj["attributes"]["seqnames"])

# _strands = robj["attributes"]["strand"]
# _fstrand = None
# if "attributes" in _strands:
# _lengths = _strands["attributes"]["lengths"]["data"]
# _factors = _strands["attributes"]["values"]["data"]
# _levels = _strands["attributes"]["values"]["attributes"]["levels"]["data"]
# _strds = [_levels[x - 1] for x in _factors]
# _fstrand = []
# for i, x in enumerate(_lengths):
# _fstrand.extend([_strds[i]] * x)

# _seqinfo_seqnames = robj["attributes"]["seqinfo"]["attributes"]["seqnames"]["data"]
# _seqinfo_seqlengths = robj["attributes"]["seqinfo"]["attributes"]["seqlengths"][
# "data"
# ]
# _seqinfo_is_circular = robj["attributes"]["seqinfo"]["attributes"]["is_circular"][
# "data"
# ]
# _seqinfo_genome = robj["attributes"]["seqinfo"]["attributes"]["genome"]["data"]
# _seqinfo = SeqInfo(
# seqnames=_seqinfo_seqnames,
# 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,
# )
# _strands = robj["attributes"]["strand"]
# _fstrand = None
# if "attributes" in _strands:
# _lengths = _strands["attributes"]["lengths"]["data"]
# _factors = _strands["attributes"]["values"]["data"]
# _levels = _strands["attributes"]["values"]["attributes"]["levels"]["data"]
# _strds = [_levels[x - 1] for x in _factors]
# _fstrand = []
# for i, x in enumerate(_lengths):
# _fstrand.extend([_strds[i]] * x)

# _seqinfo_seqnames = robj["attributes"]["seqinfo"]["attributes"]["seqnames"]["data"]
# _seqinfo_seqlengths = robj["attributes"]["seqinfo"]["attributes"]["seqlengths"][
# "data"
# ]
# _seqinfo_is_circular = robj["attributes"]["seqinfo"]["attributes"]["is_circular"][
# "data"
# ]
# _seqinfo_genome = robj["attributes"]["seqinfo"]["attributes"]["genome"]["data"]
# _seqinfo = SeqInfo(
# seqnames=_seqinfo_seqnames,
# 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,
# )

# _mcols = BiocFrame.from_pandas(
# as_pandas_from_dframe(robj["attributes"]["elementMetadata"])
Expand All @@ -72,14 +72,14 @@
# if "NAMES" in robj["attributes"]:
# _gr_names = robj["attributes"]["NAMES"]["data"]

# return GenomicRanges(
# seqnames=_seqnames,
# ranges=_ranges,
# strand=_fstrand,
# names=_gr_names,
# mcols=_mcols,
# seqinfo=_seqinfo,
# )
# return GenomicRanges(
# seqnames=_seqnames,
# ranges=_ranges,
# strand=_fstrand,
# names=_gr_names,
# mcols=_mcols,
# seqinfo=_seqinfo,
# )


# def _as_list(robj):
Expand Down Expand Up @@ -115,7 +115,7 @@

# _data = _final

# return _data
# return _data


# def as_granges_list(robj):
Expand Down
Loading

0 comments on commit 4d37553

Please sign in to comment.