Skip to content

Commit

Permalink
adding error sink option
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenweaver committed Nov 13, 2024
1 parent ce86ef2 commit ddb014b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/models/busted.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var Busted = AnalysisSchema.extend({
multihit: String,
results: Object,
ds_variation: Number,
error_protection: String,
});

Busted.virtual("analysistype").get(function () {
Expand Down Expand Up @@ -62,6 +63,7 @@ Busted.statics.spawn = function (fn, options, callback) {
datatype = 0,
gencodeid = options.gencodeid,
ds_variation = options.ds_variation,
error_protection = options.error_protection,
multihit = options.multihit;

busted.tagged_nwk_tree = options.nwk_tree;
Expand Down Expand Up @@ -93,6 +95,8 @@ Busted.statics.spawn = function (fn, options, callback) {

busted.msa = msa;
busted.ds_variation = ds_variation;
busted.error_protection = error_protection;

busted.multihit = multihit;

busted.save((err, busted_result) => {
Expand Down
4 changes: 3 additions & 1 deletion app/routes/busted.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ exports.uploadFile = function (req, res) {
postdata = req.body,
datatype = 0,
gencodeid = data.gencodeid,
ds_variation = postdata.ds_variation;
ds_variation = postdata.ds_variation,
error_protection = postdata.error_protection;
multihit = postdata.multihit;

busted.mail = postdata.mail;
Expand Down Expand Up @@ -54,6 +55,7 @@ exports.uploadFile = function (req, res) {

busted.msa = msa;
busted.ds_variation = ds_variation;
busted.error_protection = error_protection;
busted.multihit = multihit;

busted.save(function (err, busted_result) {
Expand Down
10 changes: 9 additions & 1 deletion app/templates/busted/upload_msa.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</div>

<div class="ds-variation-div pt-2 pb-2">
<label>Synonymous rate variation (recommended)?</label>
<label>BUSTED-S : Synonymous rate variation (recommended)?</label>
<select id="ds-variation">
<option value="1">
Yes
Expand All @@ -86,6 +86,14 @@
</select>
</div>

<div class="error-protection-div pt-2 pb-2">
<label>BUSTED-E : Error-protection component?</label>
<select id="error-protection" name="error_protection">
<option value="No" selected>No</option>
<option value="Yes">Yes</option>
</select>
</div>

<div class="multihit-div pt-3 pb-3 pl-2 bg-light rounded">
<label><span class="badge rounded-pill text-bg-info">Advanced</span> Include support for multiple nucleotide substitutions? </label>
<select id="multihit">
Expand Down
1 change: 1 addition & 0 deletions public/assets/js/busted/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ $(function () {
formData.append("datatype", $("select[name='datatype']").val());
formData.append("gencodeid", $("select[name='gencodeid']").val());
formData.append("ds_variation", $("#ds-variation").val());
formData.append("error_protection", $("#error-protection").val());
formData.append("mail", $("input[name='mail']").val());
formData.append("multihit", $("#multihit").val());

Expand Down

0 comments on commit ddb014b

Please sign in to comment.