Skip to content

Fix the kraken anchor and add the missing log files - #6

Merged
cokelaer merged 2 commits into
sequana:mainfrom
cokelaer:main
Aug 24, 2026
Merged

Fix the kraken anchor and add the missing log files#6
cokelaer merged 2 commits into
sequana:mainfrom
cokelaer:main

Conversation

@cokelaer

@cokelaer cokelaer commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Two commits.

Anchor of the kraken section

The kraken section of the summary report declared its anchor with a stray quote in the key name ("anchor'" instead of "anchor"), so the section had no anchor and did not show up in the report sidebar. The same typo was fixed in the quality_control and rnaseq pipelines.

Missing log files

Thirteen shell rules had no log: directive. The pipeline monitor follows the modification time of the log files to report progress, so those rules showed a couple of seconds instead of their real duration: copy_genbank, laa, bam2ccs, ccs2fastq, copy_reference, samtools_stats, bamtools_stats, mapping_index, split_multiallelic, mafft, raxml_mltree, raxml_bipartitions and build_fasta.

The redirection follows the shape of each command:

  • tools writing their result on the standard output (samtools stats, bamtools stats, samtools fastq, mafft, cat) only redirect the standard error
  • the piped command of split_multiallelic is wrapped in a subshell
  • the laa rule changes directory, so it is wrapped as well and the log path stays relative to the working directory

rulegraph and dot2svg are now declared as local rules. dot2svg keeps no log: its wrapper prints nothing and it runs in a second.

Validation

Full run on the test data with --apptainer-prefix: 52 of 52 steps done, summary.html and multiqc/multiqc_report.html created, and the new log files are written (mafft.log 1158 bytes, raxml_bipartitions.log 1864 bytes; the silent commands such as cp and cat leave an empty file, created when the job starts, which is what the monitor needs).

🤖 Generated with Claude Code

The key was written "anchor'" with a stray quote, so the section had no
anchor and its sidebar entry pointed to nothing.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Thirteen shell rules had no log directive, so the pipeline monitor could not
follow their progress and reported a couple of seconds instead of the real
duration. This matters for the slow ones (laa, bam2ccs, raxml, mafft).

Each rule now redirects to its log, following the shape of the command:
the tools writing their result on the standard output (samtools stats,
bamtools stats, samtools fastq, mafft, cat) only redirect the standard error,
the piped command of split_multiallelic is wrapped in a subshell, and the laa
rule, which changes directory, is wrapped as well so that the log path stays
relative to the working directory.

dot2svg is left as it is: its wrapper writes no message and it is now a local
rule, together with rulegraph.
@cokelaer cokelaer changed the title Fix the anchor key of the kraken summary section Fix the kraken anchor and add the missing log files Aug 24, 2026
@cokelaer cokelaer closed this Aug 24, 2026
@cokelaer cokelaer reopened this Aug 24, 2026
@cokelaer
cokelaer requested a lite review from Copilot August 24, 2026 11:36

Copilot AI 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.

Pull request overview

Updates the LAA pipeline to fix the Kraken report anchor and add runtime logging for previously unlogged rules.

Changes:

  • Corrects the Kraken summary anchor.
  • Adds log directives and appropriate redirection.
  • Marks rulegraph and dot2svg as local rules.
Suppressed comments (1)

sequana_pipelines/laa/laa.rules:1107

  • The PR description says the same anchor typo was fixed in the quality_control and rnaseq pipelines, but this PR contains only sequana_pipelines/laa/laa.rules and no changes for those pipelines. Please either include those fixes or narrow the description to the change actually delivered here.
                "anchor": "kraken",

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cokelaer
cokelaer merged commit e37a24a into sequana:main Aug 24, 2026
4 checks 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.

2 participants