Database
Create SQLite database from CSV files.
make_database(assays, people, specimens, output=None)
Create a SQLite database from CSV files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
assays
|
Path | str
|
Path to assays CSV file |
required |
people
|
Path | str
|
Path to people CSV file |
required |
specimens
|
Path | str
|
Path to specimens CSV file |
required |
output
|
Path | str | None
|
Path to database file to create or None for in-memory database |
None
|
Returns:
Type | Description |
---|---|
Connection | None
|
sqlite3.Connection: Database connection if database is in-memory or None otherwise |
Source code in src/snailz/database.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|