Repository navigation
Move BCLconverts section to the top and remove General statistics from flowcell report. - #78
Conversation
Co-authored-by: Karthik Nair <karthik.nair@medsci.uu.se>
brinkdp
left a comment
There was a problem hiding this comment.
Nice job! Fulfills the brief in the ticket:
- in flowcell reports: put bclconvert/bcl2fastq on top and drop General stats,
- in project reports: drop RNA plot.
HTML reports look good and all pytests pass for me. Only very minor comments, see what you think and then go ahead and merge!
Side-observerations:
I had installed the latest version of nextflow on my machine, so i needed to prepend the run cmd with NXF_VER=25.10.2 env var to get it to work.
For fun, I tried it with the bcl2fastq test fixture too, and it seems to work: it renders bcl2fastq header on top of report.
NXF_VER=25.10.2 nextflow run main.nf \
-profile test,dev,singularity \
--demultiplexer "bcl2fastq" \
--run_folder "test_data/210510_M03910_0104_000000000-JHGJL"
| @@ -106,10 +105,9 @@ def test_all_sections_included_in_flowcell_report(result_dir): | |||
| def test_all_sections_included_in_bclcovert_flowcell_report(result_dir): | |||
| flowcell_dir = os.path.join(result_dir, "flowcell_report") | |||
| report_path = os.path.join( | |||
| flowcell_dir, "230825_M04034_0043_000000000-L6NVV_multiqc_report.html" | |||
| flowcell_dir, "200624_A00834_0183_BHMTFYDRXXMICRO_multiqc_report.html" | |||
There was a problem hiding this comment.
You probably already know this since you struggled with the enforced syntax in nextflow v26, but I realized that on v26, you can pass nf version as an env var to pytest: NXF_VER=25.10.2 pytest tests/. Doing so make the pytests pass that would otherwise fail on v26.
There was a problem hiding this comment.
Yes! To apply it system-wide, I have added that environment variable to my .zshrc instead!
|
|
||
|
|
||
| @pytest.mark.parametrize("result_dir", ["bclconvert"], indirect=True) | ||
| def test_all_sections_included_in_bclconvert_project_reports(result_dir): |
There was a problem hiding this comment.
Don't know if you think it is overkill for this ticket, but you could add the negative test cases too, i.e. assert that "Ribosomal RNA" is not in the project reports, and "General stats" are not in the flowcell report.
There was a problem hiding this comment.
I agree! But that would require a refactor of the helper function that currently does the assert, and that is a slightly bigger task than what I have time for this week. But that is definitely something we can improve in the near future!
There was a problem hiding this comment.
Makes sense! Let's prioritize merging this now 🚀
|
|
||
| params { | ||
| run_folder = "$baseDir/test_data/230825_M04034_0043_000000000-L6NVV" | ||
| run_folder = "$baseDir/test_data/200624_A00834_0183_BHMTFYDRXXMICRO" |
There was a problem hiding this comment.
Great job on creating the test data! I know it was quite a bit of work so I just wanted to acknowledge the effort 👏
| @@ -106,10 +105,9 @@ def test_all_sections_included_in_flowcell_report(result_dir): | |||
| def test_all_sections_included_in_bclcovert_flowcell_report(result_dir): | |||
There was a problem hiding this comment.
Unrelated to this PR, but i spotted that bclconvert is misspelled in this test name.
|
@brinkdp I have fixed the typo as you pointed out. If you think this looks good, I will go ahead and hit merge! |
Description
This MR implements DATAOPS-1623. The flowcell report has been updated with the following changes:
General Statisticssection removedbcl2fastq/bclconverthas been moved to the topAdditionally,
200624_A00834_0183_BHMTFYDRXXMICRO(subsampled with seqtk using the runfolder with the same name available on biopickup-staging)230825_M04034_0043_000000000-L6NVVhas been removed.Risk analysis
Low. Does not break any scripts. Only updates the Sections in the flowcell report.
Validation procedure
Run seqreports with
nextflow run -profile test_bclconvert,dev,singularity --demultiplexer "bclconvert" --run_folder "test_data/200624_A00834_0183_BHMTFYDRXXMICRO" main.nf.The multiqc reports should be generated correctly in the
results/folder: