Add docstrings to nextflow functions, modules, and workflows - #62
Merged
SkepticRaven merged 6 commits intoSep 22, 2025
Merged
Conversation
bergsalex
reviewed
Aug 26, 2025
| fi | ||
| else | ||
| echo "\${file} exists, adding to process list." | ||
| echo "\${file}" >> files_to_process.txt |
Collaborator
There was a problem hiding this comment.
Is there a missing fi after this else block?
Collaborator
There was a problem hiding this comment.
And also does the while loop need to be closed with a done ?
Contributor
Author
There was a problem hiding this comment.
Both should be there, but github might be hiding your context.
This patch should have been separate, but it fixes behavior when you want to ignore invalid inputs -- it used to place the file in the list to process and would just crash later.
| * @param tuple | ||
| * - in_pose The input pose file. | ||
| * - feature_cache The directory containing the generated features. | ||
| * @param classifiers A map of classifier names to their respective parameters. |
Collaborator
There was a problem hiding this comment.
You document the tuples, it might be nice to document what the map looks like.
e.g.
@param classifiers A map where each entry contains:
- key: classifier name (string)
- value: object 🤷
Contributor
Author
There was a problem hiding this comment.
How about:
* @param classifiers A map of classifiers:
* - classifier_name: a list of classifier parameter maps:
* - stitch_value: the gap size for stitching behavior bouts
* - filter_value: the minimum length for behavior bouts
I think the nested maps might get a bit verbose...
C-1337ka
approved these changes
Sep 17, 2025
gbeane
approved these changes
Sep 17, 2025
SkepticRaven
deleted the
YODA-193-add-docstrings-to-nextflow-functions-modules-and-workflows
branch
September 22, 2025 13:10
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.
My attempt to meld javadoc style/intent into nextflow documentation.
Changes from javadoc:
@publishtag to indicate when a workflow or process publishes data outside its workdir.@returntag, since nextflow is MIMO.Features that might be useful in docstrings but not added:
param.*) used in processes/workflows not listed. javadoc has a@notetag, which could be used for noteworthy parameters.