aboutsummaryrefslogtreecommitdiff
path: root/_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
diff options
context:
space:
mode:
Diffstat (limited to '_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md')
-rw-r--r--_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md b/_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
index 0bb774e..1de83af 100644
--- a/_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
+++ b/_posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
@@ -110,7 +110,7 @@ The nucleotide in DNA consists of a sugar (deoxyribose), one of four bases
110Cytosine and thymine are pyrimidine bases, while adenine and guanine are purine 110Cytosine and thymine are pyrimidine bases, while adenine and guanine are purine
111bases. The sugar and the base together are called a nucleoside. 111bases. The sugar and the base together are called a nucleoside.
112 112
113![DNA](/assets/posts/dna-sequence/dna-basics.jpg) 113![DNA](/assets/posts/dna-sequence/dna-basics.jpg){:loading="lazy"}
114*DNA (a) forms a double stranded helix, and (b) adenine pairs with thymine and 114*DNA (a) forms a double stranded helix, and (b) adenine pairs with thymine and
115cytosine pairs with guanine. (credit a: modification of work by Jerome Walker, 115cytosine pairs with guanine. (credit a: modification of work by Jerome Walker,
116Dennis Myts)* 116Dennis Myts)*
@@ -300,7 +300,7 @@ Then we encode FASTA file from previous operation to encode this data into PNG.
300 300
301After encoding into PNG format this file looks like this. 301After encoding into PNG format this file looks like this.
302 302
303![Encoded Quote in PNG format](/assets/posts/dna-sequence/quote.png) 303![Encoded Quote in PNG format](/assets/posts/dna-sequence/quote.png){:loading="lazy"}
304The larger the input stream is the larger the PNG file would be. 304The larger the input stream is the larger the PNG file would be.
305 305
306Compiled basic Hello World C program with 306Compiled basic Hello World C program with
@@ -369,7 +369,7 @@ dd if=<(openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=
369``` 369```
370 370
371 371
372![Sample binary file 1KB](/assets/posts/dna-sequence/sample-binary-file.png) 372![Sample binary file 1KB](/assets/posts/dna-sequence/sample-binary-file.png){:loading="lazy"}
373Our freshly generated 1KB file looks something like this (its full of 373Our freshly generated 1KB file looks something like this (its full of
374garbage data as intended). 374garbage data as intended).
375 375
@@ -395,10 +395,10 @@ Then we GZIP all the FASTA files to see how much the can be compressed.
395gzip -9 < 10MB.fa > 10MB.fa.gz 395gzip -9 < 10MB.fa > 10MB.fa.gz
396``` 396```
397 397
398![Encode to FASTA](/assets/posts/dna-sequence/chart-speed.svg) 398![Encode to FASTA](/assets/posts/dna-sequence/chart-speed.svg){:loading="lazy"}
399The speed increase that occurs when encoding to FASTA format. 399The speed increase that occurs when encoding to FASTA format.
400 400
401![File sizes](/assets/posts/dna-sequence/chart-size.svg) 401![File sizes](/assets/posts/dna-sequence/chart-size.svg){:loading="lazy"}
402Size of the out file after encoding. 402Size of the out file after encoding.
403 403
404[Download CSV file with benchmarks](/assets/posts/dna-sequence/benchmarks.csv). 404[Download CSV file with benchmarks](/assets/posts/dna-sequence/benchmarks.csv).