Skip to content

RangeSelector1D object has no attribute 'copy' in create_scool #394

@bskubi

Description

@bskubi
      cooler.create_scool(scool_file, bins, pixels)
    File "[...]/python3.12/site-packages/cooler/create/_create.py", line 1174, in create_scool
      bins = bins.copy()
             ^^^^^^^^^
  AttributeError: 'RangeSelector1D' object has no attribute 'copy'

I'm tinkering around with the create_scool function in the cooler library, but it gives me this error.

bins = {}
    pixels = {}
    for id, cool in zip(block_ids, cools):
        c = cooler.Cooler(f"{cool}::/")
        bins[id] = c.bins()
        pixels[id] = c.pixels()
    cooler.create_scool(scool_file, bins, pixels)

The cool files exist. I'm just validating a workflow with some small test data here, so I can't guarantee they're not corrupted, but I can use zoomify to make mcools of them successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions