command-line-tool-invocation
Summary
Invoke command-line bioinformatics tools with version-specific or mode-specific arguments to generate configuration files, run analyses, or produce formatted output. This skill is essential for reproducible automation of tool-driven workflows where configuration and execution are separated.
When to use
Use this skill when you need to bootstrap a tool workflow by generating a version- or instrument-specific default configuration file (e.g., for MS-DIAL 4 vs. 5), execute an analysis on formatted input files (e.g., MS-DIAL export .txt files), or capture tool output for downstream validation. Triggers include: (1) first-time tool setup with no existing options file, (2) version migration (MS-DIAL 4 → 5), or (3) need to validate tool output format before full-scale analysis.
When NOT to use
- Input is already a fully configured, version-matched options file in use by the same tool version — regenerating it will overwrite manual edits.
- Tool invocation is non-interactive or embedded in a compiled pipeline — use API or programmatic bindings instead of shell commands.
- Analysis environment does not support the chosen invocation method (e.g., Docker unavailable on the deployment system, or Conda not installed).
Inputs
- Command-line invocation context (shell/bash/cmd.exe)
- Version specifier (e.g., 'MSD4', 'MSD5')
- Optionally: existing TOML options file for editing
Outputs
- TOML-formatted options.txt configuration file
- Tool log file (e.g., LipoCLEAN.log) with execution summary
- Analysis results directory (e.g., example_output/)
How to apply
Invoke the tool via its executable, Python module, or Docker image using the --print flag with a version specifier (e.g., --print MSD4 or --print MSD5) to generate a default TOML-formatted options.txt file. Capture and validate the generated file for correct TOML syntax and required fields (e.g., MS-DIAL export file paths, model selection, filtering parameters). Then edit the options file to specify input/output paths and instrument-specific parameters before running the full analysis with the --options argument pointing to your customized configuration. Choose invocation method (executable, Python package, or Docker) based on environment constraints and performance requirements; note that executable is slowest but requires no installation, while Conda package is faster but requires environment setup.
Related tools
- LipoCLEAN (Primary tool invoked via command-line to generate version-specific configuration files and execute lipid quality filtering on MS-DIAL exports.) — https://github.com/stavis1/lipoCLEAN
- MS-DIAL 4 (Data source; LipoCLEAN generates MS-DIAL-4-specific default options via --print MSD4.)
- MS-DIAL 5 (Data source; LipoCLEAN generates MS-DIAL-5-specific default options via --print MSD5.)
- Docker (Execution environment for LipoCLEAN; allows tool invocation without local installation via docker run with mounted data volumes.)
Examples
LipoCLEAN.exe --print MSD4
Evaluation signals
- Generated options.txt file is valid TOML syntax (parseable by standard TOML readers) and contains all required fields for the specified MS-DIAL version.
- Version-specific fields in the generated file match the invoked version specifier (e.g., --print MSD4 produces MSD4-compatible column names and scaling; --print MSD5 produces MSD5-compatible variants).
- Tool produces a log file (LipoCLEAN.log) documenting invocation parameters, input file validation, and execution status without fatal errors.
- Executable/package/Docker invocation method is supported on the target operating system (Windows 10, Ubuntu 22.04 confirmed; Macs with Intel chips and other systems with Conda should work but are untested).
- Analysis output directory (e.g., example_output/) is created with expected subdirectories (e.g., QC/ for plots) and result files, confirming successful tool execution.
Limitations
- Models trained on one MS-DIAL version (4 vs. 5) do not generalize to the other due to renamed columns and different scaling; version mismatch will produce incorrect predictions.
- On some systems, the warning 'No module named brainpy._c.composition' appears during invocation; this is cosmetic and does not affect tool execution, but may cause user confusion.
- LipoCLEAN executable version is slower than Conda or Docker alternatives due to lack of pre-compiled optimization; for large-scale analyses, Conda or Docker is preferred.
- Instrument-model generalization is limited: QE_Pro_model is expected to work on all Orbitrap systems, but TOF_model generalization to all TOF instruments (e.g., TimsTOF) is unknown and should be validated before production use.
- The tool is not associated with MS-DIAL developers; configuration must follow MS-DIAL export conventions (msp format, m/z matrix export, blank filtering disabled) or analysis will fail.
Evidence
- [readme] Default options files for MS-DIAL 4 and 5 can be obtained using the
--print MSD4 or --print MSD5 command line arguments, respectively.: "Default options files for MS-DIAL 4 and 5 can be obtained using the --print MSD4 or --print MSD5 command line arguments, respectively."
- [readme] These will create an
options.txt file that you can edit.: "These will create an options.txt file that you can edit."
- [readme] All options, including the location of MS-DIAL export files to analyze, are given to the tool in a TOML formatted text file.: "All options, including the location of MS-DIAL export files to analyze, are given to the tool in a TOML formatted text file."
- [readme] Run
LipoCLEAN.exe --print MSD4. ... To use the tool on other data edit the options.txt file.: "Run LipoCLEAN.exe --print MSD4. ... To use the tool on other data edit the options.txt file."
- [readme] some columns were renamed and scaled differently between the two versions so a model trained on one version's data will not work with the other.: "some columns were renamed and scaled differently between the two versions so a model trained on one version's data will not work with the other."
- [readme] There are three ways to install and run LipoCLEAN: as an executable, as a Python package, and as a Docker container: "There are three ways to install and run LipoCLEAN: as an executable, as a Python package, and as a Docker container"
- [readme] On some systems the warning
No module named 'brainpy._c.composition' will be displayed. This is not an error and does not impact the running of the tool.: "On some systems the warning No module named 'brainpy._c.composition' will be displayed. This is not an error and does not impact the running of the tool."
1---2name: command-line-tool-invocation-23description: Use when you need to bootstrap a tool workflow by generating a version- or instrument-specific default configuration file (e.g., for MS-DIAL 4 vs. 5), execute an analysis on formatted input files (e.g., MS-DIAL export .txt files), or capture tool output for downstream validation.4license: CC-BY-4.05---67# command-line-tool-invocation89## Summary1011Invoke command-line bioinformatics tools with version-specific or mode-specific arguments to generate configuration files, run analyses, or produce formatted output. This skill is essential for reproducible automation of tool-driven workflows where configuration and execution are separated.1213## When to use1415Use this skill when you need to bootstrap a tool workflow by generating a version- or instrument-specific default configuration file (e.g., for MS-DIAL 4 vs. 5), execute an analysis on formatted input files (e.g., MS-DIAL export .txt files), or capture tool output for downstream validation. Triggers include: (1) first-time tool setup with no existing options file, (2) version migration (MS-DIAL 4 → 5), or (3) need to validate tool output format before full-scale analysis.1617## When NOT to use1819- Input is already a fully configured, version-matched options file in use by the same tool version — regenerating it will overwrite manual edits.20- Tool invocation is non-interactive or embedded in a compiled pipeline — use API or programmatic bindings instead of shell commands.21- Analysis environment does not support the chosen invocation method (e.g., Docker unavailable on the deployment system, or Conda not installed).2223## Inputs2425- Command-line invocation context (shell/bash/cmd.exe)26- Version specifier (e.g., 'MSD4', 'MSD5')27- Optionally: existing TOML options file for editing2829## Outputs3031- TOML-formatted options.txt configuration file32- Tool log file (e.g., LipoCLEAN.log) with execution summary33- Analysis results directory (e.g., example_output/)3435## How to apply3637Invoke the tool via its executable, Python module, or Docker image using the `--print` flag with a version specifier (e.g., `--print MSD4` or `--print MSD5`) to generate a default TOML-formatted `options.txt` file. Capture and validate the generated file for correct TOML syntax and required fields (e.g., MS-DIAL export file paths, model selection, filtering parameters). Then edit the options file to specify input/output paths and instrument-specific parameters before running the full analysis with the `--options` argument pointing to your customized configuration. Choose invocation method (executable, Python package, or Docker) based on environment constraints and performance requirements; note that executable is slowest but requires no installation, while Conda package is faster but requires environment setup.3839## Related tools4041- **LipoCLEAN** (Primary tool invoked via command-line to generate version-specific configuration files and execute lipid quality filtering on MS-DIAL exports.) — https://github.com/stavis1/lipoCLEAN42- **MS-DIAL 4** (Data source; LipoCLEAN generates MS-DIAL-4-specific default options via --print MSD4.)43- **MS-DIAL 5** (Data source; LipoCLEAN generates MS-DIAL-5-specific default options via --print MSD5.)44- **Docker** (Execution environment for LipoCLEAN; allows tool invocation without local installation via docker run with mounted data volumes.)4546## Examples4748```49LipoCLEAN.exe --print MSD450```5152## Evaluation signals5354- Generated options.txt file is valid TOML syntax (parseable by standard TOML readers) and contains all required fields for the specified MS-DIAL version.55- Version-specific fields in the generated file match the invoked version specifier (e.g., --print MSD4 produces MSD4-compatible column names and scaling; --print MSD5 produces MSD5-compatible variants).56- Tool produces a log file (LipoCLEAN.log) documenting invocation parameters, input file validation, and execution status without fatal errors.57- Executable/package/Docker invocation method is supported on the target operating system (Windows 10, Ubuntu 22.04 confirmed; Macs with Intel chips and other systems with Conda should work but are untested).58- Analysis output directory (e.g., example_output/) is created with expected subdirectories (e.g., QC/ for plots) and result files, confirming successful tool execution.5960## Limitations6162- Models trained on one MS-DIAL version (4 vs. 5) do not generalize to the other due to renamed columns and different scaling; version mismatch will produce incorrect predictions.63- On some systems, the warning 'No module named brainpy._c.composition' appears during invocation; this is cosmetic and does not affect tool execution, but may cause user confusion.64- LipoCLEAN executable version is slower than Conda or Docker alternatives due to lack of pre-compiled optimization; for large-scale analyses, Conda or Docker is preferred.65- Instrument-model generalization is limited: QE_Pro_model is expected to work on all Orbitrap systems, but TOF_model generalization to all TOF instruments (e.g., TimsTOF) is unknown and should be validated before production use.66- The tool is not associated with MS-DIAL developers; configuration must follow MS-DIAL export conventions (msp format, m/z matrix export, blank filtering disabled) or analysis will fail.6768## Evidence6970- [readme] Default options files for MS-DIAL 4 and 5 can be obtained using the `--print MSD4` or `--print MSD5` command line arguments, respectively.: "Default options files for MS-DIAL 4 and 5 can be obtained using the `--print MSD4` or `--print MSD5` command line arguments, respectively."71- [readme] These will create an `options.txt` file that you can edit.: "These will create an `options.txt` file that you can edit."72- [readme] All options, including the location of MS-DIAL export files to analyze, are given to the tool in a TOML formatted text file.: "All options, including the location of MS-DIAL export files to analyze, are given to the tool in a TOML formatted text file."73- [readme] Run `LipoCLEAN.exe --print MSD4`. ... To use the tool on other data edit the `options.txt` file.: "Run `LipoCLEAN.exe --print MSD4`. ... To use the tool on other data edit the `options.txt` file."74- [readme] some columns were renamed and scaled differently between the two versions so a model trained on one version's data will not work with the other.: "some columns were renamed and scaled differently between the two versions so a model trained on one version's data will not work with the other."75- [readme] There are three ways to install and run LipoCLEAN: as an executable, as a Python package, and as a Docker container: "There are three ways to install and run LipoCLEAN: as an executable, as a Python package, and as a Docker container"76- [readme] On some systems the warning `No module named 'brainpy._c.composition'` will be displayed. This is not an error and does not impact the running of the tool.: "On some systems the warning `No module named 'brainpy._c.composition'` will be displayed. This is not an error and does not impact the running of the tool."