• forked:MotifMaxCircadian
Import an externally hosted application
Check style

  • JavaScript
  • CSS
  • HTML
  • Images
  • Input Data
  • ReadMe
  • forked:MotifMaxCircadian
  • jquery-1.7.1.min.js  
  • jquery-ui-1.8.18.min.js  
  •  
  • history

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
 
MotifMaxCircadian = function(containerId, options) {
    new Application.motifMaxCircadian(containerId, options);
};
 
if (Application === "undefined" || !Application) {
    var Application = {};
}
 
Application.motifMaxCircadian = function() {
    this._init.apply(this, arguments);
};
 
Application.motifMaxCircadian.prototype = {
    
    _containerId : null,
    _baseSequence : null,
    _options : null,
    _motifProperty : null,
    _heptamer : null,
    _octamer : null,
    _appSequence : null,
    _filteredSubjectList : null,
    _motifViewDialogId : null,
    
    _default : {
        appName : "MotifMaxCircadian",
        selectRangeCaption : "Select Range",
        selectPropertyAreaClass : "selectPropertyArea",
        selectPropertyClass : "selectProperty",
        resultAreaClass : "resultArea",
        replaceButtonAreaClass : "replaceButtonArea",
        replaceButtonClass : "replaceButton",
        nextButtonAreaClass : "nextButtonArea",
        replaceSequenceClass : "replaceSequence",
        errorMessageAreaClass : "errorMessage",
        dialogErrorMessageClass : "dialogErrorMessage",
        dialogOutRangeValueMessage : "Please input a value between {0} and {1}",
        noSequenceForThisRange : "No sequence found for this range",
        databaseInfoClass : "databaseInfo",
        motifSequenceProperty : "motif sequence",
        motifPositionProperty : "motif position",
        sinePhaseProperty : "Sine Phase",
        sineAmplitudeProperty : "Sine Amplitude",
        typeProperty : "type",
        validType : "REG",
        motifViewDialogId : "motifViewDialog",
        motifViewDialogClass : "motifViewDialog",
        motifViewDialogTitle : "Motif View",
        minSequenceClass : "minSeq",
        maxSequenceClass : "maxSeq",
        websiteNameAtted : "ATTED",
        websiteNamePpdb : "PPDB",
        baseSequenceMinLength : 50,
        dialogImageUrl : "http://app.linkdata.org/asset/0aea5a0d.png",
        callback : function() {}
    },
    
    _init : function(containerId, options) {
        this._containerId = containerId;
        this._options = $.extend({}, this._default, options);
        this._baseSequence = this._options.baseSequence;
        this.filteredSubjectList = [];
        this._initMotifProperty(this._options);
        this._initAppSequence(this._options);
        this._initHeptamer();
        this._initOctamer();
        this._initFiltering(this._options);
        this._initView();
        this._initListener();
        this._initMotifViewDialog();
    },
    
    _initMotifProperty : function(opts) {
        var obj = {
            workId : opts.workId,
            fileName : opts.fileName
        };
        this._motifProperty = new Application.motifProperty(obj);
    },
    
    _initAppSequence : function(opts) {
        var seqProperty = this._motifProperty.getPropertyByLabel(this._options.motifSequenceProperty);
        var posProperty = this._motifProperty.getPropertyByLabel(this._options.motifPositionProperty);
        var obj = {
            workId : opts.workId,
            fileName : opts.fileName,
            baseSequence : this._baseSequence,
            motifSequenceProperty : seqProperty,
            motifPositionProperty : posProperty,
            containerId : this._containerId,
            errorMessageClass : this._options.errorMessageAreaClass,
            baseSequenceMinLength : this._options.baseSequenceMinLength
        };
        this._appSequence = new Application.sequence(obj);
    },
    
    _initHeptamer : function() {
        this._heptamer = new Application.heptamer();
    },
    
jquery-1.7.1.min.js
jquery-ui-1.8.18.min.js
Playing...

jquery-1.7.1.min.js
jquery-ui-1.8.18.min.js