meta
Create a DuckDB database from the session directory, including all CSV files and the RO-Crate metadata.
DDLStatement = tuple[str, dict[str, str]]
module-attribute
SQL DDL statement and named parameters (use $ prefix in SQL) to be passed to DuckDB connection.execute()
create_meta_duckdb(session_dir, /, *, powerfit_run_id=None)
Generate a DuckDB metadata database for a Protein Detective session.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session_dir
|
Annotated[Path, Parameter(validator=Path(file_okay=False, dir_okay=True, exists=True))]
|
Session directory containing the files to include. |
required |
powerfit_run_id
|
str | None
|
Optional PowerFit run ID used to restrict solutions. |
None
|