<p align="center">
<img src="assets/images/logo.png" width="300" height="130">
</p>
[![pypi](https://img.shields.io/pypi/v/spectradb)](https://pypi.org/project/spectradb)
[![codecov](https://codecov.io/gh/acmoudleysa/SpectraDB/graph/badge.svg?token=AQWFO4NG6Q)](https://codecov.io/gh/acmoudleysa/SpectraDB)
# **SpectraDB: A Lightweight Spectroscopic Data Manager**
## Introduction
In many labs, data from instruments like FTIR, fluorescence, or NMR are saved as individual files (often in strange formats) and scattered across different folders. This can quickly lead to a cluttered system that’s hard to manage and search through.
**SpectraDB** is designed to simplify this process by letting you store all your spectroscopic data in a single, organized SQLite database. Each type of spectroscopic data gets a unique `spec_id`, and every sample is given a `sample_id`. This means you can easily search and retrieve any analysis for any sample without digging through endless folders of files.
## How It Works (in Simple Terms)
1. **Collect Data from Instruments**:
- After running a sample on an instrument (like FTIR or NMR), you typically copy the data file onto your computer. The file might be in an unusual format specific to the instrument, but don’t worry—**SpectraDB** handles that for you.
2. **Add the Data to SpectraDB**:
- You can use built-in functionality to add the data to the database. SpectraDB will convert the raw file (whatever format it's in) into a format that’s easy to work with, and then store it in an SQLite database.
- Along with the spectroscopic data, you’ll also be able to store metadata like `measurement_id`, `instrument_id`, experiment details, and anything else you want to track.
3. **Avoid Duplicates**:
- SpectraDB is smart! It checks if the same sample and analysis already exist in the database, so you won’t accidentally store duplicate data. This helps keep things tidy.
4. **Query the Data Easily**:
- Once your data is in the database, you can search by **sample** (using `sample_id`) to see what spectroscopic techniques have been run on that sample, or search by **spectroscopy type** (using `spec_id`) to pull all the relevant data for a particular technique (e.g., all FTIR results).
- No more hunting through folders—just run a query, and you get what you need.
5. **What You Can Do Next**:
- After pulling the data, you can visualize it, analyze trends, or run further processing as needed. You have all the information in one place!
## Key Features
- **Centralized Storage**: All spectroscopic data is stored in one SQLite database, making it easy to manage and search.
- **Automatic Conversion**: Raw data files from instruments are automatically converted to usable formats and stored efficiently in the database.
- **Unique IDs**: Each spectroscopic file gets a `spec_id`, and each sample gets a `sample_id`, allowing for simple and quick queries.
- **Duplicate Checks**: Built-in checks prevent duplicate entries, ensuring clean and organized data.
- **Query Flexibility**: Search by sample or spectroscopy type, and get a complete view of your data without hassle.
## Project Ideas
- Organize all your data in one place by converting raw instrument data into a database-friendly format.
- Query data based on sample (`sample_id`) to see all the spectroscopic analyses performed on that sample.
- Query based on spectroscopy type (`spec_id`) to retrieve specific data (e.g., only FTIR results).
- Visualize and analyze the data after retrieval for further insights.
Raw data
{
"_id": null,
"home_page": "https://github.com/acmoudleysa/SpectraDB",
"name": "spectradb",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.9",
"maintainer_email": null,
"keywords": "spectradb ftir fluorescence 2dfluorescence nmr chemometrics",
"author": "Amulya Baniya",
"author_email": "ronaldoamulya@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a1/54/ffb6a9f853d54357a2c1b33fad581c47f89965c134f56de94c52e4f00f68/spectradb-1.0.4.tar.gz",
"platform": null,
"description": "\n<p align=\"center\">\n <img src=\"assets/images/logo.png\" width=\"300\" height=\"130\">\n</p>\n\n[![pypi](https://img.shields.io/pypi/v/spectradb)](https://pypi.org/project/spectradb)\n[![codecov](https://codecov.io/gh/acmoudleysa/SpectraDB/graph/badge.svg?token=AQWFO4NG6Q)](https://codecov.io/gh/acmoudleysa/SpectraDB)\n\n# **SpectraDB: A Lightweight Spectroscopic Data Manager**\n\n## Introduction\nIn many labs, data from instruments like FTIR, fluorescence, or NMR are saved as individual files (often in strange formats) and scattered across different folders. This can quickly lead to a cluttered system that\u2019s hard to manage and search through. \n\n**SpectraDB** is designed to simplify this process by letting you store all your spectroscopic data in a single, organized SQLite database. Each type of spectroscopic data gets a unique `spec_id`, and every sample is given a `sample_id`. This means you can easily search and retrieve any analysis for any sample without digging through endless folders of files.\n\n## How It Works (in Simple Terms)\n\n1. **Collect Data from Instruments**:\n - After running a sample on an instrument (like FTIR or NMR), you typically copy the data file onto your computer. The file might be in an unusual format specific to the instrument, but don\u2019t worry\u2014**SpectraDB** handles that for you.\n\n2. **Add the Data to SpectraDB**:\n - You can use built-in functionality to add the data to the database. SpectraDB will convert the raw file (whatever format it's in) into a format that\u2019s easy to work with, and then store it in an SQLite database.\n - Along with the spectroscopic data, you\u2019ll also be able to store metadata like `measurement_id`, `instrument_id`, experiment details, and anything else you want to track.\n\n3. **Avoid Duplicates**:\n - SpectraDB is smart! It checks if the same sample and analysis already exist in the database, so you won\u2019t accidentally store duplicate data. This helps keep things tidy.\n\n4. **Query the Data Easily**:\n - Once your data is in the database, you can search by **sample** (using `sample_id`) to see what spectroscopic techniques have been run on that sample, or search by **spectroscopy type** (using `spec_id`) to pull all the relevant data for a particular technique (e.g., all FTIR results).\n - No more hunting through folders\u2014just run a query, and you get what you need.\n\n5. **What You Can Do Next**:\n - After pulling the data, you can visualize it, analyze trends, or run further processing as needed. You have all the information in one place!\n\n## Key Features\n- **Centralized Storage**: All spectroscopic data is stored in one SQLite database, making it easy to manage and search.\n- **Automatic Conversion**: Raw data files from instruments are automatically converted to usable formats and stored efficiently in the database.\n- **Unique IDs**: Each spectroscopic file gets a `spec_id`, and each sample gets a `sample_id`, allowing for simple and quick queries.\n- **Duplicate Checks**: Built-in checks prevent duplicate entries, ensuring clean and organized data.\n- **Query Flexibility**: Search by sample or spectroscopy type, and get a complete view of your data without hassle.\n\n## Project Ideas\n- Organize all your data in one place by converting raw instrument data into a database-friendly format.\n- Query data based on sample (`sample_id`) to see all the spectroscopic analyses performed on that sample.\n- Query based on spectroscopy type (`spec_id`) to retrieve specific data (e.g., only FTIR results).\n- Visualize and analyze the data after retrieval for further insights.\n",
"bugtrack_url": null,
"license": null,
"summary": "\"A Lightweight Spectroscopic Data Manager\"",
"version": "1.0.4",
"project_urls": {
"Bug reports": "https://github.com/acmoudleysa/SpectraDB/issues",
"Homepage": "https://github.com/acmoudleysa/SpectraDB",
"Source": "https://github.com/acmoudleysa/SpectraDB"
},
"split_keywords": [
"spectradb",
"ftir",
"fluorescence",
"2dfluorescence",
"nmr",
"chemometrics"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "89bad050408c6ecdfe901ec8b0f2a5cfd3be4b75dc2373938e7410f9436d8291",
"md5": "9acb06500ae3aa0a8e96b76e4d11685d",
"sha256": "f72904d74475063103c0afca3b559c81456a0c20c7b2e5117bdd1bedd92602ba"
},
"downloads": -1,
"filename": "spectradb-1.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9acb06500ae3aa0a8e96b76e4d11685d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.9",
"size": 15717,
"upload_time": "2024-11-21T07:44:51",
"upload_time_iso_8601": "2024-11-21T07:44:51.777585Z",
"url": "https://files.pythonhosted.org/packages/89/ba/d050408c6ecdfe901ec8b0f2a5cfd3be4b75dc2373938e7410f9436d8291/spectradb-1.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a154ffb6a9f853d54357a2c1b33fad581c47f89965c134f56de94c52e4f00f68",
"md5": "8e566cf66584ab065bac3725e1742d65",
"sha256": "a5f9ebd339afa85907b3df6b482293660d1ce680043f3568f16911032040ae37"
},
"downloads": -1,
"filename": "spectradb-1.0.4.tar.gz",
"has_sig": false,
"md5_digest": "8e566cf66584ab065bac3725e1742d65",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.9",
"size": 15548,
"upload_time": "2024-11-21T07:44:53",
"upload_time_iso_8601": "2024-11-21T07:44:53.446648Z",
"url": "https://files.pythonhosted.org/packages/a1/54/ffb6a9f853d54357a2c1b33fad581c47f89965c134f56de94c52e4f00f68/spectradb-1.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-21 07:44:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "acmoudleysa",
"github_project": "SpectraDB",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "numpy",
"specs": [
[
">=",
"2.1.1"
]
]
},
{
"name": "pandas",
"specs": [
[
">=",
"2.2.3"
]
]
},
{
"name": "plotly",
"specs": [
[
">=",
"5.24.1"
]
]
},
{
"name": "plotly-express",
"specs": []
}
],
"tox": true,
"lcname": "spectradb"
}