https://github.com/lycosystem/lyscripts
Scripts and utilities for commonly used tasks related to the modelling of lymphatic tumor progression.
https://github.com/lycosystem/lyscripts
cancer cli machine-learning python scripts
Last synced: 5 months ago
JSON representation
Scripts and utilities for commonly used tasks related to the modelling of lymphatic tumor progression.
- Host: GitHub
- URL: https://github.com/lycosystem/lyscripts
- Owner: lycosystem
- License: mit
- Created: 2022-08-03T15:45:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-09-29T13:50:24.000Z (9 months ago)
- Last Synced: 2025-11-30T20:49:20.952Z (7 months ago)
- Topics: cancer, cli, machine-learning, python, scripts
- Language: Python
- Homepage: https://lyscripts.readthedocs.io
- Size: 1.46 MB
- Stars: 1
- Watchers: 1
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README

[](https://github.com/lycosystem/lyscripts/blob/main/LICENSE)
[](https://github.com/lycosystem/lyscripts)
[](https://pypi.org/project/lyscripts/)
[](https://lyscripts.readthedocs.io/en/latest/?badge=latest)
[](https://lyscripts.readthedocs.io/en/latest/?badge=latest)
[](https://htmlpreview.github.io/?https://github.com/lycosystem/lyscripts/blob/python-coverage-comment-action-data/htmlcov/index.html)
## What are these `lyscripts`?
This package provides convenient scripts for performing inference and learning regarding the lymphatic spread of head & neck cancer. Essentially, it provides a *command line interface* (CLI) to the [lymph](https://github.com/lycosystem/lymph) library and the [lydata](https://github.com/lycosystem/lydata) repository that stores lymphatic progression data.
We are making these "convenience" scripts public, because doing so is one necessary requirement to making our research easily and fully reproducible. There exists another repository, [lynference](https://github.com/lycosystem/lynference), where we stored the pipelines that produced our published results in a persistent way.
## Installation
These scripts can be installed via `pip`:
```bash
pip install lyscripts
```
or installed from source by cloning this repo
```bash
git clone https://github.com/lycosystem/lyscripts.git
cd lyscripts
pip install .
```
## Usage
This package is intended to be mainly used as a collection of Python scripts that would be scattered throughout my projects, if I didn't bundle them here. Hence, they're mostly command line tools that do basic and repetitive stuff.
### As a Command Line Tool
Simply run
```
lyscripts --help
```
in your terminal to display the help text for the main command. It will list all subcommands that are avialable, which you can then also call with `lyscripts --help` to get more information on its use and the available arguments.
For example, one subcommand is `lyscripts data collect`, which will launch a small web server that allows a user to enter patient records on lymphatic involvement in head and neck cancer one row at a time and construct a standardized CSV file from it.
You can also refer to the [documentation] for a written-down version of all these help texts and even more context on how and why to use the provided commands.
### As a Library
Head over to the [documentation] for more information on the individual modules, classes, and functions that are implemented in this package.
[documentation]: https://lyscripts.readthedocs.io
### Configuration YAML Schema
Most of the CLI commands allow passing a list of `--configs` in the form of YAML files. If for a particular CLI argument no value is passed directly, the program looks for the corresponding value in the merged YAML files (if multiple files are provided, later ones may overwrite earlier ones).
For these YAML files we provide a unified schema containing all possible fields that any of the CLIs may accept. It is located at `schemas/ly.json` in this repository. So, one could configure e.g. VS Code to consider this schema for all `*.ly.yaml` files. Here is how that could look like in the JSON settings of VS Code:
```json
{
"yaml.schemas": {
"https://raw.githubusercontent.com/lycosystem/lyscripts/main/schemas/ly.json": "*.ly.yaml"
}
}
```
Subsequently, all files ending in `.ly.yaml` will have helpful autocompletion on the allowed/expected types available.