Skip to main content

GCSAM

Gas chromatography sample analyzer and manager

Use Case

Tired of labeling GC output peaks by hand? gcsam will automatically digest the output from your gas chromatograph and give you usable data so that you can spend more time analyzing what matters. This program is written entirely in python for easy hacking and designed to specifically work with Microsoft Excel.

Prerequisites

python >= 3.6.3

python packages:

  • xlrd
  • xlsxwriter

Microsoft Excel

Installation

pip install gcsam (coming soon, I hope!)

Usage

Go take a look at the example/ folder, which should have all you need to get started.

Configuration

A “Config” sheet (xlsx file) must be created that contains the following information:

  • Sample IDs matching the sheet titles with:
    • Dry weight of the sample (in mg)
    • Amount of standard added (in mg)
  • Known FAMEs
    • One column for the string identifier, this can be anything that makes sense to you (e.g. “c17.0” or “17:0”
    • Another column for the expected retention time of the FAME.

NOTE: all retention times everywhere must be in descending order!

Notice that the Volume column is not used, as all of the entries (in mL) are 1. If this is ever not the case, the code will need to be adjusted accordingly.

Required Arguments

Please note that the order of the arguments supplied does not matter.

The config, from above, is required (-c).

At least one input and one output are required. It is possible to have multiple input and output types.

Inputs can be:

  • One or more GC outputs (-i), read in with a particular format (-if)
  • Previously saved files can be loaded (-l)

Outputs can be:

  • Saved data (-s) for use with loading or further analysis.
  • Output data, (-o) with a custom format (-of)
  • Graph visualization folder (-g).

Specifying a standard is not required but you will likely want to include it with --standard. The default standard, "C17:0", may change in a future release.

Examples

Converting raw GC output to a GCSAM file

gcsam -i "gcOutput.xlsx" -if "Harper" -c "configFile.xlsx" -s "savedGCdata.xlsx" --standard "C17:0"

Removing lines from previously saved files

gcsam -l "savedGCdata.xlsx" –-not-lines "1" "abc" "foxes45" -s "newSavedGCdata.xlsx"

Or

gcsam -l "savedGCdata.xlsx" --only-lines "1" "abc" "foxes45" -s "newSavedGCdata.xlsx"

Analyzing select lines from multiple, previously-saved files

gcsam -l "savedGCdata1.xlsx" "savedGCdata2.xlsx" –-only-lines "that" "I" "want" -o "analysisThatIWant.xlsx"

Metadata

Release files for gcsam 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gcsam 0.0.4
File Size Uploaded Provenance Actions
gcsam-0.0.4.tar.gz 16.3 kB Without provenance Details for gcsam-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gcsam 0.0.4
File Interpreter ABI Platform Actions
gcsam-0.0.4-py3-none-any.whl Python 3 none any Details for gcsam-0.0.4-py3-none-any.whl

Total release size: 33.3 kB

Release files / gcsam-0.0.4.tar.gz

Download URL gcsam-0.0.4.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5f9cd212d446b933423ac2b456505223823d1d0ffb6254654e55b7d47ee0ac80
BLAKE2b-256 checksum
How to use checksums
5dcff7cc47fc9b521d315b902060ae10a67de9d1bb72db5212644497ab56879d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / gcsam-0.0.4-py3-none-any.whl

Download URL gcsam-0.0.4-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c35e3ccbd05a889a689ee832b35cd47b26ac2b539c5420c96592c4e952f2159
BLAKE2b-256 checksum
How to use checksums
2fded939d930b0971345f12353a6b8c7cf291411be6b6c0e5a193b1d3c66cd48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Security for gcsam 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page