-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
123 lines (100 loc) · 3.16 KB
/
app.py
File metadata and controls
123 lines (100 loc) · 3.16 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
from flask import Flask, render_template
from dataset import *
app = Flask(__name__)
Filepath = 'Homo_sapiens.GRCh38.85.gff3.gz'
dataset = GFF3_dataset()
dataset.readDataframe(Filepath)
@app.route('/')
def homepage():
return render_template('home.html')
@app.route('/operations')
def operation():
return render_template('operations.html')
@app.route('/op1')
def table1():
new_dataset = dataset.apply(BasicInfo())
page = new_dataset.to_html()
text_file = open("templates/op1.html", "w")
text_file.write(page)
text_file.close()
return render_template('op1.html')
@app.route('/op2')
def table2():
new_dataset = dataset.apply(IdList())
page = new_dataset.to_html()
text_file = open("templates/op2.html", "w")
text_file.write(page)
text_file.close()
return render_template('op2.html')
@app.route('/op3')
def table3():
new_dataset = dataset.apply(UniqueOperations())
page = new_dataset.to_html()
text_file = open("templates/op3.html", "w")
text_file.write(page)
text_file.close()
return render_template('op3.html')
@app.route('/op4')
def table4():
new_dataset = dataset.apply(NFeatures())
page = new_dataset.to_html()
text_file = open("templates/op4.html", "w")
text_file.write(page)
text_file.close()
return render_template('op4.html')
@app.route('/op5')
def table5():
new_dataset = dataset.apply(NEntries())
page = new_dataset.to_html()
text_file = open("templates/op5.html", "w")
text_file.write(page)
text_file.close()
return render_template('op5.html')
@app.route('/op6')
def table6():
new_dataset = dataset.apply(DSChromosomes())
page = new_dataset.to_html()
text_file = open("templates/op6.html", "w")
text_file.write(page)
text_file.close()
return render_template('op6.html')
@app.route('/op7')
def table7():
new_dataset = dataset.apply(UnassembledSeq())
page = new_dataset.to_html()
text_file = open("templates/op7.html", "w")
text_file.write(page)
text_file.close()
return render_template('op7.html')
@app.route('/op8')
def table8():
new_dataset = dataset.apply(Filtered())
page = new_dataset.to_html()
text_file = open("templates/op8.html", "w")
text_file.write(page)
text_file.close()
return render_template('op8.html')
@app.route('/op9')
def table9():
new_dataset = dataset.apply(FilteredEntries())
page = new_dataset.to_html()
text_file = open("templates/op9.html", "w")
text_file.write(page)
text_file.close()
return render_template('op9.html')
@app.route('/op10')
def table01():
new_dataset = dataset.apply(FilteredGeneNames())
page = new_dataset.to_html()
text_file = open("templates/op10.html", "w")
text_file.write(page)
text_file.close()
return render_template('op10.html')
@app.route('/ProjectDocumentation')
def projdoc():
return render_template('ProjectDocumentation.html')
@app.route('/aboutus')
def abtus():
return render_template('aboutus.html')
if __name__=='__main__':
app.run(port=3000, debug=True)