Skip to content

inherits(pyr, "pyranges.pyranges.PyRanges") is not TRUE #1

Description

@vinodsinghjnu

Can anybody tell what type of error this is, on a given test example?

> use_python("/home/xx/miniforge3/envs/R.4.2_cloned_mapdemo_env/bin/python3")
> gr <- GRanges("chr1", IRanges(1:3, 20))
> pyr <- makePyRangesFromGRanges(gr)
> pyr  # PyRanges objects follow the 0-based start convention!!

+--------------+-----------+-----------+
| Chromosome   |     Start |       End |
| (category)   |   (int64) |   (int64) |
|--------------+-----------+-----------|
| chr1         |         0 |        20 |
| chr1         |         1 |        20 |
| chr1         |         2 |        20 |
+--------------+-----------+-----------+

> makeGRangesFromPyRanges(pyr)

Unstranded PyRanges object has 3 rows and 3 columns from 1 chromosomes.
For printing, the PyRanges was sorted on Chromosome.
Error in makeGRangesFromPyRanges(pyr) : 
 inherits(pyr, "pyranges.pyranges.PyRanges") is not TRUE

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions