Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format file-path-pattern #118

Merged
merged 7 commits into from
Oct 18, 2023

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

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
3 checks passed
@nvnieuwk nvnieuwk deleted the feat/format-filepathpattern branch October 18, 2023 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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