Skip to content

Query to list #23

Open
Open
@PikalaxALT

Description

@PikalaxALT

Currently the only retrieval operation is to create a channel, however that is incompatible with queries based on existing channel. Resolving this issue requires implementation of the following construct:

import {queryToList} from 'plugin/nf-sqldb'
ch_fasta = Channel.fromList(['GRCh38', 'GRCm38'])
    .flatMap { refid ->
        queryToList( 'SELECT fasta FROM genomes WHERE id = $1', parameters: [ refId ] )
            .collect { fa -> [ [id: refId], fa ] }
    }

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