Version 2.0.0 - Kagoshima
To migrate from nf-validation please follow the migration guide
New features
- Added the
uniqueEntries
keyword. This keyword takes a list of strings corresponding to names of fields that need to be a unique combination. e.g.uniqueEntries: ['sample', 'replicate']
will make sure that the combination of thesample
andreplicate
fields is unique. (#141) - Added
samplesheetToList
which is the function equivalent of.fromSamplesheet
#3 - Added a warning if the
nf-schema
version is unpinned. Let's hope this prevents future disasters like the release ofnf-validation
v2.0 😁
Changes
- Changed the used draft for the schema from
draft-07
todraft-2020-12
. See the 2019-09 and 2020-12 release notes for all changes (#141) - Removed the
fromSamplesheet
channel operator and added asamplesheetToList
function instead. This function validates the samplesheet and returns a list of it. #3 - Removed the
unique
keyword from the samplesheet schema. You should now useuniqueItems
oruniqueEntries
instead (#141) - Removed the
skip_duplicate_check
option from thesamplesheetToList()
function and the--validationSkipDuplicateCheck
parameter. You should now use theuniqueEntries
oruniqueItems
keywords in the schema instead (#141) samplesheetToList()
now does dynamic typecasting instead of using thetype
fields in the JSON schema. This is done due to the complexity ofdraft-2020-12
JSON schemas. This should not have that much impact but keep in mind that some types can be different between this version and older versions in nf-validation (#141)samplesheetToList()
will now set all missing values as[]
instead of the type specific defaults (because of the changes in the previous point). This should not change that much as this will also result infalse
when used in conditions. (#141)- Removed the configuration parameters and added configuration options instead. For a full list of these new options, please have a look at the configuration docs