Feature/watch path#754
Merged
gongyixiao merged 16 commits intodevelopfrom Mar 17, 2020
Merged
Conversation
4c0ff37 to
62702d5
Compare
a682be5 to
caf8ae7
Compare
anoronh4
approved these changes
Mar 17, 2020
Collaborator
anoronh4
left a comment
There was a problem hiding this comment.
setting --aggregate with no tsv file as input during watch leads to no aggregation of samples, even as pairing and mapping files are populating and complete. Approving pull request for now, but we need to address the use case in the future.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
--watchmode to support watching for changes in--mapping/--bamMapping <tsv>and--pairing <tsv>usingwatchPath()See:
https://www.nextflow.io/docs/latest/channel.html?highlight=watchpath#watchpath
https://docs.oracle.com/javase/tutorial/essential/io/notification.html#overview
https://docs.oracle.com/javase/tutorial/essential/io/examples/WatchDir.java
Notes:
This only works when you make changes to the file you are watching on the same node that your nextflow main process is running due. Meaning if you are running
nextflow run pipeline.nfon node-01, you need to login to node-01 to make changes to the file you are watching.Please ensure all of your inputs in the file you are watching is absolutely correct, because
--watchmode is built to last forever, so if invalid entries appear in the input file, the pipeline will simply ignore it (maybe even without a warning), or the pipeline will stop execution.