Skip to main content

A toolbox to check whether files follow a predefined schema.

Project description

igs-toolbox

Description

This Python package contains tools to check whether files follow predefined schemas of the IGS project. Currently, only a JSON validator is implemented, but the idea is that it will be extended to more applications related to the IGS project in the future.

Installation

igs-toolbox is installable using pip.

pip install igs-toolbox

Usage

All tools can be used directly through the commandline.

jsonChecker

usage: jsonChecker [-h] -i INPUT 

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Filepath to json file.

convertSeqMetadata

The method to convert the metadata table into JSONs for each sample. This inlcudes a validation to check if the IGS metadata scheme is matched.

Usage: convertSeqMetadata [OPTIONS]

  Convert table of seq metadata to json files.

Options:
  -i, --input FILE                Path to input excel or csv/tsv file.
                                  [required]
  -o, --output DIRECTORY          Path to output folder for json files.
                                  [required]
  -l, --log_file FILE             Path to log file.  [default:
                                  convertSeqMetadata_2023-12-01T09-56-04.log]
  --version
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.
  --help                          Show this message and exit.

Example:

convertSeqMetadata -i IGS_Metadata.xlsx -o out/

readQR

The method readQR reads the Meldungsquittung and extracts the MeldungsID.

Poppler is required to read the pdfs

conda install poppler
or
mamba install poppler
or
apt install poppler-utils
usage: readQR [-h] [--version] [file ...]

positional arguments:
  file

options:
  -h, --help  show this help message and exit
  --version   show program's version number and exit

Example:

readQR *.pdf

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

igs_toolbox-1.7.1-py3-none-any.whl (496.9 kB view details)

Uploaded Python 3

File details

Details for the file igs_toolbox-1.7.1-py3-none-any.whl.

File metadata

  • Download URL: igs_toolbox-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 496.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for igs_toolbox-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 583affddcf9d1bd8261d996e791c5b76fc6b26bbf8034f5f7064ceb2236ad8e9
MD5 80a8e16a69f9df1e15ca5d8086d662d2
BLAKE2b-256 0580121637d97d1abd3c2e9c1899fdbfbb0fda707c2bb50b5f8c4b1f5ad86f77

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