Skip to content

samplesheetToList converting string values to integer in scientific notation #153

@juyeongkim

Description

@juyeongkim

example schema:

"sample": {
    "type": "string",
    "pattern": "^\\S+$",
    "errorMessage": "Sample name must be provided and cannot contain spaces"
}

example samplesheet.csv:

sample
10E8
4E10

validation error message:

-> Entry 1: Error for field 'sample' (1.0E+9): Value is [integer] but should be [string] (Sample name must be provided and cannot contain spaces)
-> Entry 2: Error for field 'sample' (4E+10): Value is [integer] but should be [string] (Sample name must be provided and cannot contain spaces)

Sample names are converted from string values (10E8 and 4E10) to integer in scientific notation (1.0E+9 and 4E+10) in samplesheetToList.

nextflow version: 25.04.5
nf-schema version: 2.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions