Skip to content

Path assertions and create output paths automatically #92

Description

@Tobiaspk

Currently, Segger crashes if the output path does not exist. It also returns a non-informative error when the input directory is empty or incorrectly specified. For example, an empty input directory produces:

ValueError: Could not infer platform from data directory: CosMx sample directory must contain exactly 1 file or directory matching *_tx_file.csv, but found 0., [Errno 2] No such file or directory: 'experiment.xenium', [Errno 2] No such file or directory: 'experiment.xenium', .

Suggestion, open to feedback

  • If output path does not exist - Create it
  • If input path is empty, or not a single file matches any platform - Identify this and raise a proper exception

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions