-
Notifications
You must be signed in to change notification settings - Fork 223
Schema launch updates #626
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
Conversation
* Shorten cli help text strings * Update input paramters instead of clobbering
Start with JSON schema defaults for all parameters, then overwrite these with whatever inputs and prompts are supplied. Then validate this full set of inputs - means that default values for required params no longer fail. Default values then removed again before printing to a file.
Codecov Report
@@ Coverage Diff @@
## dev #626 +/- ##
==========================================
+ Coverage 68.09% 75.45% +7.35%
==========================================
Files 11 11
Lines 1984 2159 +175
==========================================
+ Hits 1351 1629 +278
+ Misses 633 530 -103
Continue to review full report at Codecov.
|
Also fix markdownlint errors
maxulysse
left a comment
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.
Looks good to me, but I'm not sure about the pythony part.
I should really iron out my python skills.
|
OK, so when I create a group, name it, and then delete it, it doesn't disappear from the builder, and I can't access options (with the cog). Deleted group that doesn't disappear from the builder is actually not saved in the schema, but still disturbing to see it there. |
|
I like the possibility to add an icon to a params, but do we really need all brands from font-awesome? Given the huge amount of icons, is there any guidelines on which icons to use for some common params? I am allowed to try to change the icon for a group, but it is actually not working. |
|
I understood that I was hoping you actually could save your progress and access it again, which also explained the 24 hours expiration period. I'm now guessing that if you want to continue working on a schema, you need to save it first, and then continue with the json. Could be good to detail that in the docs. |
|
Keyboards shortcuts for power users is a good idea. But with a long enough list of params, if you're on the bottom and use EDIT: and similar behaviour with Also, it's |
|
If you’re able to make a gif of this kind of behaviour to explain what you mean, that would be fab 👍🏻 Screenshots also fine. |
|
I agree that having defaults for |
|
Mentioned on slack - my idea for this is that if no schema is found it will auto generate one using the pipeline schema, then update this against the pipeline. Should be relatively little code to add and will mean you start off with a nice boilerplate schema with all of the common options already done for you. |
|
Sounds good to me :-) |
Instead of recurisvely calling the check status function, use a loop. Avoids recursion depth limits and means that we can effectively wait forever without timing out.
|
Ok, rewrote how the schema builder waits for a response from the website so that it no longer times out. It should wait forever now. |
|
TODO:
|
|
The I have just one minor comment:
For the
|
|
Thanks for the testing and feedback @ggabernet! Regarding the last point, for me this already happens: Could you give a bit more info about when this happens for you so that I can try to replicate it? |
Set a minimum height for the content area of a group. This makes it easier to drop params into empty groups. Suggested by @ggabernet in nf-core/tools#626
|
With the The JSON description for metadata in the builder is then the following: Edit: found that this is listed here: Then I launch the pipeline with It does prompt me an error if I try to edit it and leave it empty, though, the same as you described: |
|
Aha, ok - so it needs to validate at the group level as well as the parameter level 👍 Thanks, yes I should be able to do this.. |
|
And yes, in the template we have a default value set for |
|
One other small thing: when I run In the end it complains that it does not find the Maybe it could check for the |
|
Hah, excellent! Apparently |
Changed order of groups - moved Generic options up. Added some descriptions and help text to groups.
Also remove default value from template schema for --reads
|
Ok, I think that all of your points are now addressed @ggabernet 👍 |
Also update caching for fetch_wf_config() so that it works purely on filenames / file hashes.
Fix bug with parsing params from main.nf
Updates to
nf-core launchto work with new pipeline JSON schema.PR checklist
docsis updatedCHANGELOG.mdis updatedREADME.mdis updatedMaybe also want to wrap the send-to-website-GUI functionality into this PR too, even if the website side is not yet written.