Skip to content

Move BCLconverts section to the top and remove General statistics from flowcell report. - #78

Merged
KarNair merged 7 commits into
Molmed:mainfrom
nkongenelly:DATAOPS-1623_move_bclconvert_top
Oct 30, 2026
Merged

KarNair merged 7 commits into
Molmed:mainfrom
nkongenelly:DATAOPS-1623_move_bclconvert_top

Conversation

@KarNair

@KarNair KarNair commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Description
This MR implements DATAOPS-1623. The flowcell report has been updated with the following changes:

  • General Statistics section removed
  • bcl2fastq/bclconvert has been moved to the top

Additionally,

  • New integration tests have been added for both project and flowcell reports for bclconvert
  • New test data has been added ie., 200624_A00834_0183_BHMTFYDRXXMICRO (subsampled with seqtk using the runfolder with the same name available on biopickup-staging)
  • Old test data 230825_M04034_0043_000000000-L6NVV has been removed.
  • Updated README

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:

  • rRNA plots and tables should not be present on the project report (This has already been validated locally).
  • BCLConvert/bcl2fastq sections should be on the top in the flowcell report. There should not be a general statistics section. (This has already been validated locally).

@brinkdp brinkdp left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR, but i spotted that bclconvert is misspelled in this test name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed!

@KarNair

KarNair commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

@brinkdp I have fixed the typo as you pointed out. If you think this looks good, I will go ahead and hit merge!

@KarNair
KarNair requested a review from brinkdp October 29, 2026 13:09

@brinkdp brinkdp left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! You can merge this now.

@KarNair
KarNair merged commit c50338e into Molmed:main Oct 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants