Skip to content

delete sample from database: segmentation fault on CLI #687

@nextgenusfs

Description

@nextgenusfs

It seems there is a way to delete samples from a uri/database via the CLI, ie tiledbvcf delete. I'm getting an error when I try this and need help understanding why this is happening.

$ tiledbvcf delete -u s3://path/to/db -s awesome_sample
[2024-03-27 19:11:12.150] [tiledb-vcf] [Process: 24392] [Thread: 24392] [critical] Exception: SubarrayPartitioner: Trying to partition a unary range because of memory budget, this will cause the query to run very slow. Increase `sm.memory_budget` and `sm.memory_budget_var` through the configuration settings to avoid this issue. To override and run the query with the same budget, set `sm.skip_unary_partitioning_budget_check` to `true`.
Segmentation fault

## version
$ tiledbvcf --version
TileDB-VCF version 0234b10-modified
TileDB version 2.18.3
htslib version 1.19

And then it seems like there is no way to delete samples from the python API?

>>> import tiledbvcf
>>> tiledbvcf.version
'0.27.1'
>>> dir(tiledbvcf.Dataset)
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_set_read_cfg', '_set_samples', '_set_write_cfg', 'attributes', 'continue_read', 'continue_read_arrow', 'count', 'create_dataset', 'export', 'ingest_samples', 'read', 'read_arrow', 'read_completed', 'read_iter', 'read_variant_stats', 'sample_count', 'samples', 'schema_version', 'tiledb_stats', 'version']

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