Skip to content

Add subcommand for searching nf-core test-datasets #3487

@jfy133

Description

@jfy133

Description of feature

When writing modules or pipelines, I often have problems remembering the exact URLs/location of test datafiles on the nf-core/test-datasets repository. I normally have to resort to going to GitHub in my browser and navigating to the write directory which takes a lot of time.

It would be cool to have a nf-core subcommand that allows you to 'search' with clever autocomplete prompts for the exact path, and ideally print the line as you would want to copy/paste into your test.

e.g.

nf-core test-dataset search <start typing keywords for autocomplete>

nf-core test-dataset search sarscov2/genome

And spits out:

For use in modules:

                    file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true)


For use in pipelines:

                    file(params.pipeline_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions