Skip to content

Commit

Permalink
Merge pull request #117 from veg/develop
Browse files Browse the repository at this point in the history
Updating GARD to latest version of HyPhy. Updating all methods to use kwargs.
  • Loading branch information
stevenweaver authored Apr 25, 2020
2 parents 348aaa2 + 8bfcf64 commit a0069fa
Show file tree
Hide file tree
Showing 20 changed files with 612 additions and 150 deletions.
23 changes: 18 additions & 5 deletions app/bgm/bgm.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
var config = require("../../config.json"),
hyphyJob = require("../hyphyjob.js").hyphyJob,
code = require("../code").code,
model = require("../model").model,
util = require("util"),
fs = require("fs"),
winston = require("winston"),
path = require("path");

const datatypes = {
"1": "nucleotide",
"2": "amino-acid",
"3": "codon"
}

var bgm = function(socket, stream, params) {
var self = this;
self.socket = socket;
Expand All @@ -19,10 +27,15 @@ var bgm = function(socket, stream, params) {
// parameter attributes
self.msaid = self.params.msa._id;
self.id = self.params.analysis._id;
self.genetic_code = self.params.msa[0].gencodeid + 1;
self.genetic_code = code[self.params.msa[0].gencodeid + 1];
self.nj = self.params.msa[0].nj;
self.datatype = self.params.msa[0].datatype;
self.substitution_model = self.params.analysis.substitution_model;
self.datatype = datatypes[self.params.msa[0].datatype];

if(self.params.analysis.substitution_model) {
self.substitution_model = model[self.params.analysis.substitution_model];
} else {
self.substitution_model = null;
}

// parameter-derived attributes
self.fn = __dirname + "/output/" + self.id;
Expand All @@ -38,8 +51,8 @@ var bgm = function(socket, stream, params) {
self.number_of_burn_in_samples =
self.params.analysis.number_of_burn_in_samples;
self.number_of_samples = self.params.analysis.number_of_samples;
self.maximum_parents_per_node = self.params.analysis.maximum_parents_per_node;
self.minimum_subs_per_site = self.params.analysis.minimum_subs_per_site;
self.maximum_parents_per_node = parseInt(self.params.analysis.maximum_parents_per_node);
self.minimum_subs_per_site = parseInt(self.params.analysis.minimum_subs_per_site);

self.qsub_params = [
"-l walltime=" +
Expand Down
21 changes: 12 additions & 9 deletions app/bgm/bgm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
export PATH=/usr/local/bin:$PATH
source /etc/profile.d/modules.sh

module load openmpi/gnu/1.6.3
module load aocc/1.3.0
module load openmpi/gnu/3.0.2

FN=$fn
CWD=$cwd
Expand All @@ -32,18 +32,21 @@ export HYPHY_PATH=$HYPHY_PATH

trap 'echo "Error" > $STATUS_FILE; exit 1' ERR

if [ $DATATYPE -eq 1 ]; then
if [ $DATATYPE == "nucleotide" ]; then
# Nucleotide data
echo "(echo $DATATYPE; echo $FN; echo $TREE_FN; echo 1; echo $LENGTH; echo $BURNIN; echo $SAMPLES; echo $MAXIMUM_PARENTS; echo $MINIMUM_SUBSTITUTIONS; echo $RESULTS_FILE;) | $HYPHY -i LIBPATH=$HYPHY_PATH $BGM >> $PROGRESS_FILE"
(echo $DATATYPE; echo $FN; echo $TREE_FN; echo 1; echo $LENGTH; echo $BURNIN; echo $SAMPLES; echo $MAXIMUM_PARENTS; echo $MINIMUM_SUBSTITUTIONS; echo $RESULTS_FILE;) | $HYPHY -i LIBPATH=$HYPHY_PATH $BGM >> $PROGRESS_FILE
elif [ $DATATYPE -eq 2 ]; then
echo "$HYPHY -i LIBPATH=$HYPHY_PATH $BGM --branches "All" --code $GENETIC_CODE --type $DATATYPE --alignment $FN --tree $TREE_FN --steps $LENGTH --burn-in $BURNIN --samples $SAMPLES --max-parents $MAXIMUM_PARENTS --min-subs $MINIMUM_SUBSTITUTIONS --output $RESULTS_FILE"
$HYPHY -i LIBPATH=$HYPHY_PATH $BGM --branches "All" --code $GENETIC_CODE --type $DATATYPE --alignment $FN --tree $TREE_FN --steps $LENGTH --burn-in $BURNIN --samples $SAMPLES --max-parents $MAXIMUM_PARENTS --min-subs $MINIMUM_SUBSTITUTIONS --output $RESULTS_FILE >> $PROGRESS_FILE

elif [ $DATATYPE == "amino-acid" ]; then
# Amino acid
echo "(echo $DATATYPE; echo $FN; echo $SUBSTITUTION_MODEL; echo $TREE_FN; echo 1; echo $LENGTH; echo $BURNIN; echo $SAMPLES; echo $MAXIMUM_PARENTS; echo $MINIMUM_SUBSTITUTIONS; echo $RESULTS_FILE;) | $HYPHY -i LIBPATH=$HYPHY_PATH $BGM >> $PROGRESS_FILE"
(echo $DATATYPE; echo $FN; echo $SUBSTITUTION_MODEL; echo $TREE_FN; echo 1; echo $LENGTH; echo $BURNIN; echo $SAMPLES; echo $MAXIMUM_PARENTS; echo $MINIMUM_SUBSTITUTIONS; echo $RESULTS_FILE;) | $HYPHY -i LIBPATH=$HYPHY_PATH $BGM >> $PROGRESS_FILE
echo "$HYPHY -i LIBPATH=$HYPHY_PATH $BGM --branches "All" --code $GENETIC_CODE --baseline_model $SUBSTITUTION_MODEL --type $DATATYPE --alignment $FN --tree $TREE_FN --steps $LENGTH --burn-in $BURNIN --samples $SAMPLES --max-parents $MAXIMUM_PARENTS --min-subs $MINIMUM_SUBSTITUTIONS --output $RESULTS_FILE"
$HYPHY -i LIBPATH=$HYPHY_PATH $BGM --branches "All" --code $GENETIC_CODE --baseline_model $SUBSTITUTION_MODEL --type $DATATYPE --alignment $FN --tree $TREE_FN --steps $LENGTH --burn-in $BURNIN --samples $SAMPLES --max-parents $MAXIMUM_PARENTS --min-subs $MINIMUM_SUBSTITUTIONS --output $RESULTS_FILE >> $PROGRESS_FILE

else
# Codon
echo "(echo $DATATYPE; echo $GENETIC_CODE; echo $FN; echo $TREE_FN; echo 1; echo $LENGTH; echo $BURNIN; echo $SAMPLES; echo $MAXIMUM_PARENTS; echo $MINIMUM_SUBSTITUTIONS; echo $RESULTS_FILE;) | $HYPHY -i LIBPATH=$HYPHY_PATH $BGM >> $PROGRESS_FILE"
(echo $DATATYPE; echo $GENETIC_CODE; echo $FN; echo $TREE_FN; echo 1; echo $LENGTH; echo $BURNIN; echo $SAMPLES; echo $MAXIMUM_PARENTS; echo $MINIMUM_SUBSTITUTIONS; echo $RESULTS_FILE;) | $HYPHY -i LIBPATH=$HYPHY_PATH $BGM >> $PROGRESS_FILE
echo "$HYPHY -i LIBPATH=$HYPHY_PATH $BGM --branches "All" --code $GENETIC_CODE --type $DATATYPE --alignment $FN --tree $TREE_FN --steps $LENGTH --burn-in $BURNIN --samples $SAMPLES --max-parents $MAXIMUM_PARENTS --min-subs $MINIMUM_SUBSTITUTIONS --output $RESULTS_FILE"
$HYPHY -i LIBPATH=$HYPHY_PATH $BGM --branches "All" --code $GENETIC_CODE --type $DATATYPE --alignment $FN --tree $TREE_FN --steps $LENGTH --burn-in $BURNIN --samples $SAMPLES --max-parents $MAXIMUM_PARENTS --min-subs $MINIMUM_SUBSTITUTIONS --output $RESULTS_FILE >> $PROGRESS_FILE

fi

echo "Completed" > $STATUS_FILE
5 changes: 3 additions & 2 deletions app/busted/busted.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var config = require("../../config.json"),
hyphyJob = require("../hyphyjob.js").hyphyJob,
code = require("../code").code,
util = require("util"),
fs = require("fs"),
path = require("path");
Expand All @@ -19,8 +20,8 @@ var busted = function(socket, stream, busted_params) {
// parameter attributes
self.msaid = busted_params.msa._id;
self.id = busted_params.analysis._id;
self.ds_variation = busted_params.analysis.ds_variation;
self.genetic_code = self.params.msa[0].gencodeid + 1;
self.ds_variation = busted_params.analysis.ds_variation || "Yes";
self.genetic_code = code[self.params.msa[0].gencodeid + 1];
self.type = self.params.type;

// parameter-derived attributes
Expand Down
13 changes: 7 additions & 6 deletions app/busted/busted_submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ STATUS_FILE=$sfn
PROGRESS_FILE=$pfn
GENETIC_CODE=$genetic_code
RESULTS_FILE=$fn.BUSTED.json
FG_BranchesAllSelected="4"
FG_BranchesSomeSelected="5"
#FG_BranchesAllSelected="4"
#FG_BranchesSomeSelected="5"
synRateVariation=$synRateVariation
synRateClasses=3
omegaClasses=3
Expand All @@ -32,10 +32,11 @@ count=$(echo "${output: -1}")

if [ $count -eq 2 ]
then
echo "(echo $GENETIC_CODE; echo $FN; echo $TREE_FN; echo $FG_BranchesSomeSelected; echo $synRateVariation; echo $omegaClasses; echo $synRateClasses; echo $initialPointsInLikelihood; echo $initialGuesses; echo $RESULTS_FILE; echo '/dev/null';) | $HYPHY -i LIBPATH=$HYPHY_PATH $BUSTED"
(echo $GENETIC_CODE; echo $FN; echo $TREE_FN; echo $FG_BranchesSomeSelected; echo $synRateVariation; echo $omegaClasses; echo $synRateClasses; echo $initialPointsInLikelihood; echo $initialGuesses; echo $RESULTS_FILE; echo '/dev/null';) | $HYPHY -i LIBPATH=$HYPHY_PATH $BUSTED > $PROGRESS_FILE
echo "$HYPHY -i LIBPATH=$HYPHY_PATH $BUSTED --code $GENETIC_CODE --alignment $FN --tree $TREE_FN --branches "FG" --rates $omegaClasses --syn-rates $synRateClasses --srv $synRateVariation --grid-size $initialPointsInLikelihood --starting-points $initialGuesses --output $RESULTS_FILE"
$HYPHY -i LIBPATH=$HYPHY_PATH $BUSTED --code $GENETIC_CODE --alignment $FN --tree $TREE_FN --branches "FG" --rates $omegaClasses --syn-rates $synRateClasses --srv $synRateVariation --grid-size $initialPointsInLikelihood --starting-points $initialGuesses --output $RESULTS_FILE > $PROGRESS_FILE
else
echo "(echo $GENETIC_CODE; echo $FN; echo $TREE_FN; echo $FG_BranchesAllSelected; echo $synRateVariation; echo $omegaClasses; echo $synRateClasses; echo $initialPointsInLikelihood; echo $initialGuesses; echo $RESULTS_FILE; echo '/dev/null';) | $HYPHY -i LIBPATH=$HYPHY_PATH $BUSTED"
(echo $GENETIC_CODE; echo $FN; echo $TREE_FN; echo $FG_BranchesAllSelected; echo $synRateVariation; echo $omegaClasses; echo $synRateClasses; echo $initialPointsInLikelihood; echo $initialGuesses; echo $RESULTS_FILE; echo '/dev/null';) | $HYPHY -i LIBPATH=$HYPHY_PATH $BUSTED > $PROGRESS_FILE
echo "$HYPHY -i 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 --output $RESULTS_FILE"
$HYPHY -i 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 --output $RESULTS_FILE > $PROGRESS_FILE
fi

echo "Completed" > $STATUS_FILE
94 changes: 94 additions & 0 deletions app/contrast-fel/cfel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
var config = require("../../config.json"),
hyphyJob = require("../hyphyjob.js").hyphyJob,
code = require("../code").code,
util = require("util"),
fs = require("fs"),
path = require("path");

var cfel = function(socket, stream, params) {

var self = this;
self.socket = socket;
self.stream = stream;
self.params = params;

fs.writeFile('./cfel_params.json', JSON.stringify(self.params), function(err) {
if (err) throw err;
});


// object specific attributes
self.type = "cfel";
self.qsub_script_name = "cfel.sh";
self.qsub_script = __dirname + "/" + self.qsub_script_name;

// parameter attributes
self.msaid = self.params.msa._id;
self.id = self.params.analysis._id;
self.genetic_code = code[self.params.msa[0].gencodeid + 1];
self.nwk_tree = self.params.analysis.tagged_nwk_tree;
self.branch_sets = self.params.analysis.branch_sets.join(":");
self.rate_variation = self.params.analysis.ds_variation == 1 ? "Yes" : "No";

// parameter-derived attributes
self.fn = __dirname + "/output/" + self.id;
self.output_dir = path.dirname(self.fn);
self.status_fn = self.fn + ".status";
self.results_short_fn = self.fn + ".cfel";
self.results_fn = self.fn + ".FEL.json";
self.progress_fn = self.fn + ".cfel.progress";
self.tree_fn = self.fn + ".tre";

self.qsub_params = [
"-l walltime=" +
config.cfel_walltime +
",nodes=1:ppn=" +
config.cfel_procs,
"-q",
config.qsub_avx_queue,
"-v",
"fn=" +
self.fn +
",tree_fn=" +
self.tree_fn +
",sfn=" +
self.status_fn +
",pfn=" +
self.progress_fn +
",rfn=" +
self.results_short_fn +
",treemode=" +
self.treemode +
",genetic_code=" +
self.genetic_code +
",analysis_type=" +
self.type +
",branch_sets=" +
self.branch_sets +
",rate_variation=" +
self.rate_variation +
",cwd=" +
__dirname +
",msaid=" +
self.msaid +
",procs=" +
config.cfel_procs,
"-o",
self.output_dir,
"-e",
self.output_dir,
self.qsub_script
];

// Write tree to a file
fs.writeFile(self.tree_fn, self.nwk_tree, function(err) {
if (err) throw err;
});

// Ensure the progress file exists
fs.openSync(self.progress_fn, "w");
self.init();
};

util.inherits(cfel, hyphyJob);
exports.cfel = cfel;
33 changes: 33 additions & 0 deletions app/contrast-fel/cfel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

export PATH=/usr/local/bin:$PATH
source /etc/profile.d/modules.sh

module load aocc/1.3.0
module load openmpi/gnu/3.0.2

FN=$fn
CWD=$cwd
TREE_FN=$tree_fn
STATUS_FILE=$sfn
PROGRESS_FILE=$pfn
RESULTS_FN=$rfn
GENETIC_CODE=$genetic_code
RATE_VARIATION=$rate_variation
PROCS=$procs

sets=(`echo $branch_sets | sed 's/:/\n/g'`)

BRANCH_SETS=$(for x in ${sets[@]}; do echo -n " --branch-set $x "; done;)

HYPHY=$CWD/../../.hyphy/HYPHYMPI
HYPHY_PATH=$CWD/../../.hyphy/res/
RESULTS_FILE=$fn.FEL.json

export HYPHY_PATH=$HYPHY_PATH

trap 'echo "Error" > $STATUS_FILE; exit 1' ERR
echo "mpirun -np $PROCS $HYPHY LIBPATH=$HYPHY_PATH contrast-fel --alignment $FN --tree $TREE_FN $BRANCH_SETS --output $RESULTS_FILE >> $PROGRESS_FILE"
mpirun -np $PROCS $HYPHY LIBPATH=$HYPHY_PATH contrast-fel --alignment $FN --tree $TREE_FN $BRANCH_SETS --output $RESULTS_FILE >> $PROGRESS_FILE
echo "Completed" > $STATUS_FILE

11 changes: 9 additions & 2 deletions app/fade/fade.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
var config = require("../../config.json"),
hyphyJob = require("../hyphyjob.js").hyphyJob,
model = require("../model").model,
util = require("util"),
fs = require("fs"),
path = require("path");

estimationMethod = {
"1" : "Metropolis-Hastings",
"2" : "Collapsed-Gibbs",
"3" : "Variational-Bayes"
}

var fade = function(socket, stream, params) {
var self = this;
self.socket = socket;
Expand All @@ -22,8 +29,8 @@ var fade = function(socket, stream, params) {
self.nj = self.params.msa[0].nj;

// FADE specific attributes
self.substitution_model = self.params.analysis.substitution_model;
self.posterior_estimation_method = self.params.analysis.posterior_estimation_method;
self.substitution_model = model[self.params.analysis.substitution_model];
self.posterior_estimation_method = estimationMethod[self.params.analysis.posterior_estimation_method];

// parameter-derived attributes
self.fn = __dirname + "/output/" + self.id;
Expand Down
17 changes: 9 additions & 8 deletions app/fade/fade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,27 @@ export HYPHY_PATH=$HYPHY_PATH
trap 'echo "Error" > $STATUS_FILE; exit 1' ERR
count=$(echo '(echo '$TREE_FN') | '$HYPHY' '$GETCOUNT'' 2> /dev/null)


# Outer if then statment to deal with the different (reduced) menue options if variational bayes is selected as the posterior estimation method
# The two inner if then statments to deal with the differnet order of the branch selection options depending on if all of the branches are selected as FG
if [ $POSTERIORESTIMATIONMETHOD -eq 3 ]
then
if [ $count -eq 2]
then
echo '(echo '$FN'; echo '$RESULTS_FILE'; echo '$CACHE_FILE'; echo '$FG_OPTION_NOT_ALL_SELECTED'; echo '$GRIDPOINTS'; echo '$SUBSTITUTIONMODEL'; echo '$POSTERIORESTIMATIONMETHOD'; echo '$CONCENTRATION';) | '$HYPHY' -i LIBPATH='$HYPHY_PATH' '$FADE''
(echo $FN; echo $RESULTS_FILE; echo $CACHE_FILE; echo $FG_OPTION_NOT_ALL_SELECTED; echo $GRIDPOINTS; echo $SUBSTITUTIONMODEL; echo $POSTERIORESTIMATIONMETHOD; echo $CHAINS; echo $LENGTH; echo $BURNIN; echo $SAMPLES; echo $CONCENTRATION;) | $HYPHY -i LIBPATH=$HYPHY_PATH $FADE > $PROGRESS_FILE
echo "$HYPHY -i LIBPATH=$HYPHY_PATH $FADE --alignment $FN --tree $TREE_FN --branches "All" --cache $CACHE_FILE --grid $GRIDPOINTS --model $SUBSTITUTIONMODEL --method $POSTERIORESTIMATIONMETHOD --chain $CHAINS --chains $LENGTH --burn-in $BURNIN --samples $SAMPLES --concentration_parameter $CONCENTRATION --output $RESULTS_FILE"
$HYPHY -i LIBPATH=$HYPHY_PATH $FADE --alignment $FN --tree $TREE_FN --branches "All" --cache $CACHE_FILE --grid $GRIDPOINTS --model $SUBSTITUTIONMODEL --method $POSTERIORESTIMATIONMETHOD --chain $CHAINS --chains $LENGTH --burn-in $BURNIN --samples $SAMPLES --concentration_parameter $CONCENTRATION --output $RESULTS_FILE > $PROGRESS_FILE
else
echo '(echo '$FN'; echo '$RESULTS_FILE'; echo '$CACHE_FILE'; echo '$FG_OPTION_ALL_SELECTED'; echo '$GRIDPOINTS'; echo '$SUBSTITUTIONMODEL'; echo '$POSTERIORESTIMATIONMETHOD'; echo '$CONCENTRATION';) | '$HYPHY' -i LIBPATH='$HYPHY_PATH' '$FADE''
(echo $FN; echo $RESULTS_FILE; echo $CACHE_FILE; echo $FG_OPTION_ALL_SELECTED; echo $GRIDPOINTS; echo $SUBSTITUTIONMODEL; echo $POSTERIORESTIMATIONMETHOD; echo $CHAINS; echo $LENGTH; echo $BURNIN; echo $SAMPLES; echo $CONCENTRATION; ) | $HYPHY -i LIBPATH=$HYPHY_PATH $FADE > $PROGRESS_FILE
echo "$HYPHY -i LIBPATH=$HYPHY_PATH $FADE --alignment $FN --tree $TREE_FN --branches "All" --cache $CACHE_FILE --grid $GRIDPOINTS --model $SUBSTITUTIONMODEL --method $POSTERIORESTIMATIONMETHOD --chain $CHAINS --chains $LENGTH --burn-in $BURNIN --samples $SAMPLES --concentration_parameter $CONCENTRATION --output $RESULTS_FILE"
$HYPHY -i LIBPATH=$HYPHY_PATH $FADE --alignment $FN --tree $TREE_FN --branches "All" --cache $CACHE_FILE --grid $GRIDPOINTS --model $SUBSTITUTIONMODEL --method $POSTERIORESTIMATIONMETHOD --chain $CHAINS --chains $LENGTH --burn-in $BURNIN --samples $SAMPLES --concentration_parameter $CONCENTRATION --output $RESULTS_FILE > $PROGRESS_FILE
fi
else
if [ $count -eq 2]
then
echo '(echo '$FN'; echo '$RESULTS_FILE'; echo '$CACHE_FILE'; echo '$FG_OPTION_NOT_ALL_SELECTED'; echo '$GRIDPOINTS'; echo '$SUBSTITUTIONMODEL'; echo '$POSTERIORESTIMATIONMETHOD'; echo '$CHAINS'; echo '$LENGTH'; echo '$BURNIN'; echo '$SAMPLES'; echo '$CONCENTRATION'; ) | '$HYPHY' -i LIBPATH='$HYPHY_PATH' '$FADE''
(echo $FN; echo $RESULTS_FILE; echo $CACHE_FILE; echo $FG_OPTION_NOT_ALL_SELECTED; echo $GRIDPOINTS; echo $SUBSTITUTIONMODEL; echo $POSTERIORESTIMATIONMETHOD; echo $CHAINS; echo $LENGTH; echo $BURNIN; echo $SAMPLES; echo $CONCENTRATION;) | $HYPHY -i LIBPATH=$HYPHY_PATH $FADE > $PROGRESS_FILE
echo "$HYPHY -i LIBPATH=$HYPHY_PATH $FADE --alignment $FN --tree $TREE_FN --branches "All" --cache $CACHE_FILE --grid $GRIDPOINTS --model $SUBSTITUTIONMODEL --method $POSTERIORESTIMATIONMETHOD --chain $CHAINS --chains $LENGTH --burn-in $BURNIN --samples $SAMPLES --concentration_parameter $CONCENTRATION --output $RESULTS_FILE"
$HYPHY -i LIBPATH=$HYPHY_PATH $FADE --alignment $FN --tree $TREE_FN --branches "All" --cache $CACHE_FILE --grid $GRIDPOINTS --model $SUBSTITUTIONMODEL --method $POSTERIORESTIMATIONMETHOD --chain $CHAINS --chains $LENGTH --burn-in $BURNIN --samples $SAMPLES --concentration_parameter $CONCENTRATION --output $RESULTS_FILE > $PROGRESS_FILE
else
echo '(echo '$FN'; echo '$RESULTS_FILE'; echo '$CACHE_FILE'; echo '$FG_OPTION_ALL_SELECTED'; echo '$GRIDPOINTS'; echo '$SUBSTITUTIONMODEL'; echo '$POSTERIORESTIMATIONMETHOD'; echo '$CHAINS'; echo '$LENGTH'; echo '$BURNIN'; echo '$SAMPLES'; echo '$CONCENTRATION';) | '$HYPHY' -i LIBPATH='$HYPHY_PATH' '$FADE''
(echo $FN; echo $RESULTS_FILE; echo $CACHE_FILE; echo $FG_OPTION_ALL_SELECTED; echo $GRIDPOINTS; echo $SUBSTITUTIONMODEL; echo $POSTERIORESTIMATIONMETHOD; echo $CHAINS; echo $LENGTH; echo $BURNIN; echo $SAMPLES; echo $CONCENTRATION;) | $HYPHY -i LIBPATH=$HYPHY_PATH $FADE > $PROGRESS_FILE
echo "$HYPHY -i LIBPATH=$HYPHY_PATH $FADE --alignment $FN --tree $TREE_FN --branches "All" --cache $CACHE_FILE --grid $GRIDPOINTS --model $SUBSTITUTIONMODEL --method $POSTERIORESTIMATIONMETHOD --chain $CHAINS --chains $LENGTH --burn-in $BURNIN --samples $SAMPLES --concentration_parameter $CONCENTRATION --output $RESULTS_FILE"
$HYPHY -i LIBPATH=$HYPHY_PATH $FADE --alignment $FN --tree $TREE_FN --branches "All" --cache $CACHE_FILE --grid $GRIDPOINTS --model $SUBSTITUTIONMODEL --method $POSTERIORESTIMATIONMETHOD --chain $CHAINS --chains $LENGTH --burn-in $BURNIN --samples $SAMPLES --concentration_parameter $CONCENTRATION --output $RESULTS_FILE > $PROGRESS_FILE
fi
fi

Expand Down
Loading

0 comments on commit a0069fa

Please sign in to comment.