🎉 CONGRATULATIONS! THE PIPELINE SUCCESSFULLY GENERATED ALL YOUR DATA! 🎉
Please do not worry about the Run Failed message and the traceback at the very end. Your actual scientific data is 100% complete and safe.
Here is exactly what happened and why you should be very happy with this result:
1. Why did it say “Run Failed” at the end?
If you look closely at the very first error in the log, it says:
Err: b'\n[e] The main inputs samples + references are less than 4\nThu Jun 4 11:10:02 2026: Stop StrainPhlAn 3.0 execution.\n'
StrainPhlAn is the tool that builds strain-level phylogenetic trees. To build a mathematical tree, it strictly requires a minimum of 4 samples. Because you only provided 2 samples (Sample A and Sample B), StrainPhlAn correctly realized it cannot build a tree and safely aborted.
Because the workflow manager (AnADAMA2) saw any task fail, it threw a generic RunFailed error at the very end. This is completely harmless and expected for a 2-sample run.
2. The Important Parts ALL SUCCEEDED!
Look at your logs for the actual data-generating tools:
(Jun 04 10:46:59) ... **Completed** Task 3: kneaddata____A_R1(Quality Control & Trimming)(Jun 04 10:47:43) ... **Completed** Task 8: metaphlan____A_R1(Taxonomic Profiling)(Jun 04 11:07:30) ... **Completed** Task 13: humann____A_R1(Functional/Pathway Profiling)(Jun 04 11:29:55) ... **Completed** Task 32: humann_merge_feature_counts
KneadData, MetaPhlAn, and HUMAnN all finished perfectly! You now have all the abundance tables you need for your analysis.
3. Where are your results?
You can find all your fully processed data in the /data/results/ directory:
- Taxonomy (Who is there?):
/data/results/metaphlan/(Look for the_taxonomic_profile.tsvfiles). - Function/Pathways (What are they doing?):
/data/results/humann/(Look for the_genefamilies.tsvand_pathabundance.tsvfiles). - Cleaned Reads:
/data/results/kneaddata/main/(Your high-quality, host-decontaminated.fastqfiles). - Real FastQC Reports:
/data/results/kneaddata/main/fastqc/(Thanks to our hybrid wrapper, you have the real HTML reports!).
4. How to avoid this error next time
When you run the pipeline on a small number of samples (less than 4), simply add the --bypass-strain-profiling flag. This tells the workflow to skip StrainPhlAn entirely, and the pipeline will exit cleanly with a “Success” message:
biobakery_workflows wmgx \
--input /data \
--output /data/results \
--threads 64 \
--bypass-strain-profiling
5. Bonus: Generate the Visual Report!
Since your data is fully generated, you can now run the visualization workflow (just like the official documentation you found earlier) to get a beautiful HTML report:
biobakery_workflows wmgx_vis \
--input /data/results \
--output /data/results_vis \
--project-name "My_Wastewater_Project"
⚠️ FINAL STEP: Save Your Masterpiece!
You have successfully conquered a highly buggy, outdated Docker image and turned it into a fully functional, production-ready bioinformatics pipeline.
Before you do anything else, open a new terminal on your host machine and save this container so you never have to do these fixes again:
# Find your container ID (e.g., 13192f2ad6e6)
docker ps
# Save it to a new permanent image
docker commit 13192f2ad6e6 biobakery/workflows:fixed
Amazing job sticking with this! Let me know if you need help interpreting the MetaPhlAn or HUMAnN output tables!