-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Sometimes, it would be useful to parse a samplesheet and return a key-val pair instead of a list of tuples as is returned by samplesheetToList. We could add a samplesheetToMaps function which returns a list of key-val pairs.
name,language,greeting
adam,english,hello
geraldine,french,bonjour
samplesheetToList('greetings.csv')
[
[ 'adam', 'english', 'hello' ],
[ 'geraldine', 'french', 'bonjour' ]
]samplesheetToMap('greetings.csv')
[
[ name: 'adam', language: 'english', greeting: 'hello' ],
[ name: 'geraldine', language: 'french', greeting: 'bonjour']
]ammaraziz
Metadata
Metadata
Assignees
Labels
No labels