From 2f5ea5f4982d6276881c9a3342ed8847ebc7d326 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 5 Aug 2023 12:09:37 +0200 Subject: Moved assets to posts --- .../2019-01-03-encoding-binary-data-into-dna-sequence.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'content/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md') 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 Cytosine and thymine are pyrimidine bases, while adenine and guanine are purine bases. The sugar and the base together are called a nucleoside. -![DNA](/assets/dna-sequence/dna-basics.jpg) +![DNA](/posts/dna-sequence/dna-basics.jpg) *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, @@ -300,13 +300,13 @@ Then we encode FASTA file from previous operation to encode this data into PNG. After encoding into PNG format this file looks like this. -![Encoded Quote in PNG format](/assets/dna-sequence/quote.png) +![Encoded Quote in PNG format](/posts/dna-sequence/quote.png) The larger the input stream is the larger the PNG file would be. Compiled basic Hello World C program with [GCC](https://www.gnu.org/software/gcc/) would [look -like](/assets/dna-sequence/sample.png). +like](/posts/dna-sequence/sample.png). ```c // 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= Our freshly generated 1KB file looks something like this (its full of garbage data as intended). -![Sample binary file 1KB](/assets/dna-sequence/sample-binary-file.png) +![Sample binary file 1KB](/posts/dna-sequence/sample-binary-file.png) We create following binary files: @@ -398,9 +398,9 @@ gzip -9 < 10MB.fa > 10MB.fa.gz [Download ODS file with benchmarks](/dna-sequence/benchmarks.ods). -![Sample binary file 1KB](/assets/dna-sequence/chart-1.png) +![Sample binary file 1KB](/posts/dna-sequence/chart-1.png) -![Sample binary file 1KB](/assets/dna-sequence/chart-2.png) +![Sample binary file 1KB](/posts/dna-sequence/chart-2.png) ## References -- cgit v1.2.3