Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Conversation

@nvnieuwk
Copy link
Collaborator

Fixes #100

Adds a new format type called file-path-pattern which will validate every file found using the globbing pattern in the parameter. Support for globs has also been added to the samplesheet converter, which will now create a list with the files fetched using that glob pattern

@nvnieuwk nvnieuwk requested review from ewels and mirpedrol October 17, 2023 13:22
Copy link
Collaborator

@mirpedrol mirpedrol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a couple of small comments, otherwise looks good :)

}
ArrayList files = Nextflow.file(subject) as ArrayList
ArrayList errors = []
println("${subject}: ${files.size()}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be removed

if(format) {
if(format == "file-path-pattern") {
def ArrayList inputFiles = Nextflow.file(input) as ArrayList
return inputFiles
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These files will be added to the channel in an array if I understood well, we should document this

@nvnieuwk nvnieuwk merged commit a9f31b5 into nextflow-io:master Oct 18, 2023
@nvnieuwk nvnieuwk deleted the feat/format-filepathpattern branch October 18, 2023 09:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support multiple input files via globbing or patterns

2 participants