-
Notifications
You must be signed in to change notification settings - Fork 0
Add docstrings to nextflow functions, modules, and workflows #62
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
Add docstrings to nextflow functions, modules, and workflows #62
Conversation
| fi | ||
| else | ||
| echo "\${file} exists, adding to process list." | ||
| echo "\${file}" >> files_to_process.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a missing fi after this else block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And also does the while loop need to be closed with a done ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
nextflow/modules/jabs_classifiers.nf
Outdated
| * @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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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...
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.