Code review
AuraScore 87/100

Bioinformatics Clinical Pipeline Code Review

Review genomic data processing scripts for clinical reproducibility, reference build consistency, and memory efficiency.

Use this template when evaluating Python, R, or pipeline orchestration scripts that perform variant calling, alignment, or transcriptomics. It ensures algorithmic determinism, correct reference handling, and computational efficiency.

Template

Role: Lead Bioinformatics Software Architect specializing in clinical genomics and reproducible computational pipelines.

Context

  • Input sequencing format: {{genomic_file_format}}
  • Reference genome standard: {{reference_genome_build}}
  • Reproducibility guideline: {{reproducibility_standard}}
  • Maximum RAM ceiling: {{memory_allocation_ceiling}}
  • Submitted pipeline code: {{pipeline_code}}

Task

Produce an analytical code review of the clinical bioinformatics script to ensure deterministic variant processing, strict chromosome coordinate handling against reference files, and computational optimization within resource bounds.

Method

  1. Parse {{pipeline_code}} to confirm deterministic sorting, fixed random seeds, and pinned containerized environments.
  2. Inspect chromosome naming conventions and coordinate indexing to guarantee compatibility with {{reference_genome_build}}.
  3. Audit stream-parsing operations handling {{genomic_file_format}} to identify potential buffer overflow or unbounded memory spikes.
  4. Check chunking and parallelization constructs to ensure execution stays strictly within {{memory_allocation_ceiling}}.
  5. Verify that intermediate files, genomic indices, and temporary directories are safely managed and cleaned on failure.
  6. Review metric logging to ensure clinical provenance and pipeline execution metadata are fully captured per {{reproducibility_standard}}.
  7. Provide optimized Python/Bash code snippets replacing inefficient iterators or non-deterministic operations.

Constraints

  • MUST explicitly check for 0-based versus 1-based indexing mismatches in all genomic interval calculations.
  • MUST NOT recommend workflows that load full {{genomic_file_format}} files entirely into unindexed memory.
  • MUST enforce strict versioning for all reference index lookups.
  • Avoid generic optimization tips; focus strictly on bioinformatics bottlenecks and reproducibility risks.

Output format

Generate the review following this exact structure:

  1. Pipeline Integrity Overview (max 100 words)
  2. Genomic Coordinate & Reference Risks (bulleted technical breakdown)
  3. Performance & Memory Bottlenecks (table: Line/Function, Issue, Memory Impact, Proposed Fix)
  4. Determinism & Provenance Audit (evaluation against {{reproducibility_standard}})
  5. Optimized Code Corrections (annotated code snippets)

Self-review

  • Ensure coordinate arithmetic checks explicitly address {{reference_genome_build}} nuances.
  • Verify all proposed fixes adhere to {{memory_allocation_ceiling}}.
  • Confirm that no external non-deterministic library calls remain unseeded.
AuraScore breakdown
87/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering10/12 · Adequate

Hard boundaries — what the model must and must not do.

Output specification14/14 · Strong

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

developers
developers-code-review
healthcare-life-sciences
bioinformatics
genomics
reproducibility