Skip to main content

SLA-CLI

Maintenance Build Status Coverage Status Codacy Badge License: MIT PyPI version PyPI pyversions Downloads

A Skin Lesion Acquisition (SLA) CLI tool designed to help source data for skin lesion research.

Introduction

While working on an academic project in the domain of automatic skin lesion detection it became clear that there was no easy way to track down datasets cited highly in the literature

This is what motivated the creation of SDA-CLI.

SDA-CLI is targeted toward academic and medical researchers looking to source lesion dataset quickly to accelerate their research efforts.

Features at a Glance

Available

  • Dataset summaries and label distribution.
  • Console-based dashboards.
  • Full support for downloading datasets + metadata from the ISIC Archive API.
  • Full support for downloading PH2 dataset.
  • Full support for downloading PAD-UFES-20 dataset.
  • Full support for downloading MEDNODE dataset.

WIP

  • Matplotlib integration for data distribution visualisation.
  • Dataset downloading (public datasets only).
  • Metadata extraction on applicable datasets.
  • Data background information sources and links.
  • Preprocessing of datasets for binary classification.

Datasets Available

The table below shows the dataset currently available to acquire via the tool.

Dataset Available
Altlas of Dermoscopy ❌
BCN 20000 ✅
BCN 20000 Challenge ✅
Brisbane ISIC Challenge 2020 ✅
DERMOFIT ❌
Dermoscopedia (CC BY) ✅
DermIS ⚠️
DermQuest ⚠️
HAM10000 ✅
ISIC 2020 Challenge MSKCC Contribution ✅
ISIC 2020 Vienna Part 1 ✅
ISIC 2020 Vienna Part 2 ✅
JID Editorial Images 2018 ✅
MClass (Dermoscopy) ⚠️
MClass (Dermoscopy) ⚠️
MEDNODE ✅ ️
MSK-1 ✅
MSK-2 ✅
MSK-3 ✅
MSK-4 ✅
MSK-5 ✅
PAD-UFES-20 ✅ ️
PH2 ✅ ️
SONIC ✅
Sydney MIA SMDC 2020 ISIC Challenge Contribution ✅
UDA-1 ✅
UDA-2 ✅
  • ✅ - Fully implemented
  • ⚠️- Work in progress.
  • ❌ - Private dataset

Loading Configurations

There are three ways to load configuration files when using the CLI interface.

  1. The first method is using an explicit YAML configuration file like so:

    sla-cli -f/--config-file <FILE_PATH> <COMMAND> ...
    

  1. The second method is referencing the SLA_CLI_CONFIG_FILE environment variable. Once the variable is set, it will auto-reference the environment variables value, which should be a path to the configuration file you wish to load into the tool.

  1. The third and final method of loading a configuration with the tool is creating a ".sla_cli_config.yml" file in the directory you plan to run the tool in. This method is helpful if you wish to check-in your configuration to SCM.

Commands

The following sub sections discuss the how to use the tool.

The following conventions are used to describe tool usage.

<NAME>                 ---> Required argument.

[NAME: DEFAULT_VALUE]  ---> Optional argument showing default value. 

If unsure of how to use a command, use -h/--help on any command to get context on what commands are available and what they do.

ls

The ls command is to gain quick insight into what data is available.

sla-cli ls [regex: '.*']              # Shows a list of dataset names available.
sla-cli ls -v totals [regex: '.*']    # Shows a list of dataset names and the number of images it contains.
sla-cli ls -v all [regex: '.*']       # Shows a list of dataset names and a full breakdown of all image label distribution

A sample of the sla-cli ls -v all output is shown below:

img.png Sample output of 'sla-cli ls -v all' command.

Metadata

Release files for sla-cli 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sla-cli 0.2.1
File Size Uploaded Provenance
sla-cli-0.2.1.tar.gz 39.2 kB Without provenance Details

Release files / sla-cli-0.2.1.tar.gz

Download URL sla-cli-0.2.1.tar.gz
Size 39.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e128ac8521f83d7270c69346f589a0cc045ac881fe76ef2b4a8f5aa2c494d312
BLAKE2b-256 checksum
How to use checksums
951a8fc8a450f224d1082c3630419896d68749acf7f1bed9708b713d8dd5bb9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.1

Security for sla-cli 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page