me again, has anyone used samplesheetToList in a m...
# nf-schema
a
me again, has anyone used samplesheetToList in a map?
Copy code
data
    .collectFile() // Make nice CSV
    .map { csv ->
        samplesheetToList(csv, samplesheet_schema)
    }
But when I do this I get a big list and when I flatten/transpose/groupTuple I just get a list of values
Alternatively, can I just validate the channel using the schema...?
n
I think the
validate
function is what you need here 😛 https://nextflow-io.github.io/nf-schema/latest/validate/validate/
😆 1
a
Thank you!
You're still faster than Claude code
🤣 1
(just)
CleanShot 2025-09-05 at 12.57.54.png
🤣 1
n
It's a pretty new function too so the LLMs don't have too much examples to go on 😉
Oh I'm impressed 😛
a
it seems to work but I get the leading `/o/`:
Copy code
/0/Lane (1): Value is [string] but should be [integer]
n
Yeah these are the raw error messages produced by the library, it means that the lane field of the first object is an string instead of a integer