Skip to content

Commit

Permalink
add a small note about the automatic typing in csv or tsv
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnieuwk committed Apr 18, 2024
1 parent 131848b commit 47514c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/samplesheets/samplesheetToList.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ These can be either a string with the relative path (from the root of the pipeli
samplesheetToList("path/to/samplesheet", "path/to/json/schema")
```

!!! note

All data points in the CSV and TSV samplesheets will be converted to their derived type. (e.g. `"true"` will be converted to the Boolean `true` and `"2"` will be converted to the Integer `2`). You can still convert these types back to a String if this is not the expected behaviour with `.map { val -> val.toString() }`

This function can be used together with existing channel factories/operators to create one channel entry per samplesheet entry.

### Use as a channel factory
Expand Down

0 comments on commit 47514c0

Please sign in to comment.