• forked:Design for Formaldehyde-detoxifying Plant by Expression of a Cell wall-anchored Enzyme.
Import an externally hosted application
Check style

  • JavaScript
  • CSS
  • HTML
  • Images
  • Input Data
  • ReadMe
  • forked:Design for Formaldehyde-detoxifying Plant by Expression of a Cell wall-anchored Enzyme.
  • jquery-1.7.1.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
 
//---------------------------------------------------------------
// window.onloadメソッド
//概要:
//  遺伝情報の組み立ての主処理。
//  本関数内で使用している独自に定義したオブジェクトDNAとProteinは
//  本コード後半で定義している。
//引数:
//  なし
//戻り値:
//  なし
//---------------------------------------------------------------
window.onload = function()
    {
        $( '#result' ).append( '<h1>Submission for GenoCon2012 Challenge B</h1>' );
        $( '#result' ).append( '<p class="message">Start!</p>' );
        try
        {
            // FDHの処理
            $( '#result' ).append( '<h2>FDH</h2>');
            $( '#result' ).append( '<h3>Loading FDH protein</h3>');
            var FDH = new Protein();
            FDH.loadSequence( 'rdf1s327i', 'protein', 'http://www.uniprot.org/uniprot/P46154' );
            FDH.write();
            $( '#result' ).append( '<p>length = ' + FDH.getLength() + ' aa</p>');
            
            $( '#result' ).append( '<h3>Addition of Signal Peptide</h3>');
            var FDHwithSP = Protein();
            FDHwithSP = FDH.addSignalPeptide( 'http://scinets.org/item/cria228s2ria228s5i' );
            FDHwithSP.write();
            $( '#result' ).append( '<p>length = ' + FDHwithSP.getLength() + ' aa</p>');
            
            $( '#result' ).append( '<h3>Reverse-translation</h3>');
            var fdh_with_sp = FDHwithSP.reverseTranslate( 'rdf1s291i', 'codon_table_of_Arabidopsis_thaliana' );
            fdh_with_sp.write();
            $( '#result' ).append( '<p>length = ' + fdh_with_sp.getLength() + ' bp</p>');
            
            // P1の処理
            $( '#result' ).append( '<h2>P1</h2>');
            $( '#result' ).append( '<h3>Loading P1 gene</h3>');
            var p1 = new DNA();
            p1.loadSequence(  'rdf1s327i', 'dna', 'http://www.ebi.ac.uk/ena/data/view/AAF26471' );
            p1.write();
            $( '#result' ).append( '<p>length = ' + p1.getLength() + ' bp</p>');
            
            $( '#result' ).append( '<h3>Cutting out Linker</h3>');
            var linker = p1.fragmentate( 187, 270 );
            linker.write();
            $( '#result' ).append( '<p>length = ' + linker.getLength() + ' bp</p>');        
            
            //CBPの処理
            $( '#result' ).append( '<h2>CBP</h2>');
            $( '#result' ).append( '<h3>Loading CBP Protein</h3>');
            var CBP = new Protein();
            CBP.loadSequence(  'rdf1s327i', 'protein', 'http://www.uniprot.org/uniprot/B0FGT7' );
            CBP.write();
            $( '#result' ).append( '<p>length = ' + CBP.getLength() + ' aa</p>');
            
            $( '#result' ).append( '<h3>Removing Signal Peptide</h3>');
            var CBPwithoutSP = CBP.fragmentate( 26, CBP.getLength() );
            CBPwithoutSP.write();
            $( '#result' ).append( '<p>length = ' + CBPwithoutSP.getLength() + ' aa</p>');
            
            $( '#result' ).append( '<h3>Reverse-translation</h3>');
            var cbp_without_sp = CBPwithoutSP.reverseTranslate( 'rdf1s291i', 'codon_table_of_Arabidopsis_thaliana' );
            cbp_without_sp.write();
            $( '#result' ).append( '<p>length = ' + cbp_without_sp.getLength() + ' bp</p>');
            
            // 各塩基配列の結合
            $( '#result' ).append( '<h2>Combine</h2>');
            $( '#result' ).append( '<h3>FDH with Signal Peptide + Linker of P1 + CBP without Signal Peptide</h3>');
            var FDH_LINKER_CBP = new DNA( fdh_with_sp, linker, cbp_without_sp, 'TAA' );
            FDH_LINKER_CBP.write();
            $( '#result' ).append( '<p>length = ' + FDH_LINKER_CBP.getLength() + ' aa</p>');
            
            $( '#result' ).append( '<p class="message">successfully-completed!<p>' );
        }
        catch( e )
        {
            $( '#result' ).append( '<p class="error">' + e + '</p>' );
        }
    };
 
////////////////////////////////////////////////////////////////////////////////////
//
//  以下は遺伝情報の組み立てのための汎用的モジュール
//
////////////////////////////////////////////////////////////////////////////////////
 
 
//---------------------------------------------------------------
//Sequenceクラスのコンストラクタ
//概要:
//  DNA、Proteinなどのシーケンスを格納・管理するための
//  クラスの親クラス。Sequenceクラス自体のインスタンスは生成せず
//  抽象クラスとして扱うものとする。
//引数:
//  なし
//戻り値:
//  なし
//---------------------------------------------------------------
jquery-1.7.1.min.js
Playing...

jquery-1.7.1.min.js