Skip to main content

Gas chromatography sample analyzer and manager

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gcsam-0.0.4.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

gcsam-0.0.4-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file gcsam-0.0.4.tar.gz.

File metadata

  • Download URL: gcsam-0.0.4.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for gcsam-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5f9cd212d446b933423ac2b456505223823d1d0ffb6254654e55b7d47ee0ac80
MD5 344be1eea5209bdf4f3646e3edb8e70b
BLAKE2b-256 5dcff7cc47fc9b521d315b902060ae10a67de9d1bb72db5212644497ab56879d

See more details on using hashes here.

File details

Details for the file gcsam-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: gcsam-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for gcsam-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2c35e3ccbd05a889a689ee832b35cd47b26ac2b539c5420c96592c4e952f2159
MD5 62b65a2408a1a4db8021243a0056f199
BLAKE2b-256 2fded939d930b0971345f12353a6b8c7cf291411be6b6c0e5a193b1d3c66cd48

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page