aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md')
-rw-r--r--content/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/content/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md b/content/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
index ff346d4..a4fd1d7 100644
--- a/content/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
+++ b/content/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
@@ -81,7 +81,7 @@ Deoxyribonucleic acid, a self-replicating material which is **present in nearly
81 81
82The nucleotide in DNA consists of a sugar (deoxyribose), one of four bases (cytosine (C), thymine (T), adenine (A), guanine (G)), and a phosphate. Cytosine and thymine are pyrimidine bases, while adenine and guanine are purine bases. The sugar and the base together are called a nucleoside. 82The nucleotide in DNA consists of a sugar (deoxyribose), one of four bases (cytosine (C), thymine (T), adenine (A), guanine (G)), and a phosphate. Cytosine and thymine are pyrimidine bases, while adenine and guanine are purine bases. The sugar and the base together are called a nucleoside.
83 83
84![DNA](/dna-sequence/dna-basics.jpg) 84![DNA](/assets/dna-sequence/dna-basics.jpg)
85 85
86*DNA (a) forms a double stranded helix, and (b) adenine pairs with thymine and cytosine pairs with guanine. (credit a: modification of work by Jerome Walker, Dennis Myts)* 86*DNA (a) forms a double stranded helix, and (b) adenine pairs with thymine and cytosine pairs with guanine. (credit a: modification of work by Jerome Walker, Dennis Myts)*
87 87
@@ -246,11 +246,11 @@ Then we encode FASTA file from previous operation to encode this data into PNG.
246 246
247After encoding into PNG format this file looks like this. 247After encoding into PNG format this file looks like this.
248 248
249![Encoded Quote in PNG format](/dna-sequence/quote.png) 249![Encoded Quote in PNG format](/assets/dna-sequence/quote.png)
250 250
251The larger the input stream is the larger the PNG file would be. 251The larger the input stream is the larger the PNG file would be.
252 252
253Compiled basic Hello World C program with [GCC](https://www.gnu.org/software/gcc/) would [look like](/dna-sequence/sample.png). 253Compiled basic Hello World C program with [GCC](https://www.gnu.org/software/gcc/) would [look like](/assets/dna-sequence/sample.png).
254 254
255```c 255```c
256// gcc -O3 -o sample sample.c 256// gcc -O3 -o sample sample.c
@@ -313,7 +313,7 @@ dd if=<(openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=
313 313
314Our freshly generated 1KB file looks something like this (its full of garbage data as intended). 314Our freshly generated 1KB file looks something like this (its full of garbage data as intended).
315 315
316![Sample binary file 1KB](/dna-sequence/sample-binary-file.png) 316![Sample binary file 1KB](/assets/dna-sequence/sample-binary-file.png)
317 317
318We create following binary files: 318We create following binary files:
319- 1KB.bin 319- 1KB.bin