diff options
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.md | 8 |
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 | ||
| 82 | The 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. | 82 | The 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 |  | 84 |  |
| 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 | ||
| 247 | After encoding into PNG format this file looks like this. | 247 | After encoding into PNG format this file looks like this. |
| 248 | 248 | ||
| 249 |  | 249 |  |
| 250 | 250 | ||
| 251 | The larger the input stream is the larger the PNG file would be. | 251 | The larger the input stream is the larger the PNG file would be. |
| 252 | 252 | ||
| 253 | Compiled basic Hello World C program with [GCC](https://www.gnu.org/software/gcc/) would [look like](/dna-sequence/sample.png). | 253 | Compiled 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 | ||
| 314 | Our freshly generated 1KB file looks something like this (its full of garbage data as intended). | 314 | Our freshly generated 1KB file looks something like this (its full of garbage data as intended). |
| 315 | 315 | ||
| 316 |  | 316 |  |
| 317 | 317 | ||
| 318 | We create following binary files: | 318 | We create following binary files: |
| 319 | - 1KB.bin | 319 | - 1KB.bin |
