Skip to content

Feature request: samplesheetToMaps function #186

@adamrtalbot

Description

@adamrtalbot

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']
]

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