Fix FEL local execution data streaming and parameter handling #333
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Changes Made
Data Streaming Fixes
lib/router.js): Extract alignment data from first parameter as stream for FEL jobsserver.js): Merge tree data into job params and add comprehensive loggingapp/hyphyjob.js): Enhanced file writing with detailed logging and error handlingapp/fel/fel.js): Improved parameter extraction and tree data handlingParameter Handling
branchesparameter support with proper extraction and shell script parsing$BRANCHESvariableresamplevalue from 100 to 1 for faster executionLogging & Debugging
Files Modified
lib/router.js- Data extraction and routing fixesserver.js- Parameter merging and loggingapp/fel/fel.js- Parameter handling and constructor improvementsapp/fel/fel.sh- Dynamic parameter usage and branch selectionapp/hyphyjob.js- File writing enhancements and loggingTest Results
✅ Alignment files now contain proper FASTA data (585 bytes)
✅ Tree files now contain proper Newick data (214 bytes)
✅ HYPHY successfully processes both files
✅ FEL analysis completes successfully with real biological data
Technical Details
The issue was in the data flow pipeline:
{alignment: "...", tree: "...", job: {...}}stream = nullinstead of extracting alignment dataAll issues have been resolved and the complete pipeline now works end-to-end.
🤖 Generated with Claude Code