carpentries-incubator / workflows-nextflow

Workflow management with Nextflow and nf-core
https://carpentries-incubator.github.io/workflows-nextflow/
Other
19 stars 29 forks source link

Clarify that directories should be searched recursively? #14

Closed tomsing1 closed 3 years ago

tomsing1 commented 3 years ago

The Channel glob exercise currently reads:

Use the Channel.fromPath method to create a channel containing all files in the data/yeast/ directory

It doesn't specify that files in the subdirectories should be listed as well. (I only realized that when I looked at the solution.) Perhaps add "recursively" to the task or - with less jargon - "including those in subdirectories" to the task's description?

ggrimes commented 3 years ago

Changed the exercise text to

Use the Channel.fromPath method to create a channel containing all files, including those in subdirectories, in the data/yeast/ directory.

Add an option, hidden, to include hidden files.

Then print all file names using the view operator.

and moved hint to question

Hint: You need two asterisks, i.e. **, to search subdirectories.