Skip to main content

A tool to work with sequencing run and sample info from MISO LIMS Pinery JSON data

Project description

miso-tool

PyPI - Version PyPI - Python Version


Table of Contents

About

The miso-tool helps you to parse the samples and sequencing runs info from MISO Pinery JSON files and generate Nextflow samplesheets, sample run info tables, and other useful files.

Installation

Install from PyPI using pip with:

pip install miso-tool

Usage

miso-tool --help

 Usage: miso-tool [OPTIONS]

 Parse the samples and sequencing runs info from MISO Pinery JSON files and generate Nextflow samplesheets and other files
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 By default, all samples are processed. Use --samples-list to specify a list of samples to process.

 ▌ NOTE: An Illumina Nextflow samplesheet.csv will only be generated if specified and if all Illumina runs have a SampleSheet.csv file that can be read. The output directory will contain the following files:

  • runs_without_rundir.txt: list of MISO run IDs without a corresponding run directory
  • all_sample_run_info.csv: table of all samples and their associated sequencing runs
  • original_to_clean_sample_id.txt: table of original sample IDs and their clean versions
  • nanopore_nextflow_samplesheet_{clean,original}.csv: Nextflow samplesheet for Nanopore runs with clean and original sample names
  • illumina_nextflow_samplesheet_{clean,original}.csv: Nextflow samplesheet for Illumina runs with clean and original sample names
  • sample_run_info.csv: table of user-specified samples and their associated sequencing runs

╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  --samples-json                   -s      PATH                             MISO Pinery Samples JSON file                                                                                                                                   │
│                                                                              [default: None]                                                                                                                                                 │
│                                                                              [required]                                                                                                                                                      │
│ *  --runs-json                      -r      PATH                             MISO Pinery Runs JSON file                                                                                                                                      │
│                                                                              [default: None]                                                                                                                                                 │
│                                                                              [required]                                                                                                                                                      │
│    --samples-list                   -l      PATH                             Samples to retrieve (one per line)                                                                                                                              │
│                                                                              [default: None]                                                                                                                                                 │
│    --outdir                         -o      PATH                             Output directory                                                                                                                                                │
│                                                                              [default: miso-tool-outdir]                                                                                                                                     │
│    --sample-run-info-csv            -S      PATH                             MISO Pinery Sample Run Info CSV file                                                                                                                            │
│                                                                              [default: None]                                                                                                                                                 │
│    --nanopore-nextflow-samplesheet  -N      PATH                             Nanopore Nextflow samplesheet                                                                                                                                   │
│                                                                              [default: None]                                                                                                                                                 │
│    --illumina-nextflow-samplesheet  -I      PATH                             Illumina Nextflow samplesheet                                                                                                                                   │
│                                                                              [default: None]                                                                                                                                                 │
│    --force                          -f                                       Overwrite existing files                                                                                                                                        │
│    --verbose                        -v                                                                                                                                                                                                       │
│    --version                        -V                                       Print 'gfflu version 0.0.2' and exit                                                                                                                            │
│    --install-completion                     [bash|zsh|fish|powershell|pwsh]  Install completion for the specified shell.                                                                                                                     │
│                                                                              [default: None]                                                                                                                                                 │
│    --show-completion                        [bash|zsh|fish|powershell|pwsh]  Show completion for the specified shell, to copy it or customize the installation.                                                                              │
│                                                                              [default: None]                                                                                                                                                 │
│    --help                                                                    Show this message and exit.                                                                                                                                     │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

 miso-tool version 0.0.2; Python 3.11.5

Typical usage:

miso-tool \
  --samples-json /path/to/samples.json \
  --runs-json /path/to/runs.json \
  --samples-list /path/to/samples.txt \
  --sample-run-info-csv sample-run-info.csv \
  --nanopore-nextflow-samplesheet nanopore-samplesheet.csv \
  --illumina-nextflow-samplesheet illumina-samplesheet.csv \
  --outdir miso-tool-outdir

License

miso-tool is distributed under the terms of the Apache License 2.0.

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

miso_tool-0.0.5.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

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

miso_tool-0.0.5-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file miso_tool-0.0.5.tar.gz.

File metadata

  • Download URL: miso_tool-0.0.5.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for miso_tool-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d9695b5eaaf4a0f2586c3f25d2cfc9fe4ccc5ce63c01b45274a96d5e081cbf06
MD5 9c1e02438d1c7e36bc7d3adec7cba231
BLAKE2b-256 10c94fe0d23ff6e9b7f986bdc96568a1d2867b52d5651d0ef8d238d1a0de528e

See more details on using hashes here.

File details

Details for the file miso_tool-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: miso_tool-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for miso_tool-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 deb8c2eff9cbc6e5df957af6b4e21bf34f81748c6d6be59551691d1edb97ca72
MD5 da29e1c067a5309a451a1b174d2af280
BLAKE2b-256 ebd3043ab195a331961663de4aabc266395a6119630735dccdd92492895d238c

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