From 057be23acf19acae0683c59b0a346b411a04880a Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 5 Aug 2023 13:41:36 +0200 Subject: Cleanup of posts --- static/posts/dna-sequence/benchmarks.csv | 7 + static/posts/dna-sequence/benchmarks.ods | Bin 21911 -> 0 bytes static/posts/dna-sequence/chart-1.png | Bin 64760 -> 0 bytes static/posts/dna-sequence/chart-2.png | Bin 74241 -> 0 bytes static/posts/dna-sequence/chart-encoding-speed.png | Bin 14201 -> 0 bytes static/posts/dna-sequence/chart-file-sizes.png | Bin 12391 -> 0 bytes static/posts/dna-sequence/chart-size.py | 28 + static/posts/dna-sequence/chart-size.svg | 1553 ++++++++++++++++++++ static/posts/dna-sequence/chart-speed.py | 23 + static/posts/dna-sequence/chart-speed.svg | 1416 ++++++++++++++++++ 10 files changed, 3027 insertions(+) create mode 100644 static/posts/dna-sequence/benchmarks.csv delete mode 100755 static/posts/dna-sequence/benchmarks.ods delete mode 100644 static/posts/dna-sequence/chart-1.png delete mode 100644 static/posts/dna-sequence/chart-2.png delete mode 100755 static/posts/dna-sequence/chart-encoding-speed.png delete mode 100755 static/posts/dna-sequence/chart-file-sizes.png create mode 100644 static/posts/dna-sequence/chart-size.py create mode 100644 static/posts/dna-sequence/chart-size.svg create mode 100644 static/posts/dna-sequence/chart-speed.py create mode 100644 static/posts/dna-sequence/chart-speed.svg (limited to 'static') diff --git a/static/posts/dna-sequence/benchmarks.csv b/static/posts/dna-sequence/benchmarks.csv new file mode 100644 index 0000000..8645d5e --- /dev/null +++ b/static/posts/dna-sequence/benchmarks.csv @@ -0,0 +1,7 @@ +Packages,Encode to FASTA (ms),FASTA file size (KB),FASTA gzipped (KB) +1KB,5.625224,4.1,1.4 +10KB,32.679975,40.7,13 +100KB,112.864416,406.7,121 +1MB,872.887675,4100,1200 +10MB,8472.693202,40700,12000 +100MB,85525.178217,406700,118000 diff --git a/static/posts/dna-sequence/benchmarks.ods b/static/posts/dna-sequence/benchmarks.ods deleted file mode 100755 index 62a8e30..0000000 Binary files a/static/posts/dna-sequence/benchmarks.ods and /dev/null differ diff --git a/static/posts/dna-sequence/chart-1.png b/static/posts/dna-sequence/chart-1.png deleted file mode 100644 index c017e43..0000000 Binary files a/static/posts/dna-sequence/chart-1.png and /dev/null differ diff --git a/static/posts/dna-sequence/chart-2.png b/static/posts/dna-sequence/chart-2.png deleted file mode 100644 index 80b922b..0000000 Binary files a/static/posts/dna-sequence/chart-2.png and /dev/null differ diff --git a/static/posts/dna-sequence/chart-encoding-speed.png b/static/posts/dna-sequence/chart-encoding-speed.png deleted file mode 100755 index 7fb106d..0000000 Binary files a/static/posts/dna-sequence/chart-encoding-speed.png and /dev/null differ diff --git a/static/posts/dna-sequence/chart-file-sizes.png b/static/posts/dna-sequence/chart-file-sizes.png deleted file mode 100755 index 31bfa66..0000000 Binary files a/static/posts/dna-sequence/chart-file-sizes.png and /dev/null differ diff --git a/static/posts/dna-sequence/chart-size.py b/static/posts/dna-sequence/chart-size.py new file mode 100644 index 0000000..4fc408d --- /dev/null +++ b/static/posts/dna-sequence/chart-size.py @@ -0,0 +1,28 @@ +import csv + +import matplotlib.pyplot as plt +import pandas as pd + +# Read the data +df = pd.read_csv("benchmarks.csv") + +# Settings +plt.title("Encode to FASTA out filesize") +plt.tight_layout(pad=2) +fig = plt.gcf() +fig.set_size_inches(10, 4) + +# Plotting +plt.plot(df["Packages"], df["FASTA file size (KB)"], label = "Raw", color="black", linestyle="-") +plt.plot(df["Packages"], df["FASTA gzipped (KB)"], label = "Gzipped", color="black", linestyle="--") + +# Adding x and y axis labels +plt.xlabel("Size of an input file", fontstyle="italic") +plt.ylabel("File size (KB)", fontstyle="italic") + +# Legend +legend = plt.legend() +legend.get_frame().set_linewidth(0) + +# Export as SVG +plt.savefig("chart-size.svg", format="svg") diff --git a/static/posts/dna-sequence/chart-size.svg b/static/posts/dna-sequence/chart-size.svg new file mode 100644 index 0000000..1a2d127 --- /dev/null +++ b/static/posts/dna-sequence/chart-size.svg @@ -0,0 +1,1553 @@ + + + + + + + + 2023-08-05T13:29:17.701350 + image/svg+xml + + + Matplotlib v3.5.2, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/posts/dna-sequence/chart-speed.py b/static/posts/dna-sequence/chart-speed.py new file mode 100644 index 0000000..c07b057 --- /dev/null +++ b/static/posts/dna-sequence/chart-speed.py @@ -0,0 +1,23 @@ +import csv + +import matplotlib.pyplot as plt +import pandas as pd + +# Read the data +df = pd.read_csv("benchmarks.csv") + +# Settings +plt.title("Encode to FASTA speed over time") +plt.tight_layout(pad=2) +fig = plt.gcf() +fig.set_size_inches(10, 4) + +# Plotting +plt.plot(df["Packages"], df["Encode to FASTA (ms)"], label = "ALB", color="black", linestyle="--") + +# Adding x and y axis labels +plt.xlabel("Size of an input file", fontstyle="italic") +plt.ylabel("Encoding time (ms)", fontstyle="italic") + +# Export as SVG +plt.savefig("chart-speed.svg", format="svg") diff --git a/static/posts/dna-sequence/chart-speed.svg b/static/posts/dna-sequence/chart-speed.svg new file mode 100644 index 0000000..7bb0c29 --- /dev/null +++ b/static/posts/dna-sequence/chart-speed.svg @@ -0,0 +1,1416 @@ + + + + + + + + 2023-08-05T13:29:20.420382 + image/svg+xml + + + Matplotlib v3.5.2, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3