Skip to Content
Pipelines & AnalysisMonitoring & DAG Visualization

Monitoring & DAG Visualization

SeqDesk provides real-time monitoring of pipeline runs through Nextflow’s weblog integration and trace file parsing.

Real-Time Monitoring

Weblog Integration

The primary monitoring method uses Nextflow’s weblog feature. When a pipeline runs, Nextflow sends HTTP events to SeqDesk’s weblog endpoint:

POST /api/pipelines/weblog?runId={runId}&token={secret}

Each event updates:

  • Run status — pending, queued, running, completed, failed
  • Step status — which Nextflow processes are running/completed
  • Progress — overall percentage (0–100)
  • Output tail — last ~100 lines of stdout/stderr

Trace File Fallback

If the weblog is unavailable, SeqDesk can monitor via the trace.txt file that Nextflow generates. A background monitor can be run:

# Continuous monitoring npm run pipeline:monitor # Single check (for cron jobs) npm run pipeline:monitor:once

The trace monitor reads process execution data and updates run status accordingly.

Pipeline Run Statuses

StatusDescription
pendingRun created, not yet started
queuedSubmitted to SLURM, waiting for resources
runningNextflow is executing processes
completedAll processes finished successfully
failedOne or more processes failed
cancelledRun was manually cancelled

DAG Visualization

The pipeline definition file (definition.json) describes the workflow as a directed acyclic graph (DAG). SeqDesk renders this as an interactive visualization showing:

  • Each Nextflow process as a node
  • Dependencies between processes as edges
  • Current status of each process (color-coded)
  • Progress through the overall workflow

Process Steps

For the MAG pipeline, the main process steps are:

StepCategoryDescription
SAMPLESHEET_CHECKQCValidate input samplesheet
FASTQC_RAWQCQuality check on raw reads
FASTPPreprocessingRead trimming and filtering
BOWTIE2_HOST_REMOVALPreprocessingRemove host sequences
MEGAHITAssemblyMetagenome assembly
QUASTQCAssembly quality assessment
METABAT2BinningGenome binning
MAXBIN2BinningAlternative binning
DASTOOLBinningBin refinement
CHECKMQCBin completeness/contamination
GTDBTKAnnotationTaxonomic classification
MULTIQCReportingAggregate QC report

Event Feed

Pipeline events are logged in the PipelineRunEvent table and shown in the monitoring UI:

FieldDescription
Event TypeThe type of event (process start, complete, error)
Process NameWhich Nextflow process
StatusProcess status
MessageHuman-readable description
SourceWhere the event came from (weblog, trace, queue)
TimestampWhen the event occurred

Weblog Setup

To enable real-time monitoring:

  1. Go to Admin → Pipeline Runtime
  2. Set the Weblog URL to your SeqDesk instance’s public URL + /api/pipelines/weblog
  3. Set a Weblog Secret for authentication
  4. The URL is automatically included in the Nextflow command

The weblog URL format:

https://your-seqdesk.example.com/api/pipelines/weblog