-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from veg/develop
Develop
- Loading branch information
Showing
84 changed files
with
1,987 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties" | ||
], | ||
"presets": [ | ||
"@babel/preset-env", | ||
"@babel/preset-react" | ||
], | ||
"env": { | ||
"start": { | ||
"presets": [ | ||
"@babel/preset-env" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
var mongoose = require("mongoose"), | ||
extend = require("mongoose-schema-extend"), | ||
path = require("path"), | ||
Msa = require(__dirname + "/msa"); | ||
|
||
var AnalysisSchema = require(__dirname + "/analysis"); | ||
|
||
var ContrastFEL = AnalysisSchema.extend({ | ||
tagged_nwk_tree: String, | ||
analysis_type: Number, | ||
original_extension: String, | ||
last_status_msg: String, | ||
branch_sets: [String], | ||
results: Object, | ||
ds_variation: Number | ||
}); | ||
|
||
ContrastFEL.virtual("pmid").get(function() { | ||
return "22807683"; | ||
}); | ||
|
||
ContrastFEL.virtual("analysistype").get(function() { | ||
return "cfel"; | ||
}); | ||
|
||
ContrastFEL.virtual("upload_redirect_path").get(function() { | ||
return path.join("/contrast_fel/", String(this._id), "/select-foreground"); | ||
}); | ||
|
||
/** | ||
* Complete file path for document's file upload | ||
*/ | ||
ContrastFEL.virtual("filepath").get(function() { | ||
return path.join(__dirname, "/../../uploads/msa/", this._id + ".fasta"); | ||
}); | ||
|
||
/** | ||
* Original file path for document's file upload | ||
*/ | ||
ContrastFEL.virtual("original_fn").get(function() { | ||
return path.resolve( | ||
__dirname + | ||
"/../../uploads/msa/" + | ||
this._id + | ||
"-original." + | ||
this.original_extension | ||
); | ||
}); | ||
|
||
/** | ||
* Filename of document's file upload | ||
*/ | ||
ContrastFEL.virtual("status_stack").get(function() { | ||
return ["queue", "running", "completed"]; | ||
}); | ||
|
||
/** | ||
* URL for a busted path | ||
*/ | ||
ContrastFEL.virtual("url").get(function() { | ||
return "http://" + setup.host + "/contrast_fel/" + this._id; | ||
}); | ||
|
||
module.exports = mongoose.model("ContrastFEL", ContrastFEL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
var mongoose = require("mongoose"), | ||
extend = require("mongoose-schema-extend"), | ||
winston = require("winston"), | ||
path = require("path"), | ||
Msa = require(__dirname + "/msa"); | ||
|
||
var AnalysisSchema = require(__dirname + "/analysis"); | ||
|
||
var MULTIHIT = AnalysisSchema.extend({ | ||
last_status_msg: String, | ||
results: Object, | ||
triple_islands: String, | ||
rate_classes: Number | ||
}); | ||
|
||
MULTIHIT.virtual("analysistype").get(function() { | ||
return "multihit"; | ||
}); | ||
|
||
MULTIHIT.virtual("pmid").get(function() { | ||
return "TBD"; | ||
}); | ||
|
||
/** | ||
* Filename of document's file upload | ||
*/ | ||
MULTIHIT.virtual("status_stack").get(function() { | ||
return ["queue", "running", "completed"]; | ||
}); | ||
|
||
MULTIHIT.virtual("upload_redirect_path").get(function() { | ||
return path.join("/multihit/", String(this._id)); | ||
}); | ||
|
||
/** | ||
* Complete file path for document's file upload | ||
*/ | ||
MULTIHIT.virtual("filepath").get(function() { | ||
return path.resolve(__dirname + "/../../uploads/msa/" + this._id + ".fasta"); | ||
}); | ||
|
||
/** | ||
* URL for a multihit path | ||
*/ | ||
MULTIHIT.virtual("url").get(function() { | ||
return "http://" + setup.host + "/multihit/" + this._id; | ||
}); | ||
|
||
module.exports = mongoose.model("MULTIHIT", MULTIHIT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.