TheJacksonLaboratory / LIRICAL

LIkelihood Ratio Interpretation of Clinical AbnormaLities
https://thejacksonlaboratory.github.io/LIRICAL/stable
Other
22 stars 11 forks source link

Add validation profile and input sanitation #641

Closed ielis closed 6 months ago

ielis commented 6 months ago

Add input sanitation.

The commands now use --validation-policy to choose from MINIMAL, LENIENT and STRICT input validation.

The minimal validation places the most rudimentary requirements and does not try to fix the inputs.

The lenient validation runs unless a serious issue (error) is found in the input. The examples of errors include:

The less severe issues are fixed. The fixes include

The strict validation requires the input to be impeccable - no errors and no warnings.

The documentation has been updated with a new section.

The user can use --dry-run option to check if the input validates.

ielis commented 6 months ago

Needs phenol 2.0.5 (unreleased).

ielis commented 6 months ago

Fixes #637