Skip to content

Add "overwrite" functionality to Python API #415

@hyanwong

Description

@hyanwong

I'm getting bitten when rerunning small scripts because I can't overwrite zarr files, e.g.

import bio2zarr.tskit as ts2z
ts2z.convert("input.trees", "output.vcz")  # can only be run once 

I don't want to create these in a temp directory, as I want them hanging around, but am happy to overwrite them when re-running. So could we have an "overwrite" parameter?

ts2z.convert("input.trees", "output.vcz", overwrite=True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions