Debugs failed VGP workflows for a species or assembly ID by analyzing metadata and logs. Provides error summary, diagnosis, fixes, and retry commands.
npx claudepluginhub joshuarweaver/cascade-ai-ml-engineering --plugin delphine-l-claude-globalvgp-pipeline/You are debugging a failed VGP workflow for a specific species.
## Your Task
The species name or assembly ID should be provided as an argument.
Example: `/debug-failed bTaeGut2`
1. **Check metadata first** (token-efficient):
- Identify which workflow failed
- Get the invocation ID
- Check the failure state
2. **Read log file efficiently** (NOT the entire file):
3. **Identify error pattern**:
- Check against known VGP failure patterns:
- **WF0**: No mitochondrial reads (expected, not a real error)
- **WF8**: Missing Hi-C files or WF4 not complete
- **W...You are debugging a failed VGP workflow for a specific species.
The species name or assembly ID should be provided as an argument.
Example: /debug-failed bTaeGut2
Check metadata first (token-efficient):
cat metadata/metadata_run.json | jq '.bTaeGut2'
Read log file efficiently (NOT the entire file):
# Read only the end where errors appear
tail -100 {assembly_id}/planemo_log/{assembly_id}_Workflow_{N}.log
# Or filter for errors
grep -A 20 -i "error\|fail" {assembly_id}/planemo_log/{assembly_id}_Workflow_{N}.log | head -100
Identify error pattern:
Provide diagnosis:
Suggest fixes:
vgp-run-all --resume --retry-failed -p profile.yaml -m ./metadata/
--no-cache for fresh executionProvide: