Skip to main content

This package is used to parse ms samplesheet for further analyses.

Project description

BULK METABOLOMICS SAMPLESHEET

This folder contains the files necessary for the samplesheet of LC-MS and spatial metabolomics. Samplesheet template (LC-MS_metabolomics_samplesheet.xlsx or spatial_metabolomics_samplesheet.xlsx) should be given to clients to be compiled. Once received back, it should be tested with the parser (LC-MS_parse_samplesheet.py or spatial_parse_samplesheet.py).

Samplesheet template

Samplesheet templates contains 3 sheets:

  • input: the one the user should fill. It contains two sections, one with user info and the other with samples metadata.
  • example_ok: an example of a good samplesheet
  • example_fail: an example of a problematic samplesheet

Parser

The parser will check the samplesheet for its correct compilation and raises warnings and/or errors if any. If no errors are found, the samples metadata section is saved as a csv file (specified as -o). Warnings also prevent file to be saved, but this can be overruled by --ignore-warnings.

Test

In test folder, 3 test samplesheet for each technology are found:

  • test_error.xlsx: a test samplesheet with errrors
  • test_ok.xlsx: a test samplesheet correctly compiled
  • test_warning.xlsx: a test samplesheet with warnings

Several test should be run after changind any file:

  • python LC-MS_parse_samplesheet.py (this should result in an error for missing input and output)
  • python LC-MS_parse_samplesheet.py -i test_files/LC-MS_test_ok.xlsx -o test.csv --dry-run (this should be ok, with no errors nor warnings, but no file should be saved due to --dry-run)
  • python LC-MS_parse_samplesheet.py -i test_files/LC-MS_test_ok.xlsx -o test.csv (this should be ok, with also test.csv file saved)
  • python LC-MS_parse_samplesheet.py -i test_files/LC-MS_test_error.xlsx -o test.csv (this should raise errors and no test.csv file should be created)
  • python LC-MS_parse_samplesheet.py -i test_files/LC-MS_test_warning.xlsx -o test.csv (this should raise warnings and no test.csv file should be created)
  • python LC-MS_parse_samplesheet.py (this should result in an error for missing input and output)
  • python spatial_parse_samplesheet.py -i test_files/spatial_test_ok.xlsx -o test.csv --dry-run (this should be ok, with no errors nor warnings, but no file should be saved due to --dry-run)
  • python LC-MS_parse_samplesheet.py -i test_files/LC-MS_test_ok_timecourse.xlsx -o test.csv (this should be ok, with also test.csv file saved)
  • python spatial_parse_samplesheet.py -i test_files/spatial_test_ok.xlsx -o test.csv (this should be ok, with also test.csv file saved)
  • python spatial_parse_samplesheet.py -i test_files/spatial_test_error.xlsx -o test.csv (this should raise errors and no test.csv file should be created)
  • python spatial_parse_samplesheet.py -i test_files/spatial_test_warning.xlsx -o test.csv (this should raise warnings and no test.csv file should be created)
  • python spatial_parse_samplesheet.py -i test_files/spatial_test_warning.xlsx -o test.csv --ignore-warnings (this should raise warnings, but test.csv file should be created)
  • python spatial_parse_samplesheet.py -i test_files/spatial_test_warning.xlsx -o test.csv --ignore-warnings (this should raise warnings, but test.csv file should be created)

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

parseet-0.2.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parseet-0.2.0-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file parseet-0.2.0.tar.gz.

File metadata

  • Download URL: parseet-0.2.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.3 CPython/3.13.2 Darwin/24.1.0

File hashes

Hashes for parseet-0.2.0.tar.gz
Algorithm Hash digest
SHA256 43534df2a0add825beaa932509bdbb7d2130b2cd5325fc35c7daf215833f8a7b
MD5 4bf52e78a83d767f2fae2a6900d113ec
BLAKE2b-256 2cf46863e46b81e2b86c083e3991c34887e55a805da2ff4bc29de0e07d93298f

See more details on using hashes here.

File details

Details for the file parseet-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: parseet-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.3 CPython/3.13.2 Darwin/24.1.0

File hashes

Hashes for parseet-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbc463cc90a5611b81e58ff348f92ad9482216619289a5d9049232987ab3b443
MD5 f71b6fab59d1af7bfa0e20531d1c01b2
BLAKE2b-256 23a3c70867248635a10b38b7d8db9368feb56007423a95307d41b237dfb52c8a

See more details on using hashes here.

Supported by

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