diff options
| author | Mitja Felicijan <m@mitjafelicijan.com> | 2023-08-05 12:09:37 +0200 |
|---|---|---|
| committer | Mitja Felicijan <m@mitjafelicijan.com> | 2023-08-05 12:09:37 +0200 |
| commit | 2f5ea5f4982d6276881c9a3342ed8847ebc7d326 (patch) | |
| tree | c405cf24bce11c00d7d453bdd18995cf8cda97aa /content/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md | |
| parent | c181dc5c37435029a0f5f2c51d6f36da4d32afd5 (diff) | |
| download | mitjafelicijan.com-2f5ea5f4982d6276881c9a3342ed8847ebc7d326.tar.gz | |
Moved assets to posts
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 | 12 |
1 files changed, 6 insertions, 6 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 b285756..f003fc3 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 | |||
| @@ -109,7 +109,7 @@ The nucleotide in DNA consists of a sugar (deoxyribose), one of four bases | |||
| 109 | Cytosine and thymine are pyrimidine bases, while adenine and guanine are purine | 109 | Cytosine and thymine are pyrimidine bases, while adenine and guanine are purine |
| 110 | bases. The sugar and the base together are called a nucleoside. | 110 | bases. The sugar and the base together are called a nucleoside. |
| 111 | 111 | ||
| 112 |  | 112 |  |
| 113 | 113 | ||
| 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 |
| 115 | cytosine pairs with guanine. (credit a: modification of work by Jerome Walker, | 115 | cytosine pairs with guanine. (credit a: modification of work by Jerome Walker, |
| @@ -300,13 +300,13 @@ Then we encode FASTA file from previous operation to encode this data into PNG. | |||
| 300 | 300 | ||
| 301 | After encoding into PNG format this file looks like this. | 301 | After encoding into PNG format this file looks like this. |
| 302 | 302 | ||
| 303 |  | 303 |  |
| 304 | 304 | ||
| 305 | The larger the input stream is the larger the PNG file would be. | 305 | The larger the input stream is the larger the PNG file would be. |
| 306 | 306 | ||
| 307 | Compiled basic Hello World C program with | 307 | Compiled basic Hello World C program with |
| 308 | [GCC](https://www.gnu.org/software/gcc/) would [look | 308 | [GCC](https://www.gnu.org/software/gcc/) would [look |
| 309 | like](/assets/dna-sequence/sample.png). | 309 | like](/posts/dna-sequence/sample.png). |
| 310 | 310 | ||
| 311 | ```c | 311 | ```c |
| 312 | // gcc -O3 -o sample sample.c | 312 | // gcc -O3 -o sample sample.c |
| @@ -372,7 +372,7 @@ dd if=<(openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count= | |||
| 372 | Our freshly generated 1KB file looks something like this (its full of garbage | 372 | Our freshly generated 1KB file looks something like this (its full of garbage |
| 373 | data as intended). | 373 | data as intended). |
| 374 | 374 | ||
| 375 |  | 375 |  |
| 376 | 376 | ||
| 377 | We create following binary files: | 377 | We create following binary files: |
| 378 | 378 | ||
| @@ -398,9 +398,9 @@ gzip -9 < 10MB.fa > 10MB.fa.gz | |||
| 398 | 398 | ||
| 399 | [Download ODS file with benchmarks](/dna-sequence/benchmarks.ods). | 399 | [Download ODS file with benchmarks](/dna-sequence/benchmarks.ods). |
| 400 | 400 | ||
| 401 |  | 401 |  |
| 402 | 402 | ||
| 403 |  | 403 |  |
| 404 | 404 | ||
| 405 | ## References | 405 | ## References |
| 406 | 406 | ||
