diff options
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.md | 10 |
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 | |||
| 110 | Cytosine and thymine are pyrimidine bases, while adenine and guanine are purine | 110 | Cytosine and thymine are pyrimidine bases, while adenine and guanine are purine |
| 111 | bases. The sugar and the base together are called a nucleoside. | 111 | bases. The sugar and the base together are called a nucleoside. |
| 112 | 112 | ||
| 113 |  | 113 | {: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 |
| 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, |
| 116 | Dennis Myts)* | 116 | Dennis Myts)* |
| @@ -300,7 +300,7 @@ 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 | {:loading="lazy"} |
| 304 | The larger the input stream is the larger the PNG file would be. | 304 | The larger the input stream is the larger the PNG file would be. |
| 305 | 305 | ||
| 306 | Compiled basic Hello World C program with | 306 | Compiled 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 |  | 372 | {:loading="lazy"} |
| 373 | Our freshly generated 1KB file looks something like this (its full of | 373 | Our freshly generated 1KB file looks something like this (its full of |
| 374 | garbage data as intended). | 374 | garbage data as intended). |
| 375 | 375 | ||
| @@ -395,10 +395,10 @@ Then we GZIP all the FASTA files to see how much the can be compressed. | |||
| 395 | gzip -9 < 10MB.fa > 10MB.fa.gz | 395 | gzip -9 < 10MB.fa > 10MB.fa.gz |
| 396 | ``` | 396 | ``` |
| 397 | 397 | ||
| 398 |  | 398 | {:loading="lazy"} |
| 399 | The speed increase that occurs when encoding to FASTA format. | 399 | The speed increase that occurs when encoding to FASTA format. |
| 400 | 400 | ||
| 401 |  | 401 | {:loading="lazy"} |
| 402 | Size of the out file after encoding. | 402 | Size 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). |
