Skip to content

Commit

Permalink
Merge pull request #229 from stevenweaver/master
Browse files Browse the repository at this point in the history
adding confidence interval. fixes veg/hyphy#1414
  • Loading branch information
stevenweaver authored Oct 15, 2021
2 parents e8ceda4 + 2827f8d commit 0a5bb91
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/absrel/absrel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ HYPHY=$CWD/../../.hyphy/HYPHYMPI

export HYPHY_PATH=$CWD/../../.hyphy/res/

echo "mpirun -np $PROCS $HYPHY LIBPATH=$HYPHY_PATH absrel --alignment $FN --tree $TREE_FN --code $GENETIC_CODE --branches FG --output $RESULTS_FN >> $PROGRESS_FILE"
mpirun -np $PROCS $HYPHY LIBPATH=$HYPHY_PATH absrel --alignment $FN --tree $TREE_FN --code $GENETIC_CODE --branches FG --output $RESULTS_FN >> $PROGRESS_FILE
echo 'mpirun -np $PROCS $HYPHY LIBPATH=$HYPHY_PATH absrel --alignment $FN --tree $TREE_FN --code $GENETIC_CODE --branches FG --output $RESULTS_FN ENV="TOLERATE_NUMERICAL_ERRORS=1;" >> $PROGRESS_FILE'
mpirun -np $PROCS $HYPHY LIBPATH=$HYPHY_PATH absrel --alignment $FN --tree $TREE_FN --code $GENETIC_CODE --branches FG --output $RESULTS_FN ENV="TOLERATE_NUMERICAL_ERRORS=1;" >> $PROGRESS_FILE
3 changes: 3 additions & 0 deletions app/fel/fel.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var fel = function(socket, stream, params) {
self.genetic_code = code[self.params.msa[0].gencodeid + 1];
self.nwk_tree = self.params.analysis.tagged_nwk_tree;
self.rate_variation = self.params.analysis.ds_variation == 1 ? "Yes" : "No";
self.ci = self.params.analysis.ci == true ? "Yes" : "No";

// parameter-derived attributes
self.fn = __dirname + "/output/" + self.id;
Expand Down Expand Up @@ -66,6 +67,8 @@ var fel = function(socket, stream, params) {
self.type +
",rate_variation=" +
self.rate_variation +
",ci=" +
self.ci +
",cwd=" +
__dirname +
",msaid=" +
Expand Down
9 changes: 5 additions & 4 deletions app/fel/fel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ TREE_FN=$tree_fn
STATUS_FILE=$sfn
PROGRESS_FILE=$pfn
BOOTSTRAP=$bootstrap
CI=$ci
RESAMPLE=$resample
RESULTS_FN=$rfn
GENETIC_CODE=$genetic_code
Expand All @@ -29,11 +30,11 @@ trap 'echo "Error" > $STATUS_FILE; exit 1' ERR

if [ $BOOTSTRAP = "true" ]
then
echo "mpirun -np $PROCS $HYPHY LIBPATH=$HYPHY_PATH $FEL --alignment $FN --tree $TREE_FN --code $GENETIC_CODE --branches FG --srv $RATE_VARIATION --output $RESULTS_FILE --resample $RESAMPLE >> $PROGRESS_FILE"
mpirun -np $PROCS $HYPHY LIBPATH=$HYPHY_PATH $FEL --alignment $FN --tree $TREE_FN --code $GENETIC_CODE --branches FG --srv $RATE_VARIATION --output $RESULTS_FILE --resample $RESAMPLE >> $PROGRESS_FILE
echo "mpirun -np $PROCS $HYPHY LIBPATH=$HYPHY_PATH $FEL --alignment $FN --tree $TREE_FN --code $GENETIC_CODE --branches FG --srv $RATE_VARIATION --output $RESULTS_FILE --resample $RESAMPLE --ci $CI >> $PROGRESS_FILE"
mpirun -np $PROCS $HYPHY LIBPATH=$HYPHY_PATH $FEL --alignment $FN --tree $TREE_FN --code $GENETIC_CODE --branches FG --srv $RATE_VARIATION --output $RESULTS_FILE --resample $RESAMPLE --ci $CI >> $PROGRESS_FILE
else
echo "$HYPHY LIBPATH=$HYPHY_PATH $BUSTED --code $GENETIC_CODE --alignment $FN --tree $TREE_FN --branches "All" --rates $omegaClasses --syn-rates $synRateClasses --srv $synRateVariation --grid-size $initialPointsInLikelihood --starting-points $initialGuesses --kill-zero-lengths $KZERO --output $RESULTS_FILE --save-fit /dev/null"
$HYPHY LIBPATH=$HYPHY_PATH $BUSTED --code $GENETIC_CODE --alignment $FN --tree $TREE_FN --branches "All" --rates $omegaClasses --syn-rates $synRateClasses --srv $synRateVariation --grid-size $initialPointsInLikelihood --starting-points $initialGuesses --kill-zero-lengths $KZERO --output $RESULTS_FILE --save-fit /dev/null > $PROGRESS_FILE
echo "$HYPHY LIBPATH=$HYPHY_PATH $BUSTED --code $GENETIC_CODE --alignment $FN --tree $TREE_FN --branches "All" --rates $omegaClasses --syn-rates $synRateClasses --srv $synRateVariation --grid-size $initialPointsInLikelihood --starting-points $initialGuesses --kill-zero-lengths $KZERO --output $RESULTS_FILE --save-fit /dev/null --ci $CI"
$HYPHY LIBPATH=$HYPHY_PATH $BUSTED --code $GENETIC_CODE --alignment $FN --tree $TREE_FN --branches "All" --rates $omegaClasses --syn-rates $synRateClasses --srv $synRateVariation --grid-size $initialPointsInLikelihood --starting-points $initialGuesses --kill-zero-lengths $KZERO --output $RESULTS_FILE --save-fit /dev/null --ci $CI > $PROGRESS_FILE
fi

echo "Completed" > $STATUS_FILE
Expand Down

0 comments on commit 0a5bb91

Please sign in to comment.