Jelajahi Sumber

minor changes, send out current state

u 3 tahun lalu
induk
melakukan
5960619f1b
2 mengubah file dengan 41 tambahan dan 63 penghapusan
  1. TEMPAT SAMPAH
      latex/result/thesis.pdf
  2. 41 63
      latex/tex/kapitel/k6_results.tex

TEMPAT SAMPAH
latex/result/thesis.pdf


+ 41 - 63
latex/tex/kapitel/k6_results.tex

@@ -1,9 +1,9 @@
 \chapter{Results and Discussion}
-The tables \ref{a6:compr-size} and \ref{a6:compr-time} contain raw measurement values for the two goals, described in \ref{k5:goals}. The table \ref{a6:compr-time} lists how long each compression procedure took, in milliseconds. \ref{a6:compr-size} contains file sizes in bytes. In these tables, as well as in the other ones associated with tests in the scope of this work, the a naming scheme is used, to improve readability. The filenames were replaced by \texttt{File} followed by two numbers separated by a point. For the first test set, the number prefix \texttt{1.} was used, the second set is marked with a \texttt{2.}. For example, the fourth file of each test, in tables are named like this \texttt{File 1.4} and \texttt{File 2.4}. The name of the associated source file for the first set is:
+The tables \ref{a6:compr-size} and \ref{a6:compr-time} contain raw measurement values for the two goals, described in this \ref{k5:goals} earlyer section. The table \ref{a6:compr-time} lists how long each compression procedure took, in milliseconds. \ref{a6:compr-size} contains file sizes in bytes. In these tables, as well as in the other ones associated with tests, a consistent naming scheme is used, to improve readability. The filenames were replaced by \texttt{File} followed by two numbers separated by a point. For the first test set, the number prefix \texttt{1.} was used, the second set is marked with a \texttt{2.}. For example, the fourth file of each test, in tables are named like this \texttt{File 1.4} and \texttt{File 2.4}. The name of the associated source file for the first set is:
 
 \texttt{Homo\_sapiens.GRCh38.dna.chromosome.\textbf{4}.fa}
 
-Since the source files of the second set are not named as consistent as in the first one, a third column in \ref{k6:set2size} was added, which is mapping table ID. and source file name.\\
+Since the source files of the second set are not named as consistent as in the first one, a third column in \ref{k6:set2size} was added, which is mapping table identificator (ID.) and source file name.\\
 The files contained in each test set, as well as their size can be found in the tables \ref{k6:set1size} and \ref{k6:set2size}.
 The first test set contained a total of 2.8~\acs{GB} unevenly spread over 21 files, while the second test set contained 7~\acs{GB} in total, with a quantity of seven files.\\
 
@@ -71,7 +71,7 @@ The units milliseconds and bytes store a high precision. Unfortunately they are
 \texttt{Homo\_sapiens.GRCh38.dna.chromosome.11.fa}
 
 resulted in a compressed file which were only 17.6\% as big.
-Runtimes in \ref{k6:time} were converted into seconds and have been rounded to two decimal places. Also a line was added to the bottom of each table, showing the average percentage of runtime for each process.\\
+Runtimes in \ref{k6:time} were converted into seconds and have been rounded to two decimal places. Also a line was added to the bottom of each table, after which the average percentage of runtime for each process is displayed.\\
 
 \sffamily
 \begin{footnotesize}
@@ -112,7 +112,7 @@ Runtimes in \ref{k6:time} were converted into seconds and have been rounded to t
 \end{footnotesize}
 \rmfamily
 
-Overall, Samtools \acs{BAM} resulted in 71.76\% size reduction, the \acs{CRAM} methode improved this by rughly 2.5\%. \acs{GeCo} provided the greatest reduction with 78.53\%. This gap of about 4\% comes with a comparatively great sacrifice in time.\\
+Overall, Samtools \acs{BAM} resulted in a little over 75\% size reduction, the \acs{CRAM} methode improved this by rughly 2\%. \acs{GeCo} provided the greatest reduction with over 80\%. This difference of about 6\% comes with a comparatively great sacrifice in time.\\
 
 \sffamily
 \begin{footnotesize}
@@ -152,15 +152,14 @@ Overall, Samtools \acs{BAM} resulted in 71.76\% size reduction, the \acs{CRAM} m
 \end{footnotesize}
 \rmfamily
 
-As \ref{k6:time} is showing, the average compression duration for \acs{GeCo} is at 42.57s. That is a little over 33s, or 78\% longer than the average runtime of samtools for compressing into the \acs{CRAM} format.\\
+As \ref{k6:time} is showing, the average compression duration for \acs{GeCo} is at 42.57s. That is a little over 33s, or 78\% longer than the average runtime of Samtools for compressing into the \acs{CRAM} format.\\
 Since \acs{CRAM} requires a file in \acs{BAM} format, the third row is calculated by adding the time needed to compress into \acs{BAM} with the time needed to compress into \acs{CRAM}. 
-While \acs{SAM} format is required for compressing a \acs{FASTA} into \acs{BAM} and further into \acs{CRAM}, in itself it does not features no compression. However, the conversion from \acs{SAM} to \acs{FASTA} can result in a decrease in size. At first this might be contra intuitive since, as described in \ref{k2:sam} \acs{SAM} stores more information than \acs{FASTA}. This can be explained by comparing the sequence storing mechanism. A \acs{FASTA} sequence section can be spread over multiple lines whereas \acs{SAM} files store a sequence in just one line, converting can result in a \acs{SAM} file that is smaller than the original \acs{FASTA} file.
-% (hi)storytime
-Before interpreting this data further, a quick view into development processes: \acs{GeCo} stopped development in the year 2016 while Samtools is being developed since 2015, to this day, with over 70 people contributing.\\
-
+While \acs{SAM} format is required for compressing source file into \acs{BAM} and further into \acs{CRAM}, in itself it is a format without compression. However, the conversion from \acs{SAM} to \acs{FASTA} can result in a decrease in size. At first this might be contra intuitive since, as described in \ref{k2:sam} \acs{SAM} is able to contain more information about a sequence than \acs{FASTA}. This can be explained by comparing the sequence storing mechanism. A \acs{FASTA} sequence section can be spread over multiple lines whereas \acs{SAM} files store a sequence in just one line, converting can result in a \acs{SAM} file that is smaller than the original \acs{FASTA} file.
+% (hi)storytime -> taken out because it sounds like a rechtfertigung
+%Before interpreting the second test set, a quick note on the development processes: \acs{GeCo} stopped development in the year 2016 while Samtools is being developed since 2015, to this day, with over 70 people contributing.\\
 % big tables
 %For the second set of test data, the file identifier was set to follow the scheme \texttt{File 2.x} where x is a number between zero and seven. While the first set of test data had names that matched the file identifiers, considering its numbering, the second set had more variating names. The mapping between identifier and file can be found in \ref{}. % todo add test set tables
-Reviewing \ref{k6:recal-time} one will notice, that \acs{GeCo} reached a runtime over 60 seconds on every run. Instead of displaying the runtime solely in seconds, a leading number followed by an m indicates how many minutes each run took.
+Reviewing the second test set in \ref{k6:recal-time} one will notice, that \acs{GeCo} reached a runtime over 60 seconds on every run. Instead of displaying the runtime solely in seconds, a leading number followed by an m indicates how many minutes each run took.
 
 \sffamily
 \begin{footnotesize}
@@ -212,19 +211,17 @@ Reviewing \ref{k6:recal-time} one will notice, that \acs{GeCo} reached a runtime
 \end{footnotesize}
 \rmfamily
 
-In both tables \ref{k6:recal-time} and \ref{k6:recal-size} the already identified pattern can be observed. Looking at the compression ratio in \ref{k6:recal-size} a maximum compression of 99.04\% was reached with \acs{GeCo}. In this set of test files, file seven were the one with the greatest size (\~ 1.3~\acs{GB}). Closely folled by file one and two (\~ 1.2~\acs{GB}). 
+In both tables \ref{k6:recal-time} and \ref{k6:recal-size} the already identified pattern can be observed. Samtools compression is faster but less effective. Looking at the compression ratio in \ref{k6:recal-size} a maximum compression of 99.04\% was reached with \acs{GeCo}. In this set of test files, \texttt{File 2.7} were the one with the greatest size (\~ 1.3~\acs{GB}). Closely folled by file one and two (\~ 1.2~\acs{GB}). 
 
 \section{View on Possible Improvements}
-So far, this work went over formats for storing genomes, methods to compress files (in mentioned formats) and through tests where implementations of named algorithms compress several files and analyzed the results. The test results show that \acs{GeCo} provides a better compression ratio than Samtools and takes more time to run through. So in this testrun, implementations of arithmetic coding resulted in a better compression ratio than Samtools \acs{BAM} with the mix of Huffman coding and \acs{LZ77}, or Samtools custom compression format \acs{CRAM}. Comparing results in \autocite{survey}, supports this statement. This study used \acs{FASTA}/Multi-FASTA files from 71~\acs{MB} to 166~\acs{MB} and found that \acs{GeCo} had a variating compression ratio from 12.34 to 91.68 times smaller than the input reference and also resulted in long runtimes up to over 600 minutes \cite{survey}. Since this study focused on another goal than this work and therefore used different test variables and environments, the results can not be compared. But what can be taken from this, is that arithmetic coding, at least in \acs{GeCo} is in need of a runtime improvement.\\
-The actual mathematical prove of such an improvement, the planing of a implementation and the development of a proof of concept, will be a rewarding but time and ressource comsuming project. Dealing with those tasks would go beyond the scope of this work. But in order to widen the foundation for this tasks, the rest of this work will consist of considerations and problem analysis, which should be thought about and dealt with to develop a improvement.
+So far, this work went over formats for storing genomes, algorithms that are used to compress those genomes and through tests that compared efficiency and effectivity of mentioned algorithms. The test results show that \acs{GeCo} provides a better compression ratio than Samtools but takes more time to run through. So in this testrun, implementations of arithmetic coding resulted in a better compression ratio than Samtools \acs{BAM} with the mix of Huffman coding and \acs{LZ77}, or Samtools custom format called \acs{CRAM}. Comparing this against the results in \autocite{survey}, supports this statement. This study used sets of \acs{FASTA}/Multi-FASTA files from 71~\acs{MB} to 166~\acs{MB} per file and found that \acs{GeCo} had a variating compression ratio from 12.34 to 91.68 times smaller than the input reference and also resulted in long runtimes up to over 600 minutes \cite{survey}. Since this study focused on another goal and therefore used different test variables and environments, the results can not be compared directly. But what can be taken from this, is that arithmetic coding, at least in \acs{GeCo} is in need of a runtime improvement.\\
+The actual mathematical prove of such an optimization, the planing of the implementation and the development of a proof of concept, will be a rewarding but time and ressource comsuming project. In order to widen the foundation for this tasks, the rest of this work will consist of considerations and problem analysis, which should be thought about and dealt with to develop a improvement.
 
-S.V. Petoukhov described his prepublished findings, which are under ongoing research, about the distribution of nucleotides \cite{pet21}. With the probability of one nucleotide, in a sequence of sufficient length, estimations about the direct neighbours of this nucleotide might be revealed. This can be illustrated in this formula \cite{pet21}:\\
+S.V. Petoukhov described his prepublished findings, which are under ongoing research, about the distribution of nucleotides in \autocite{pet21}. There he found that the probabilities of nucleotides in certain chromosomes align. Also, the probability of one nucleotide reveals estimations about the direct neighbours of each occurrence of the nucleotide. This can be illustrated by the following formula in which the probability of \texttt{C} is known and \texttt{N} is a placeholder for any of the four nucleotides \cite{pet21}:\\
 
 \texttt{\% C $\approx$ $\sum$\%CN $\approx$ $\sum$\%NC $\approx$ $\sum$\%CNN $\approx$ $\sum$\%NCN $\approx$ $\sum$\%NNC $\approx$ $\sum$\%CNNN $\approx$ $\sum$\%NCNN $\approx$ $\sum$\%NNCN $\approx$ $\sum$\%NNNC ...}
 
-Whereas the elements in each sum get more, with a increasing n in the n-plet. To be precise $4^n$ describes the growing of combinations.
-For example, with the probability of \texttt{C}, the probabilities for sets (n-plets) of \texttt{N} as a placeholder for any nucleotide of \texttt{A, C, G or T}, and including at least one \texttt{C} might be determinable without counting them \cite{pet21}. \texttt{$\sum$\%CN} means the probability \texttt{\%C} determines a estimation of all occurrences \texttt{\%CC + \%CA + \%CG + \%CT}.\\
-Further he described that there might be a simliarity between nucleotides. 
+With the probability of \texttt{C}, the probabilities for sets (n-plets) of \texttt{N} as a placeholder for any nucleotide of \texttt{A, C, G or T}, and including at least one \texttt{C} might be determinable without counting them \cite{pet21}. So, \texttt{$\sum$\%CN} consists of \texttt{\%CC + \%CA + \%CG + \%CT}. The elements in each sum get more, with a increasing n in the n-plet. To be precise $4^{|N|}$ describes the growing of combinations.
 
 \begin{figure}[H]
   \centering
@@ -233,34 +230,27 @@ Further he described that there might be a simliarity between nucleotides.
   \label{k6:pet-prob}
 \end{figure}
 
-The exemplaric probabilities he displayed are reprinted in \ref{k6:pet-prob}. Noteable are the similarities in the distirbution of \%A and \%G as well as in \%C and \%T. They align until the third digit after the decimal point. According to Petoukhov, this regularity is found in the genome of humans, some anmials, plants, bacteria and more \cite{pet21}.\\
+The exemplaric probabilities Petoukhov displayed are reprinted in \ref{k6:pet-prob}. Noteable are the similarities in the distirbution of \%A and \%G as well as in \%C and \%T. They align until the third digit after the decimal point. According to him, this regularity is found in the genome of humans, some anmials, plants, bacteria and more \cite{pet21}.\\
 % begin optimization 
-Considering this and the measured results, an improvement in the arithmetic coding process and therefore in \acs{GeCo}s efficiency, would be a good start to equalize the great gap in the compression duration. Combined with a tool that is developed with todays standards, there is a possibility that even greater improvements could be achived.\\
+Considering this and the measured results, an improvement in the arithmetic coding process and therefore in \acs{GeCo}s efficiency, would be a good start to equalize the great gap in the compression duration. Combined with a more current tool it is possible that even greater improvements could be achived.\\
 % simple theoretical approach
-How would a theoretical improvement approach look like? As described in \ref{k4:arith}, entropy coding requires to determine the probabilies of each symbol in the alphabet. The simplest way to do that, is done by parsing the whole sequence from start to end and increasing a counter for each nucleotide that got parsed. 
-With new findings discovered by Petoukhov in cosideration, the goal would be to create an entropy coding implementation that beats current implementation in the time needed to determine probabilities. A possible approach would be that the probability of one nucleotide can be used to determine the probability of other nucelotides, by a calculation rather than the process of counting each one.
+How would a theoretical improvement approach look like? As described in \ref{k4:arith}, entropy coding requires to determine the probabilies of each symbol in the alphabet. The simplest way to do that would be parsing the whole sequence from start to end and increasing a counter for each nucleotide that got parsed. 
+With Petoukhov assumptions in cosideration, the goal would be to create an entropy coding implementation that beats current implementation in the time needed to determine probabilities. A possible approach for that could lay in determining the probabilities of all nucleotides from one by a calculation rather than counting each one.
 This approach throws a few questions that need to be answered in order to plan a implementation \cite{pet21}:\\ 
 
 \begin{itemize}
-	\item How many probabilities are needed to calculate the others?
 	\item Is there space for improvement in the parsing/counting process?
-	%\item Is there space for visible improvements, when only counting one nucleotide?
+	\item How many probabilities are needed to calculate the others?
 	\item How can the variation between probabilities be determined?
 \end{itemize}
 
 % first bulletpoint
-The question for how many probabilities are needed, needs to be answered, to start working on any kind of implementation. This question will only get answered by theoretical prove. It could happen in form of a mathematical equation, which proves that counting all occurrences of one form of nucleotide can be used to determin probabilities of the other nucleotides. 
-%Since this task is time and resource consuming and there is more to discuss, finding a answer will be postponed to another work. 
-%One should keep in mind that this is only one of many approaches. Any prove of other approaches which reduces the probability determination, can be taken in instead. 
-
-% second bullet point (mutlithreading aspect=
-The Second point must be asked, because the improvement in counting only one nucleotide in comparison to counting three, would be to little to be called relevant. Especially if multithreading is a option.  
-% fim: nicht ganz klar ->
-Since in the static codeanalysis in \ref{k4:geco} revealed no multithreading, the analysis for improvements when splitting the workload onto several threads should be considered, before working on an improvement based on Petoukhovs findings. This is relevant, because some improvements, like the one described above, will loose efficiency if only subsections of a genomes are processed. A tool like OpenMC for multithreading C programs would possibly supply the required functionality to develop a prove of concept \cite{cthreading, pet21}.
+The first question must be answered before considering the others. Since counting one instead of four elements is not a significant difference, the possibility that the change would be to little to be relevant, must be taken in consideration. Additionally, since in the static codeanalysis in \ref{k4:geco} revealed no multithreading, the analysis for improvements when splitting the workload onto several threads should be considered, before working on an improvement based on Petoukhovs assumptions. This is relevant, because some improvements, like the one described above, will loose efficiency if only subsections of a genomes are processed. A tool like OpenMC for multithreading C programs would possibly supply the required functionality to develop a prove of concept \cite{cthreading, pet21}.
+% second bullet point 
+The question for how many probabilities must be determined only gets answered by a theoretical prove. It could happen in form of a mathematical equation, which proves that counting all occurrences of one nucleotide type can be used to determin probabilities of the other nucleotides. 
 % theoretical improvement with pseudocode
 But how could a improvement look like, not considering possible difficulties multithreading would bring?
-To answer this, first a mechanism to determine a possible improvement must be determined. To compare parts of a programm and their complexity, the Big-O notation is used. Unfortunally this is only covering loops and coditions as a whole. Therefore a more detailed view on operations must be created: 
-Considering a single threaded loop with the purpose to count every nucleotide in a sequence, the process of counting can be split into several operations, defined by this pseudocode.\\
+To answer this, first a mechanism to determine a possible improvement must be determined. To compare parts of a programm and their complexity, the Big-O notation is used. Considering a single threaded loop with the purpose to count every nucleotide in a sequence, the process of counting can be split into several operations, defined by this pseudocode.\\
 
 %todo use GeCo arith function with bigO
 while (sequence not end)\\
@@ -274,7 +264,7 @@ do\\
 \-\hspace{0.5cm} done\\
 done\\
 
-This loop will itterate over a whole sequence, counting each nucleotide. In line three, a inner loop can be found which itterates over the alphabet, to determine which symbol should be increased. Considering the findings, described above, the inner loop can be left out, because there is no need to compare the read nucleotide against more than one symbol. The Big-O notation for this code, with any sequence with the length of n, would be decreseased from O($n^2$) to O($n\cdot 1)$ or simply O(n) \cite{big-o}. Which is clearly an improvement in complexety and therefor also in runtime.\\
+This loop will itterate over a whole sequence, counting each nucleotide. In line three, a inner loop can be found which itterates over the alphabet, to determine which symbol should be increased. Considering the findings, described above, the inner loop can be left out, because there is no need to compare the read nucleotide against more than one symbol. The Big-O notation for this code, with any sequence with the length of n, would be decreseased from O($n^2$) to O($n\cdot 1)$ or simply O(n) \cite{big-o}. Which is clearly an improvement in complexety and therfore decreade runtime.\\
 The runtime for calculations of the other symbols probabilities must be considered as well and compared against the nested loop to be certain, that the overall runtime was improved.\\
 
 Should Petoukhovs rules, and the regularity shown in \ref{k6:pet-prob} happen to be universal, three approaches could be used to determine the probability of a genome:
@@ -291,35 +281,23 @@ $\%A+\%G = \%100-(\%T+\%C)$\\
 $\%A = \frac{\%100-(\%T+\%C)}{2}$\\
 $\%G = \%A$\\
 
-The mapping, mentioned in the last point would be identical to the first and last declaration.\\
+The mapping, mentioned in the last point would consist of the first and last line of the example above.\\
 % actual programming approach
-Working with probabilities, in fractions as well as in percent, would probabily mean rounding values. To increase the accuracity, the actual value resulting form the counted symbol could be used. For this to work, the amount of overall symbols had to be determined, for \texttt{\%A+\%G} to be calculateable. Since counting all symbols while counting the one nucleotide, would have an impact on the runtime, the value could be calculated. With s beeing the size of the parsed sequence in bytes and c beeing the bytes per character $\frac{s}{c}$ would result in the amount of symbols in the sequence.\\
-They obviously differ in several categories: runtime, since each is parsing more of the sequence, and the grade of heuristic which is taken into account.
-
-% more realistic view on parsing todo need cites
-Getting back to the question how multithreading would impact improvements: A implementation like the one described above, could also work with multithreading. Since the ratio of the difference between O($n^2$) and O(n) does not differ with the reduction of n. Multiple threads, processing parts of a sequence with the length of n, would also benefit, because any fraction of $n^2$ will always be greater than the corresponding fraction of n. This results can either sumed up for global probabilities or get used individually on each associated subsequence. Either way, the presented improvement approach should be appliable to both parsing methods.\\
-This leaves a list of problems, which needs to be regarded in the approach of developing a improvement.
-If there space for improvement in the parsing/counting process, what problems needs to be addressed:
-
-\begin{itemize}
-	\item reducing one process by adding aditional code must be estimated and set into relation.
-	\item for a tool that does not feature multithreading, how would multithreading affect the improvement results?
-\end{itemize}
-
-% todo petoukhov just said T = AT+GT+CT+TT = %NT and %T = %TN
-% if %C = %T and %A = %G 
-% C ist ungefaehr T => bytes(genome) - bytes(T) = 2*bytes(A) = 2*bytes(G) = bytes(A) + bytes(T)
+Working with probabilities, in fractions as well as in percent, would probabily mean rounding values. To increase the accuracity, the actual value resulting form the counted symbol could be used. For this to work, the amount of overall symbols had to be determined, for \texttt{\%A+\%G} to be calculateable. Since counting all symbols during the process of the one needed nucleotide, could have an impact on the runtime, the full length could also be calculated. With s beeing the size of the parsed sequence in bytes and c beeing the bytes per character $\frac{s}{c}$ would result in the amount of symbols in the sequence.\\
+%tf? -> They obviously differ in several categories: runtime, since each is parsing more of the sequence, and the grade of heuristic which is taken into account.
 
+% more realistic view on parsing
+The described implementations could even work with a multithreaded parsing process. Improvements would not be impacted since the ratio of the difference between O($n^2$) and O(n) does not differ with the reduction of n. Multiple threads, processing parts of a sequence with the length of n, would also benefit, because any fraction of $n^2$ will always be greater than the corresponding fraction of simply n. The results can either be sumed up for global probabilities or get used individually on the associated subsequence a thread worked on. Either way, the presented improvement approach should be appliable to both parsing methods.\\
+After that, some problems are left which needs to be regarded in the approach of developing an improvement.
 % bulletpoint 3
-The last point referes to the possibility that Petoukhovs findings will show that the simliarities in the distribution is univeral. Entropy codings work with probabilities, how does that affect the coding mechanism?
-With a equal probability for each nucleotide, entropy coding can not be treated as a whole. This is due to the fact, that Huffman coding makes use of differing probabilities. A equal distribution means every character will be encoded in the same length which would make the encoding process less usefull. Arithmetic coding on the other hand is able to handle equal probabilities.
-The fact that there are obviously chains of repeating nucleotides in genomes. For example \texttt{File 1.10}, which contains this subsequence:
+The last bulletpoint referes to the possibility that Petoukhovs findings will show that the simliarities in the probability distribution is univeral. Entropy codings work with probabilities, how would a similarity affect the coding mechanism? With an equal probability for each nucleotide, entropy coding can not be treated as a whole. This is due to the fact, that Huffman coding makes use of differing probabilities. A equal distribution means every character will be encoded in the same length which would make the encoding process less usefull. Arithmetic coding on the other hand is able to result in compression even with eaqual probabilites.
+But even though the whole chromosome might show a certain pattern, its subsequences mostly do not. For example \texttt{File 1.10}, which contains this subsequence:
 
 \texttt{AACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTAACCCTTAACCC} 
 
 Without determining probabilities, one can see that the amount of \texttt{C}s outnumbers \texttt{T}s and \texttt{A}s. With the whole 133258320 symbols 130~\acs{MB}, the probability distribution will align more. The following values have been roundet down: \texttt{A $\approx$ 0.291723, C $\approx$ 0.207406, G $\approx$ 0.208009, T $\approx$ 0.2928609}. The pattern described by S. Petoukhov is recognizable. But by cutting out a subsection, of relevant size, with unequal distributions will have an impact on the probabilities of the whole sequence. 
 If a greater sequence would lead to a more equal distribution, this knowledge could be used to help determining distributions on subsequences of one with equaly distributed probabilities.\\
-There are some rules that apply to any whole chromosom sequence as well as to subsequences referenced by \texttt{S}. With the knowledge about lenght \texttt{len(S)} and the frequency and position of one symbol e.g. \texttt{C} represented as \texttt{|C|}, rules about the enveloping sequence can be derived. The arithmetic operations on symbols $\cdot$ for consecutive repetitions and $+$ for the concatination are used. For x and y as the ammount of nucleotides before the first and after the last \texttt{C}:
+There are some rules that apply to any whole chromosom sequence as well as to subsequences referenced by \texttt{S}. With the knowledge about lenght \texttt{len(S)} and the frequency and position of one symbol e.g. \texttt{C} represented as \texttt{|C|}, rules about the enveloping sequence can be derived. The arithmetic operations on symbols $\cdot$ for consecutive repetitions and $+$ for the concatination are used. For x and y as the ammount of nucleotides before the first and after the last \texttt{C} applies:
 
 \begin{itemize}
 	\item $\frac{len(S)}{x/y-1}\cdot (|C| -1)$ determines the ammount of $(x \cdot N) + C$ and $C + (y \cdot N)$ sequences $\in S$. 
@@ -327,7 +305,7 @@ There are some rules that apply to any whole chromosom sequence as well as to su
 	\item The longest chain ending with \texttt{C} is $(len(S) - y -1) \cdot N + C$.
 	\item There are $(|C| - 1)$ occurrences of $(x + 1) \cdot N + C$ and an equal ammount of $C + N \cdot (y + 1)$.
 \end{itemize}
-Those statements might seem trivial to some, but possibly help other to clarify the boundaries on Petoukhov's rules. Also, they represent the thought process of this works last section.\\
+Those statements might seem trivial to some, but possibly help other to clarify the boundaries on Petoukhov's rules. Also, they represent the end of the thought process of this works last section.\\
 
 \mycomment{
 % todo erweitern um vergleiche zu survey work
@@ -354,15 +332,15 @@ bad case
 }
 Before resulting in a final conclusion, a quick summary of important points:
 \begin{itemize}
-	\item coding algorithms did not change drastically, in the last deccades 
-	\item improvements are achived by additions to existing algorithms and combining multiple algorithms for specific tasks
- 	\item tests and comparings shown that arithmetic coding lacks in efficiency
+	\item Coding algorithms did not change drastically, in the last deccades.
+	\item Improvements are achived by additions to existing algorithms and the combination of several algorithms for specific tasks.
+ 	\item Tests and comparings shown that arithmetic coding lacks in efficiency.
 \end{itemize}
-The goal for this new optimization approach is clearly defined. Also a possible test environment and measuremnet techniques that indicate a success have been testes, in this work as well as in cited works \cite{survey}. Considering how other improvements were implemented in the past, shows that the way this approach would work is feasible \cite{moffat_arith}. This combined with the last point leads to assumption that there is a realistic chance to optimize entropy coding, specifically the arithmetic coding algorithm.\\
-This assumption will consolidate by viewing best- and worst-case szenarios that could result from further research. Two variables are taken into this thought process. One would be the success of the optimization approach and the other if Petoukhov's findings develop favorable:
-The best case would be described as optimization through exact determination of the whole probability distribution is possible and Petoukhov's findings prove that his rules are universal for genomes between living organisms. This would result in a faster compression with entropy coding. Depending on the dimension either a tool that is implementing entropy coding only or a hybrid tool, with improved efficiency in its entropy coding algorithms would set the new \texttt{state of the art}.\\
+The goal for this new optimization approach is clearly defined. Also a possible test environment and measurement techniques that would indicate a success have been tested, in this work as well as in cited works \cite{survey}. Considering how other improvements were implemented in the past shows that the way an approach like described above is feasible \cite{moffat_arith}. This, combined with the last point leads to assumption that there is a realistic chance to optimize entropy coding, specifically the arithmetic coding algorithm.\\
+This assumption will consolidate by viewing best- and worst-case szenarios that could result from further research. Two important future events are taken into consideration. One would be the theoretical prove of an working optimization approach and the other if Petoukhov's findings develop favorable:
+The best case would be described as optimization through exact determination of the whole probability distribution is possible and Petoukhov's findings prove that his rules are universal for genomes between living organisms. This would result in a faster compression in entropy coding. Depending on the dimension, either a tool that is implementing entropy coding only or a hybrid tool, with improved efficiency in its entropy coding algorithms would define a new \texttt{state of the art}.\\
 In a worst case szenario, the exact determination of probability distributions would not be possible. This would mean more research should be done in approximating probability distibutions. Additionally, how the use of $A\approx G \approx 0.2914$ and $C\approx T\approx 0.2086$ could provide efficiency improvements in reference-free compression of whole chromosomes and general improvements in the compression of a reference genome in reference-based compression solutions \cite{survey}.\\
-Also Petoukov would be wrong about the universality of the defined rules, considering the examplary caculation of probability determination of \texttt{File 1.10} a concern that his rules do not apply to any genomes, and he had a miscalculation is out of the way. This would limit the range of the impact an improvement would create. The combination of which genomes follow Petoukov's rules and a list of tools that specialize on the compression of those would set the new goal for an optimization approach.\\
+Also in this szenario Petoukov would be wrong about the universality of the defined rules, considering the exemplary caculation of probability determination of \texttt{File 1.10} a concern that his rules do not apply to any genomes or that he had a miscalculation is out of the way. This would limit the range of the impact an improvement would create. The combination of which genomes follow Petoukov's rules and a list of tools that specialize on the compression of those would set the new goal for an optimization approach.\\
 
 %From this perspective, how favorable research turns out does not determine if there will be an impact but just how far it will reach.
 So, how favorable research turns out does not determine if there will be an impact but just how far it will reach.