diff --git a/AirPassengers.csv b/AirPassengers.csv new file mode 100644 index 0000000..0125e28 --- /dev/null +++ b/AirPassengers.csv @@ -0,0 +1,145 @@ +"date","value" +1949-01-01,112 +1949-02-01,118 +1949-03-01,132 +1949-04-01,129 +1949-05-01,121 +1949-06-01,135 +1949-07-01,148 +1949-08-01,148 +1949-09-01,136 +1949-10-01,119 +1949-11-01,104 +1949-12-01,118 +1950-01-01,115 +1950-02-01,126 +1950-03-01,141 +1950-04-01,135 +1950-05-01,125 +1950-06-01,149 +1950-07-01,170 +1950-08-01,170 +1950-09-01,158 +1950-10-01,133 +1950-11-01,114 +1950-12-01,140 +1951-01-01,145 +1951-02-01,150 +1951-03-01,178 +1951-04-01,163 +1951-05-01,172 +1951-06-01,178 +1951-07-01,199 +1951-08-01,199 +1951-09-01,184 +1951-10-01,162 +1951-11-01,146 +1951-12-01,166 +1952-01-01,171 +1952-02-01,180 +1952-03-01,193 +1952-04-01,181 +1952-05-01,183 +1952-06-01,218 +1952-07-01,230 +1952-08-01,242 +1952-09-01,209 +1952-10-01,191 +1952-11-01,172 +1952-12-01,194 +1953-01-01,196 +1953-02-01,196 +1953-03-01,236 +1953-04-01,235 +1953-05-01,229 +1953-06-01,243 +1953-07-01,264 +1953-08-01,272 +1953-09-01,237 +1953-10-01,211 +1953-11-01,180 +1953-12-01,201 +1954-01-01,204 +1954-02-01,188 +1954-03-01,235 +1954-04-01,227 +1954-05-01,234 +1954-06-01,264 +1954-07-01,302 +1954-08-01,293 +1954-09-01,259 +1954-10-01,229 +1954-11-01,203 +1954-12-01,229 +1955-01-01,242 +1955-02-01,233 +1955-03-01,267 +1955-04-01,269 +1955-05-01,270 +1955-06-01,315 +1955-07-01,364 +1955-08-01,347 +1955-09-01,312 +1955-10-01,274 +1955-11-01,237 +1955-12-01,278 +1956-01-01,284 +1956-02-01,277 +1956-03-01,317 +1956-04-01,313 +1956-05-01,318 +1956-06-01,374 +1956-07-01,413 +1956-08-01,405 +1956-09-01,355 +1956-10-01,306 +1956-11-01,271 +1956-12-01,306 +1957-01-01,315 +1957-02-01,301 +1957-03-01,356 +1957-04-01,348 +1957-05-01,355 +1957-06-01,422 +1957-07-01,465 +1957-08-01,467 +1957-09-01,404 +1957-10-01,347 +1957-11-01,305 +1957-12-01,336 +1958-01-01,340 +1958-02-01,318 +1958-03-01,362 +1958-04-01,348 +1958-05-01,363 +1958-06-01,435 +1958-07-01,491 +1958-08-01,505 +1958-09-01,404 +1958-10-01,359 +1958-11-01,310 +1958-12-01,337 +1959-01-01,360 +1959-02-01,342 +1959-03-01,406 +1959-04-01,396 +1959-05-01,420 +1959-06-01,472 +1959-07-01,548 +1959-08-01,559 +1959-09-01,463 +1959-10-01,407 +1959-11-01,362 +1959-12-01,405 +1960-01-01,417 +1960-02-01,391 +1960-03-01,419 +1960-04-01,461 +1960-05-01,472 +1960-06-01,535 +1960-07-01,622 +1960-08-01,606 +1960-09-01,508 +1960-10-01,461 +1960-11-01,390 +1960-12-01,432 diff --git a/Time_Series_Plot.png b/Time_Series_Plot.png new file mode 100644 index 0000000..65375bd Binary files /dev/null and b/Time_Series_Plot.png differ diff --git a/chart/charts.py b/chart/charts.py index f4c8d24..366ae55 100644 --- a/chart/charts.py +++ b/chart/charts.py @@ -1172,7 +1172,8 @@ def Time_Series_Plot(file_path, chart_out_path, out_path, # Draw Plot plt.figure(figsize=(9.4, 4.25), dpi=180) plt.plot(df[x_column], df[y_column], color=polt_color) - + # plt.plot(df['date'], df['value'], color='#365770') + # print(file_path) # Decoration plt.ylim(y_scale_min, y_scale_max) xtick_location = df.index.tolist()[::12] @@ -1186,7 +1187,7 @@ def Time_Series_Plot(file_path, chart_out_path, out_path, plt.yticks(fontsize=y_font_size, alpha=.7) plt.title(title, fontsize=title_font_size) plt.grid(axis='both', alpha=.3) - + plt.show() plt.xticks(rotation=x_scale_font_angle, fontsize=10) plt.yticks(rotation=y_scale_font_angle, fontsize=10) @@ -1198,6 +1199,7 @@ def Time_Series_Plot(file_path, chart_out_path, out_path, plt.gca().spines["bottom"].set_alpha(0.3) plt.gca().spines["right"].set_alpha(0.0) plt.gca().spines["left"].set_alpha(0.3) + plt.savefig(f"{chart_out_path}") # 保存图片 plt.savefig(f"{out_path}.png") plt.savefig(f"{out_path}.svg") diff --git a/file_keep/chart/file/2150060262021653 b/file_keep/chart/file/2150060262021653 new file mode 100644 index 0000000..0125e28 --- /dev/null +++ b/file_keep/chart/file/2150060262021653 @@ -0,0 +1,145 @@ +"date","value" +1949-01-01,112 +1949-02-01,118 +1949-03-01,132 +1949-04-01,129 +1949-05-01,121 +1949-06-01,135 +1949-07-01,148 +1949-08-01,148 +1949-09-01,136 +1949-10-01,119 +1949-11-01,104 +1949-12-01,118 +1950-01-01,115 +1950-02-01,126 +1950-03-01,141 +1950-04-01,135 +1950-05-01,125 +1950-06-01,149 +1950-07-01,170 +1950-08-01,170 +1950-09-01,158 +1950-10-01,133 +1950-11-01,114 +1950-12-01,140 +1951-01-01,145 +1951-02-01,150 +1951-03-01,178 +1951-04-01,163 +1951-05-01,172 +1951-06-01,178 +1951-07-01,199 +1951-08-01,199 +1951-09-01,184 +1951-10-01,162 +1951-11-01,146 +1951-12-01,166 +1952-01-01,171 +1952-02-01,180 +1952-03-01,193 +1952-04-01,181 +1952-05-01,183 +1952-06-01,218 +1952-07-01,230 +1952-08-01,242 +1952-09-01,209 +1952-10-01,191 +1952-11-01,172 +1952-12-01,194 +1953-01-01,196 +1953-02-01,196 +1953-03-01,236 +1953-04-01,235 +1953-05-01,229 +1953-06-01,243 +1953-07-01,264 +1953-08-01,272 +1953-09-01,237 +1953-10-01,211 +1953-11-01,180 +1953-12-01,201 +1954-01-01,204 +1954-02-01,188 +1954-03-01,235 +1954-04-01,227 +1954-05-01,234 +1954-06-01,264 +1954-07-01,302 +1954-08-01,293 +1954-09-01,259 +1954-10-01,229 +1954-11-01,203 +1954-12-01,229 +1955-01-01,242 +1955-02-01,233 +1955-03-01,267 +1955-04-01,269 +1955-05-01,270 +1955-06-01,315 +1955-07-01,364 +1955-08-01,347 +1955-09-01,312 +1955-10-01,274 +1955-11-01,237 +1955-12-01,278 +1956-01-01,284 +1956-02-01,277 +1956-03-01,317 +1956-04-01,313 +1956-05-01,318 +1956-06-01,374 +1956-07-01,413 +1956-08-01,405 +1956-09-01,355 +1956-10-01,306 +1956-11-01,271 +1956-12-01,306 +1957-01-01,315 +1957-02-01,301 +1957-03-01,356 +1957-04-01,348 +1957-05-01,355 +1957-06-01,422 +1957-07-01,465 +1957-08-01,467 +1957-09-01,404 +1957-10-01,347 +1957-11-01,305 +1957-12-01,336 +1958-01-01,340 +1958-02-01,318 +1958-03-01,362 +1958-04-01,348 +1958-05-01,363 +1958-06-01,435 +1958-07-01,491 +1958-08-01,505 +1958-09-01,404 +1958-10-01,359 +1958-11-01,310 +1958-12-01,337 +1959-01-01,360 +1959-02-01,342 +1959-03-01,406 +1959-04-01,396 +1959-05-01,420 +1959-06-01,472 +1959-07-01,548 +1959-08-01,559 +1959-09-01,463 +1959-10-01,407 +1959-11-01,362 +1959-12-01,405 +1960-01-01,417 +1960-02-01,391 +1960-03-01,419 +1960-04-01,461 +1960-05-01,472 +1960-06-01,535 +1960-07-01,622 +1960-08-01,606 +1960-09-01,508 +1960-10-01,461 +1960-11-01,390 +1960-12-01,432 diff --git a/file_keep/chart/file/8180560442021361 b/file_keep/chart/file/8180560442021361 new file mode 100644 index 0000000..0125e28 --- /dev/null +++ b/file_keep/chart/file/8180560442021361 @@ -0,0 +1,145 @@ +"date","value" +1949-01-01,112 +1949-02-01,118 +1949-03-01,132 +1949-04-01,129 +1949-05-01,121 +1949-06-01,135 +1949-07-01,148 +1949-08-01,148 +1949-09-01,136 +1949-10-01,119 +1949-11-01,104 +1949-12-01,118 +1950-01-01,115 +1950-02-01,126 +1950-03-01,141 +1950-04-01,135 +1950-05-01,125 +1950-06-01,149 +1950-07-01,170 +1950-08-01,170 +1950-09-01,158 +1950-10-01,133 +1950-11-01,114 +1950-12-01,140 +1951-01-01,145 +1951-02-01,150 +1951-03-01,178 +1951-04-01,163 +1951-05-01,172 +1951-06-01,178 +1951-07-01,199 +1951-08-01,199 +1951-09-01,184 +1951-10-01,162 +1951-11-01,146 +1951-12-01,166 +1952-01-01,171 +1952-02-01,180 +1952-03-01,193 +1952-04-01,181 +1952-05-01,183 +1952-06-01,218 +1952-07-01,230 +1952-08-01,242 +1952-09-01,209 +1952-10-01,191 +1952-11-01,172 +1952-12-01,194 +1953-01-01,196 +1953-02-01,196 +1953-03-01,236 +1953-04-01,235 +1953-05-01,229 +1953-06-01,243 +1953-07-01,264 +1953-08-01,272 +1953-09-01,237 +1953-10-01,211 +1953-11-01,180 +1953-12-01,201 +1954-01-01,204 +1954-02-01,188 +1954-03-01,235 +1954-04-01,227 +1954-05-01,234 +1954-06-01,264 +1954-07-01,302 +1954-08-01,293 +1954-09-01,259 +1954-10-01,229 +1954-11-01,203 +1954-12-01,229 +1955-01-01,242 +1955-02-01,233 +1955-03-01,267 +1955-04-01,269 +1955-05-01,270 +1955-06-01,315 +1955-07-01,364 +1955-08-01,347 +1955-09-01,312 +1955-10-01,274 +1955-11-01,237 +1955-12-01,278 +1956-01-01,284 +1956-02-01,277 +1956-03-01,317 +1956-04-01,313 +1956-05-01,318 +1956-06-01,374 +1956-07-01,413 +1956-08-01,405 +1956-09-01,355 +1956-10-01,306 +1956-11-01,271 +1956-12-01,306 +1957-01-01,315 +1957-02-01,301 +1957-03-01,356 +1957-04-01,348 +1957-05-01,355 +1957-06-01,422 +1957-07-01,465 +1957-08-01,467 +1957-09-01,404 +1957-10-01,347 +1957-11-01,305 +1957-12-01,336 +1958-01-01,340 +1958-02-01,318 +1958-03-01,362 +1958-04-01,348 +1958-05-01,363 +1958-06-01,435 +1958-07-01,491 +1958-08-01,505 +1958-09-01,404 +1958-10-01,359 +1958-11-01,310 +1958-12-01,337 +1959-01-01,360 +1959-02-01,342 +1959-03-01,406 +1959-04-01,396 +1959-05-01,420 +1959-06-01,472 +1959-07-01,548 +1959-08-01,559 +1959-09-01,463 +1959-10-01,407 +1959-11-01,362 +1959-12-01,405 +1960-01-01,417 +1960-02-01,391 +1960-03-01,419 +1960-04-01,461 +1960-05-01,472 +1960-06-01,535 +1960-07-01,622 +1960-08-01,606 +1960-09-01,508 +1960-10-01,461 +1960-11-01,390 +1960-12-01,432 diff --git a/file_keep/chart/img/2150060262021653.pdf b/file_keep/chart/img/2150060262021653.pdf new file mode 100644 index 0000000..5df96cb Binary files /dev/null and b/file_keep/chart/img/2150060262021653.pdf differ diff --git a/file_keep/chart/img/2150060262021653.png b/file_keep/chart/img/2150060262021653.png new file mode 100644 index 0000000..92f9764 Binary files /dev/null and b/file_keep/chart/img/2150060262021653.png differ diff --git a/file_keep/chart/img/2150060262021653.svg b/file_keep/chart/img/2150060262021653.svg new file mode 100644 index 0000000..e0075ba --- /dev/null +++ b/file_keep/chart/img/2150060262021653.svg @@ -0,0 +1,571 @@ + + + + + + + + + 2021-10-02T15:33:32.939960 + image/svg+xml + + + Matplotlib v3.3.3, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/file_keep/chart/img/8180560442021361.pdf b/file_keep/chart/img/8180560442021361.pdf new file mode 100644 index 0000000..5448f62 Binary files /dev/null and b/file_keep/chart/img/8180560442021361.pdf differ diff --git a/file_keep/chart/img/8180560442021361.png b/file_keep/chart/img/8180560442021361.png new file mode 100644 index 0000000..2a8fee3 Binary files /dev/null and b/file_keep/chart/img/8180560442021361.png differ diff --git a/file_keep/chart/img/8180560442021361.svg b/file_keep/chart/img/8180560442021361.svg new file mode 100644 index 0000000..fa5103a --- /dev/null +++ b/file_keep/chart/img/8180560442021361.svg @@ -0,0 +1,619 @@ + + + + + + + + + 2021-09-28T23:47:40.986133 + image/svg+xml + + + Matplotlib v3.3.3, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/img_eg/show_chart/2150060262021653_10.png b/static/img_eg/show_chart/2150060262021653_10.png new file mode 100644 index 0000000..92f9764 Binary files /dev/null and b/static/img_eg/show_chart/2150060262021653_10.png differ diff --git a/static/img_eg/show_chart/2150060262021653_2.png b/static/img_eg/show_chart/2150060262021653_2.png new file mode 100644 index 0000000..ac00ebe Binary files /dev/null and b/static/img_eg/show_chart/2150060262021653_2.png differ diff --git a/static/img_eg/show_chart/2150060262021653_3.png b/static/img_eg/show_chart/2150060262021653_3.png new file mode 100644 index 0000000..bf1886e Binary files /dev/null and b/static/img_eg/show_chart/2150060262021653_3.png differ diff --git a/static/img_eg/show_chart/2150060262021653_4.png b/static/img_eg/show_chart/2150060262021653_4.png new file mode 100644 index 0000000..1b30f33 Binary files /dev/null and b/static/img_eg/show_chart/2150060262021653_4.png differ diff --git a/static/img_eg/show_chart/2150060262021653_5.png b/static/img_eg/show_chart/2150060262021653_5.png new file mode 100644 index 0000000..84bfa91 Binary files /dev/null and b/static/img_eg/show_chart/2150060262021653_5.png differ diff --git a/static/img_eg/show_chart/2150060262021653_6.png b/static/img_eg/show_chart/2150060262021653_6.png new file mode 100644 index 0000000..29dc61c Binary files /dev/null and b/static/img_eg/show_chart/2150060262021653_6.png differ diff --git a/static/img_eg/show_chart/2150060262021653_7.png b/static/img_eg/show_chart/2150060262021653_7.png new file mode 100644 index 0000000..29dc61c Binary files /dev/null and b/static/img_eg/show_chart/2150060262021653_7.png differ diff --git a/static/img_eg/show_chart/2150060262021653_8.png b/static/img_eg/show_chart/2150060262021653_8.png new file mode 100644 index 0000000..4c424c1 Binary files /dev/null and b/static/img_eg/show_chart/2150060262021653_8.png differ diff --git a/static/img_eg/show_chart/2150060262021653_9.png b/static/img_eg/show_chart/2150060262021653_9.png new file mode 100644 index 0000000..4c424c1 Binary files /dev/null and b/static/img_eg/show_chart/2150060262021653_9.png differ diff --git a/templates/page/tools.html b/templates/page/tools.html index 7b9e573..30db7f2 100644 --- a/templates/page/tools.html +++ b/templates/page/tools.html @@ -60,8 +60,7 @@
Differential expression analysis
-
GO 富集
-
kegg富集
+
fastqc
@@ -190,19 +189,6 @@ form.render(); } - function GO() { - temp = $('#main_show') - temp.empty() - temp.append(String.raw`{% include 'tools/GO.html' %}`) - form.render(); - } - - function kegg() { - temp = $('#main_show') - temp.empty() - temp.append(String.raw`{% include 'tools/kegg.html' %}`) - form.render(); - } function fastqc() { temp = $('#main_show') diff --git a/templates/tools/GO.html b/templates/tools/GO.html deleted file mode 100644 index 6eff929..0000000 --- a/templates/tools/GO.html +++ /dev/null @@ -1,144 +0,0 @@ -
- -
-
- - - {# 选项#} -
-
    - - {# 选项卡#} -
  • GO
  • -
-
-
- -
- -
- - - -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- - -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
- - - {# #} -
- -
-
- - -
- -
-
-
- - -
-
- - - -
-
-
-
-
    -
  • function
  • -
- -
-
-
-

Convert standard gff format files to standard gtf - format

-
-
-
-
- -
-
-
- diff --git a/templates/tools/fastqc.html b/templates/tools/fastqc.html index 9e4bdc2..5dd93b9 100644 --- a/templates/tools/fastqc.html +++ b/templates/tools/fastqc.html @@ -1,42 +1,144 @@ -
-
-

fastqc

-
+
-
+
+
-
+ {# 选项#} +
+
    -
    -
    - 检测的文件 -
    -
    - -
    + {# 选项卡#} +
  • fastqc
  • +
+
+
-
-
+
-
-
-
- 参数 -
-
- -
- +
+ + + +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+ + + {# #} +
+ +
+
+ + + + +
+ +
-
-
-
- +
+ + +
+
+
+
+
    +
  • function
  • +
+ +
+
+
+

Convert standard gff format files to standard gtf + format

+
+
+
+
+
-
\ No newline at end of file +
+ diff --git a/templates/tools/kegg.html b/templates/tools/kegg.html deleted file mode 100644 index bc037ba..0000000 --- a/templates/tools/kegg.html +++ /dev/null @@ -1,58 +0,0 @@ -
-
-

KEGG 富集

-
- -
- - -
- -
-
- 数据库文件 -
-
- -
- -
-
- -
-
-
- 差异表达文件 -
-
- -
- -
-
-
-
-
- 参数 -
-
- -
- -
- -
- -
-
-
-
-
-
-
- -
-
-
\ No newline at end of file diff --git a/test.py b/test.py index 7c84751..fdcd9d4 100644 --- a/test.py +++ b/test.py @@ -1190,6 +1190,31 @@ # for i in a: # i = i.strip() # print(f"{{'name': '{i}', 'value': '', 'astrict': ''}},") +import pandas as pd +from matplotlib import pyplot as plt -for i in range(26): - print(f'') +df = pd.read_csv('AirPassengers.csv') + +# Draw Plot +plt.plot(df['date'], df['value'], color='#365770') + +# Decoration +plt.ylim(50, 750) +xtick_location = df.index.tolist()[::12] +xtick_labels = [x[-4:] for x in df.date.tolist()[::12]] +plt.xticks(ticks=xtick_location, + labels=xtick_labels, + rotation=0, + fontsize=12, + horizontalalignment='center', + alpha=.7) +plt.yticks(fontsize=12, alpha=.7) +plt.title("Air Passengers Traffic (1949 - 1969)", fontsize=18) +plt.grid(axis='both', alpha=.3) + +# Remove borders +plt.gca().spines["top"].set_alpha(0.0) +plt.gca().spines["bottom"].set_alpha(0.3) +plt.gca().spines["right"].set_alpha(0.0) +plt.gca().spines["left"].set_alpha(0.3) +plt.show()