-
Notifications
You must be signed in to change notification settings - Fork 260
Improvements to Side Quest: Working with Files #744
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
base: master
Are you sure you want to change the base?
Conversation
we don't need to title these code boxes, it's overkill
Will use this as a model for the others
Included a few TODO comments that are non-blocking for the PR, just ideas for future improvement
Still need to do the Summary section on scripting patterns but kid 2 wants me to play Roblox with her
…io/training into gvda-sidequests-layout
✅ Deploy Preview for nextflow-training ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Nextflow linting complete! ❌ 5 files had 33 errors 💡 Tip: Click filename locations to go directly to that code. View all 33 issues
View formatting changes
|
|
Fixes #700 |
|
Nextflow linting complete! ❌ 5 files had 33 errors 💡 Tip: Click filename locations to go directly to that code. View all 33 issues
|
+ updated the solution + changed a few variable names etc to generalize (make less domain specific)
|
Nextflow linting complete! ❌ 5 files had 33 errors 💡 Tip: Click filename locations to go directly to that code. View all 33 issues
|
|
Nextflow linting complete! ❌ 5 files had 33 errors 💡 Tip: Click filename locations to go directly to that code. View all 33 issues
|
| File name: patientA_rep1_normal_R1_001.fastq.gz | ||
| Simple name: patientA_rep1_normal_R1_001 | ||
| Extension: gz | ||
| Parent directory: /nextflow-io/training/blob/bb187e3bfdf4eec2c53b3b08d2b60fdd7003b763/side-quests/working_with_files/data |
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.
Here, and the next lines, are inaccurate. The original code probably used processes. I say this because without processes, the file is not staged and then the following explanations do not fit. One easy solution here would be to turn this snippet into a workflow with a process.
The correct output is: Parent directory: /nextflow-io/training/master/side-quests/working_with_files/data
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.
The difference is just pointing at a SHA vs pointing at a blob, but you're right, it should be consistent
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.
What SHA? The file is not downloaded.
mribeirodantas
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.
We gotta fix the section 2 issue (the current explanation expects it to work as if it was within a process, but we are not using Nextflow processes there).
The blob doesn't indicate it was used in a process, just the that the git link provided pointed at a specific SHA. |
pinin4fjords
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.
Minor comments you can address, but giving a thumbs up to unblock you when you're ready to merge
| This is a mini-workflow (without any processes) that refers to a single file path in its workflow, then prints it to the console, along with its class. | ||
|
|
||
| !!! note | ||
| <details> |
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.
Can't we use the mkdocs admonition? (??? etc?)
|
|
||
| As advertised, this is a small workflow with one process (`COUNT_LINES`) that is meant to take a file input and count how many lines are in it. | ||
|
|
||
| <details> |
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.
Can't we use the mkdocs admonition? (??? etc?)
|
|
||
| input: | ||
| tuple val(meta), path(fastqs) | ||
| tuple val(meta), path( files) |
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.
| tuple val(meta), path( files) | |
| tuple val(meta), path(files) |
| echo "Read 1: ${ files[0]}" >> ${meta.id}_stats.txt | ||
| echo "Read 2: ${ files[1]}" >> ${meta.id}_stats.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.
| echo "Read 1: ${ files[0]}" >> ${meta.id}_stats.txt | |
| echo "Read 2: ${ files[1]}" >> ${meta.id}_stats.txt | |
| echo "Read 1: ${files[0]}" >> ${meta.id}_stats.txt | |
| echo "Read 2: ${files[1]}" >> ${meta.id}_stats.txt |
| File name: patientA_rep1_normal_R1_001.fastq.gz | ||
| Simple name: patientA_rep1_normal_R1_001 | ||
| Extension: gz | ||
| Parent directory: /nextflow-io/training/blob/bb187e3bfdf4eec2c53b3b08d2b60fdd7003b763/side-quests/working_with_files/data |
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.
The difference is just pointing at a SHA vs pointing at a blob, but you're right, it should be consistent
Not the blob. The "[...] current explanation [...]" indicates. |
Improvements to the Working with Files Side Quest
Based on my experience teaching in Nov 2025
(Branch was started from my side quests layout improvements branch)