aboutsummaryrefslogtreecommitdiff
path: root/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2021-10-07 21:13:14 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2021-10-07 21:13:14 +0200
commit7f631c493d04ba96e36975365532e2172fec367e (patch)
treefc0c0f81901f77f44c572536b7388babaf2d98ee /posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
parent994c67d522b413fb3184376955a43d4a4f50d716 (diff)
downloadmitjafelicijan.com-7f631c493d04ba96e36975365532e2172fec367e.tar.gz
Added dithered images
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.md6
1 files changed, 3 insertions, 3 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 b743017..ea2bec8 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
@@ -83,7 +83,7 @@ Deoxyribonucleic acid, a self-replicating material which is **present in nearly
83 83
84The 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. 84The 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.
85 85
86![DNA](/assets/dna-sequence/dna-basics.jpg#center) 86![DNA](/assets/dna-sequence/dna-basics.jpg.dith.gif)
87 87
88*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)* 88*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)*
89 89
@@ -248,7 +248,7 @@ Then we encode FASTA file from previous operation to encode this data into PNG.
248 248
249After encoding into PNG format this file looks like this. 249After encoding into PNG format this file looks like this.
250 250
251![Encoded Quote in PNG format](/assets/dna-sequence/quote.png) 251![Encoded Quote in PNG format](/assets/dna-sequence/quote.png.dith.gif)
252 252
253The larger the input stream is the larger the PNG file would be. 253The larger the input stream is the larger the PNG file would be.
254 254
@@ -315,7 +315,7 @@ dd if=<(openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=
315 315
316Our freshly generated 1KB file looks something like this (its full of garbage data as intended). 316Our freshly generated 1KB file looks something like this (its full of garbage data as intended).
317 317
318![Sample binary file 1KB](/assets/dna-sequence/sample-binary-file.png) 318![Sample binary file 1KB](/assets/dna-sequence/sample-binary-file.png.dith.gif)
319 319
320We create following binary files: 320We create following binary files:
321- 1KB.bin 321- 1KB.bin