Hi channel - I run sarek and then run another wor...
# sarek
a
Hi channel - I run sarek and then run another workflow to execute verifyBAMId . It's wrapped in a shell script. My question is there a way to write a workflow that runs sarek and then ingests the relevant input from sarek output channel? Basically, I need the aligned sample id, bam, bam index from sarek.
Copy code
# --- Stage 1: Sarek ----------------------------------------------------------
echo ">>> Stage 1: nf-core/sarek using samplesheet: ${input}"
nextflow run nf-core/sarek -r "3.5.1" \
  --input "${input}" \
  --save_output_as_bam \
  -c "sarek.config" \
  -with-tower \
  -resume &&

# --- Stage 2: VerifyBamID2 ---------------------------------------------------
{
  echo ">>> Stage 1 succeeded. Stage 2: VerifyBamID2"
  nextflow run <http://run-verifyBAMID.nf|run-verifyBAMID.nf> \
    --input "${input}" \
    -c "pipeline.config" \
    -with-tower \
    -resume
} &&

echo ">>> Both stages completed successfully."
r
not right now but soon. Ben gave a talk about how nextflow 26.10 enables pipeline composition at the summit: seqera.io/blog/nextflow-26-10-what's-new we’ll need to migrate to the new syntax though so this will take a moment.
People have come up with other solutions including nf-cascade, NodeRed, and others.